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
- :
- 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
Jan 12, 2009
10:54 AM
Environment Variables
I have set some environment variables by adding them to my profile and exporting them.
var1 is set as /home/user/folder.
When I use $E(var1)/test/sample.txt I get an error message saying the file $E(var1)/test/sample.txt in the wizard doesn't exist. Checking the path for errors, it actually does exist.
What am I doing wrong?
var1 is set as /home/user/folder.
When I use $E(var1)/test/sample.txt I get an error message saying the file $E(var1)/test/sample.txt in the wizard doesn't exist. Checking the path for errors, it actually does exist.
What am I doing wrong?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 26, 2009
10:05 AM
How are using this?
If you do an 'env' make you see your variable?
And the file does exist:
/home/user/folder/test/sample.txt
Try the following in a custom action:
String var1 = arg0.resolveString("$E(var1)");
JOptionPane.showMessage(null, "var1 = " + var1);
or
String sampFile = arg0.resolveString("$PATH($E(var1)/test/sample.txt")));
Regards,
Tom
If you do an 'env' make you see your variable?
And the file does exist:
/home/user/folder/test/sample.txt
Try the following in a custom action:
String var1 = arg0.resolveString("$E(var1)");
JOptionPane.showMessage(null, "var1 = " + var1);
or
String sampFile = arg0.resolveString("$PATH($E(var1)/test/sample.txt")));
Regards,
Tom