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 not effective after installation.
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
Mar 17, 2012
11:45 AM
Environment variable not effective after installation.
Hi all,
I have set a Environment variable (Ex: MyDir) in MSI project. But this variable is not effective after installation. To take effect i have to restart or LogOff->LogIn PC.
The way i tested: After installation, in command prompt i entered %MyDir%, it is not showing the right path. Only after restart or LogOff->LogIn, it is showing the path.
Is there a way to make the Environment variable to take effect without Restart/LogOff->LogIn?
It would be of a great help if any is able to help me at the earliest.
I have set a Environment variable (Ex: MyDir) in MSI project. But this variable is not effective after installation. To take effect i have to restart or LogOff->LogIn PC.
The way i tested: After installation, in command prompt i entered %MyDir%, it is not showing the right path. Only after restart or LogOff->LogIn, it is showing the path.
Is there a way to make the Environment variable to take effect without Restart/LogOff->LogIn?
It would be of a great help if any is able to help me at the earliest.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 18, 2012
02:49 PM
If you had open the cmd before you started the installation, this windows will not included your new settings.
You need to start a new cmd windows to get your new settings.
Regards,
Rune
You need to start a new cmd windows to get your new settings.
Regards,
Rune
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)