- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Set Windows Environment variable as a Post Install step
- 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
Set Windows Environment variable as a Post Install step
I need to set a Windows System Environment variable as a post install step. My application has different behavior depending on the Environment variable. If I set it during the installation, my application fails to run as expected. I don't see an action to set an Environment variable in the post install step. I have tried using Windows setx command to set the variable, but then it does not get removed when I uninstall the application.
Can anyone help here?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @rajeevshukla,
Thank you for your post.
You would need to place the Set System Environment Variable Action in the Install Sequence, because, as you mentioned, the Action is not available in the Post-Install Sequence.
The action is available in the Install Sequence, at least partly, so that the installer can undo the action if necessary.
Thanks,
Ian