ogelfond
Posts: 11
Joined: Mon Apr 18, 2022 8:30 pm

Alternate path for Temp build files

I'm having trouble building my exe. Here is what I know: antivirus program installed on my computer removes any suspicious files from my temp folder during build, therefore failing the build:

[ ExeBuild ]
Building package:
C:\data\[path to my working dir allowed by the antivirus]\ExeBuildSetupFiles\MyApplication.exe
Prepare build
Detecting MSI incompatible resources
Preparing files
Reusing archives from cache
Creating MSI database
Writing Summary Information
Compressing MSI database
Creating EXE file
Could not set the version of the package.
Could not set the icon to the package.
Unable to set Vista UAC Execute Level. Please see if the file [C:\Users\ogelfond\AppData\Local\Temp\BUI3221.tmp\advEC04.tmp\MyApplication.aiui] exists and can be accessed.
GetLastError() returned: Access is denied.


At the same time antivirus reports removed file from the temp directory.
Known malware was blocked:
C:\users\ogelfond\appdata\local\temp\bui3221.tmp\advec04.tmp\myapplication.aiui


The interesting part is that if go to Themes > Settings and switch Use enhanced user interface from "Always" to "Only on Install" I'm able to build project with no issues. But I need UI to be turned on "Always".

Is there a way for me to specify alternate Temp dir for AI build - like I mentioned before I have to use specific dir which is not being scanned by antivirus.
Liviu
Posts: 1188
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Alternate path for Temp build files

Hello,

As I can see, my colleague Danut has replied to you over the email.

Please continue it there to avoid duplicate threads.

Unfortunately, this path cannot be changed.

If you have any other questions, please don’t hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GenV
Posts: 2
Joined: Wed Dec 06, 2023 4:35 pm

Re: Alternate path for Temp build files

Sorry to necro this thread. But we are facing a similiar issue.

I guess it is still not possible to change this path.

Our AV doesn't like the generated *.aiui files in the mentioned temp folder. Is there a variable where this temp path is stored,
so we can add exclusions dynamically with a pre build event? Or does this path follow a specific pattern?

Best regards
Catalin
Posts: 7030
Joined: Wed Jun 13, 2018 7:49 am

Re: Alternate path for Temp build files

Hello and welcome to our forums,

Unfortuntely, that path can not be changed. :(
Or does this path follow a specific pattern?
There isn't a "specific pattern", however the files are extracted in the %temp% folder.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GenV
Posts: 2
Joined: Wed Dec 06, 2023 4:35 pm

Re: Alternate path for Temp build files

Thank you for your answer.

By pattern I meant do the extracted files follow a pattern?
For example:

Code: Select all

%temp%\bui*.tmp\advec*.tmp\*.aiui
Liviu
Posts: 1188
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Alternate path for Temp build files

Hello,

Sorry for the delayed reply on this.

To tackle this issue effectively, we recommend the following solutions:

1. Add an exclusion for your AV on the output folder where your setup project is built. Detailed instructions on how to add an exclusion on Windows Defender can be found here: Windows Security Exclusion Guide

2. Exclude specific processes, namely AdvancedInstaller.com, advinst.exe, and signtool.exe. You can use a PowerShell command like this (for Windows Defender):

Code: Select all

Add-MpPreference -ExclusionProcess "C:\Program Files (x86)\Caphyon\Advanced Installer 21.3\bin\x86\advinst.exe"

For a detailed guide on excluding processes, please refer to Microsoft's documentation: Configure process and file exclusions

The above solution is for Windows Defender. If you are using another AV vendor, you need to find out how to add exclusions for a specific folder or specific processes.

The extracted file path can be something like this:

C:\Users\User\AppData\Local\Temp\BUIB968.tmp\adv40A0.tmp\ewqd.aiui

BUI****.tmp\adv****.tmp\*.aiui

However, the best solution would be to add an exclusion for the advinst.exe process.

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”