Removing unwanted environment variable when uninstalling app.
Hi
I built an msi for a very simple application which consits of a shortcut, a reg key and a a variable in the path statement. When I built the msi I used Wise package Studio and when I set the environment path variable (O:) I chose the option : "Create Value When Installed"
It works fine but now when I come to uninstall the application using msiexec /x ... , the drive letter (O:) isn't removed from the path. I realise that when I set the variable I should have chosen the option : "Set value on install and delete on uninstall".
My question is, is there an easy way to uninstall the app along with the path variable ?
I have found a vbscript to remove the letter from the path statement which I can run after my uninstall of the original .msi if necessary.
Thanks
G
I built an msi for a very simple application which consits of a shortcut, a reg key and a a variable in the path statement. When I built the msi I used Wise package Studio and when I set the environment path variable (O:) I chose the option : "Create Value When Installed"
It works fine but now when I come to uninstall the application using msiexec /x ... , the drive letter (O:) isn't removed from the path. I realise that when I set the variable I should have chosen the option : "Set value on install and delete on uninstall".
My question is, is there an easy way to uninstall the app along with the path variable ?
I have found a vbscript to remove the letter from the path statement which I can run after my uninstall of the original .msi if necessary.
Thanks
G
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
MSIPackager
15 years ago
Posted by:
timmsie
15 years ago
No easier way than use the vbscript route or as Rob says pathman
just for reference this is the detail on the environment table
http://msdn.microsoft.com/en-us/library/aa368369(VS.85).aspx
just for reference this is the detail on the environment table
http://msdn.microsoft.com/en-us/library/aa368369(VS.85).aspx
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.