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.


0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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.

Answered 03/23/2009 by: MSIPackager
Third Degree Black Belt

Please log in to comment
No easier way than use the vbscript route or as Rob says pathman

just for reference this is the detail on the environment table

Answered 03/23/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment