Jump to content

Redirect c:\Users\[user]\AppDataLocal\AutoIt v3\Aut2Exe - (Moved)


Recommended Posts

Dear all,

When calling in an .au3 script

ShellExecuteWait("...\tools\AutoIt3\Aut2Exe\Aut2exe_x64.exe", "/in createSetup.au3 /out " & $exeName & " /icon Setup.ico", $autoItDir)

autoit packs the files temporarily in c:\Users\[user]\AppDataLocal\AutoIt v3\Aut2Exe

Windows Defender randomly deletes the temp files in this directory, and so the build fails. We would like to redirect autoit to write these temp files in a directory we know it is excluded from Defender. Is there a way to accomplish that ?

Link to comment
Share on other sites

  • Developers

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

In aut2exe the environment variable  %LOCALAPPDATA% is used as base and concatenated with "AutoIt v3\Aut2Exe"" for the target temp directory.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Thanks a lot for your replies! Unfortunately, setting LOCALAPPDATA before starting autoit to "D:\FOOBAR\Temp" with "SET LOCALAPPDATA='D:\FOOBAR\Temp" did not impress auto it much. But it worked in general as you can see that a MS  application used the dir as temp dir. But not autoit, as you can see below. Autoit still uses the user's AppData dir for zipping.

Also using SetEnv from within the script or setting LOCALAPPDATA before compilaton of the script did not do it.

Do you have any other ideas? Thanks in advance!

 

image.thumb.png.a3cde6e2e985dbab3778811014881d3c.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...