This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Environment Variables
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2016
05:20 PM
Environment Variables
Is it possible to create environment variables, then read them during the install process and lastly launch an external application which reads the environment variables values to complete registration? I haven't licensed install shield express yet, just downloaded the Limited Edition which seems to lack these features.
Thanks in advance
Thanks in advance
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2016
05:39 PM
You may want to schedule a custom action that launches your external application after the register product. Please refer to the following help topics for more information about custom actions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2016
06:05 PM
Thank you Hidenori,
So if I understood you correctly. I can use an "after event" trigger to launch an application and in this application I can take care of the system env variables.
Will I have access of the install application path to pass it as a parameter to my registration app?
And if I understood correctly the minimum level of InstallShield where I can do this is the express, not the limited edition.
Thanks in advance
So if I understood you correctly. I can use an "after event" trigger to launch an application and in this application I can take care of the system env variables.
Will I have access of the install application path to pass it as a parameter to my registration app?
And if I understood correctly the minimum level of InstallShield where I can do this is the express, not the limited edition.
Thanks in advance
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 26, 2016
12:38 PM
Custom actions scheduled for After Register Product are deferred custom actions, and therefore they do not have access to Windows Installer properties. In order to handle the application installation path, you need another custom action scheduled for Before File Transfer that passes the INSTALLDIR property to your custom action that is scheduled for After Register Product through CustomActionData. Please see Accessing or Setting Windows Installer Properties Through Deferred, Commit, and Rollback Custom Actions help topic for more information about CustomActionData. This requirement should be able to be accomplished using Limited Edition.