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: Use enivronment variable to set Path Variable
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
‎Aug 11, 2010
04:48 AM
Use enivronment variable to set Path Variable
I would like to set up an Install Shield Path varible using an Environment variable.
I would have thought I could have set the Defined Value of the IS Standard Environment variable like so:
%MY_ENV_VAR%\Folder.
This doesn't work and just provide a current value of:
%MY_ENV_VAR%\Folder
instead of something like:
D:\Folder
Does anyone know a way around this.
Thanks.
I would have thought I could have set the Defined Value of the IS Standard Environment variable like so:
%MY_ENV_VAR%\Folder.
This doesn't work and just provide a current value of:
%MY_ENV_VAR%\Folder
instead of something like:
D:\Folder
Does anyone know a way around this.
Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2010
11:29 AM
Hi There,
This does work, but there's a bit of a trick to it.
Basically, when you create an Environment-type path variable, it's assumed that the text of the Defined value column is just going to be the name of the variable by itself with no %'s or anything else.
You'll then define a second path variable that embeds your first path variable inside it. I've created a couple that illustrate this in the attached screenshot.
This does work, but there's a bit of a trick to it.
Basically, when you create an Environment-type path variable, it's assumed that the text of the Defined value column is just going to be the name of the variable by itself with no %'s or anything else.
You'll then define a second path variable that embeds your first path variable inside it. I've created a couple that illustrate this in the attached screenshot.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 12, 2010
01:34 AM
Working now, thanks:)