/build/static/layout/Breadcrumb_cap_w.png

Get and Use Environment Variable

I am trying to get an environment variable from the computer that is to receive my packaged installation and use the value in numerous registry entries, already contained in my package. How can I do this? I have looked everywhere and not found any solutions that I can understand. I am using Installshield AdminStudio 8.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi John,
do the following:
Create a dummy line in the directory table, with an new property (all caps), which will take the env-var. Let it point to a standard folder.
Create a custom action type 51, which will set this property to the env-var. Something like this:
setUserProfileNT 51 USERPROFILE [%USERPROFILE]
Call it right before 'CostInitialize' in both sequence tables.
Make sure, everything is linked correctly in the directory table.
Now you can use all the directory properties you wish.
That's it.
Regards, Nick
Posted by: the.fly 17 years ago
Senior Yellow Belt
0
Thanks, I'll give that a try.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ