JensG Posted May 15, 2023 Posted May 15, 2023 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 ?
Developers Jos Posted May 15, 2023 Developers Posted May 15, 2023 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.
Developers Jos Posted May 15, 2023 Developers Posted May 15, 2023 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.
argumentum Posted May 15, 2023 Posted May 15, 2023 38 minutes ago, JensG said: excluded from Defender. Is there a way to accomplish ...you could also add a "folder exemption" to "c:\Users\[user]\AppDataLocal\AutoIt v3\Aut2Exe" in your PC Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
JensG Posted May 16, 2023 Author Posted May 16, 2023 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now