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 Variable Help
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Apr 06, 2010
08:10 AM
Environment Variable Help
I am trying to write the environment variable %PUBLIC% to an .ini file. in Windows 7
When I go to a DOS prompt and type SET,. I see PUBLIC=C:\Users\Public
Whn I type %PUBLIC% in a dos prompt I get C:\Users\Public
When I use [PUBLIC]Public Documents in the data value for the .ini file, it seems to completely ignore it at install time and I get just Public Documents written to the .ini file.
When I do [ALLUSERSPROFILE] i am able to get C:\ProgramData written to the .ini file which is what I get when I do a %ALLUSERSPROFILE% from a DOS prompt.
I seem to be a bit confused on how to get the variable PUBLIC to do the same thing.
Any insight is most appreciated.
When I go to a DOS prompt and type SET,. I see PUBLIC=C:\Users\Public
Whn I type %PUBLIC% in a dos prompt I get C:\Users\Public
When I use [PUBLIC]Public Documents in the data value for the .ini file, it seems to completely ignore it at install time and I get just Public Documents written to the .ini file.
When I do [ALLUSERSPROFILE] i am able to get C:\ProgramData written to the .ini file which is what I get when I do a %ALLUSERSPROFILE% from a DOS prompt.
I seem to be a bit confused on how to get the variable PUBLIC to do the same thing.
Any insight is most appreciated.
(1) Reply