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!

Newbie
Posts: 1
Joined: Fri Mar 28, 2014 5:40 am

Location of the temp folders created in the temp folder...

I have a config file that will be installed to a directory during the installation as it is used after the install completes but the config file is also used by a custom action during install to read and set some values needed after the install. For example the file config file will be in the programs folder in the Common Application Data folder when the install is done but during it is in the temp folder under a folder with a generated name. How do I get the generated folders path?

Is there a better way to handle this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Location of the temp folders created in the temp folder.

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure I fully understand what you mean by "a generated name". However, if during installation you need to access your temporary filepath within your custom action all you have to do is to access the temporary file associated property. Just go to "Files and Folders" page, select your temporary file and from its context menu choose "Properties..." option. In the "Edit Temporary File" dialog you can see the temporary file property. Next, all you have to do is to access the property value within your custom action code.

For example, if you need to get or set a property value from a VB Script custom action, then you can use Session.Property property or if you need to get a property value within a DLL custom action, then you can use the MsiGetProperty function.

Let us know if this helped, otherwise please give us more details (maybe exemplify) about your scenario.

All the bets,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”