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


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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:
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
Answered 03/28/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
Thanks, I'll give that a try.
Answered 03/29/2007 by: the.fly
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity