We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DaveRobSepura
Posts: 10
Joined: Tue Feb 07, 2017 6:54 pm

Create property-based subfolder under Temporary

I need to run a temporary application (exe + DLLs + config file) on installation and uninstallation of my main application. I have added these as temporary files but when I run an update installation the first uninstall part runs then deletes the temporary files that the following install part has written.

I want to create a subfolder in the temporary directory with the name created from the ProductVersion property but there does not seem to be a way to achieve this. I have created an install parameter [|TempFolder]\[|ProductVersion] as TempFolder should be an installer property according to http://www.advancedinstaller.com/user-g ... paths.html but the install log shows this is not populated.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create property-based subfolder under Temporary

Hi and welcome to Advanced Installer forums.

Please take a look on the "Possible Bug With Temp Files" thread which debates the same problem and also offers a solution.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DaveRobSepura
Posts: 10
Joined: Tue Feb 07, 2017 6:54 pm

Re: Create property-based subfolder under Temporary

Thanks - I saw this post but was unable to make use of it. AI (13.1) does not appear to let me create property-based folders in 'Windows Volume \ Temporary' - the created folder ends up in the root of the file structure (under Target Computer).
I also tried to create a property-based folder under 'Application Folder' with the same result.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create property-based subfolder under Temporary

Hi,

Please keep in mind that you do not need to create a property-based folder. You only need to add a regular folder under the "TempFolder" folder and set the "[|ProductVersion]" name for it, then place your files under that folder.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DaveRobSepura
Posts: 10
Joined: Tue Feb 07, 2017 6:54 pm

Re: Create property-based subfolder under Temporary

Perfect - creating the folder as a regular folder with the special name fixes the issue.

Thanks,
David
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create property-based subfolder under Temporary

You're welcome David. I'm glad you got this fixed.

Just let us know anytime you encounter a problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”