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
- :
- Remove value from Path variable on uninstall
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
Sep 08, 2015
10:14 AM
Remove value from Path variable on uninstall
Hi
I want my setup will remove a value from the PATH environment variable only while uninstall and if component condition is TRUE,
So I have updated the Environment table directly with this
Name: -*Path
Value: [~];[[SOME_VALUE]
Component: COMPONENT_A
I have set the COMPONENT_A condition to be NOT Installed OR (Remove=”ALL” AND COND=”TRUE”)
So the component will be installed on clean one ( actually does nothing ) and remove value from path on uninstalled in case the condition is TRUE.
How can I make this to work ?
( The value in the path not necessarily was created by the setup I’m uninstalling
and I have BASIC MSI project )
I want my setup will remove a value from the PATH environment variable only while uninstall and if component condition is TRUE,
So I have updated the Environment table directly with this
Name: -*Path
Value: [~];[[SOME_VALUE]
Component: COMPONENT_A
I have set the COMPONENT_A condition to be NOT Installed OR (Remove=”ALL” AND COND=”TRUE”)
So the component will be installed on clean one ( actually does nothing ) and remove value from path on uninstalled in case the condition is TRUE.
How can I make this to work ?
( The value in the path not necessarily was created by the setup I’m uninstalling
and I have BASIC MSI project )
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 14, 2015
11:52 AM
You can write a Custom Action to do that. Set your CA to run in the 'Install Exec Sequence' with a condition of REMOVE.