/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (2)

Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
There is a decent resource kit utility called pathman.exe you can use if you are not confident with the vbscript method.

I believe it comes with the W2k3 server resource kit.

Regards,
Rob.
Posted by: timmsie 15 years ago
Fourth Degree Brown Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ