cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mfrieman
Level 3

InstallScript - Uninstall previous version (No Product Code)

I have an InstallScript project and I need to uninstall the previous version of the software when the user is performing an upgrade. I found many post explaining how to perform a major upgrade but I guess it doesn't apply to this type of project because there is no Product Code to update.


I must uninstall the outdated files. If I need to do this is script then please let me know.

Any help will be greatly appreciated!
Labels (1)
0 Kudos
(3) Replies
girishkatti123
Level 7

Use OnUpdateUIBefore & OnUpdateUIAfter. These 2 funtion would help you achieve your requirement.
0 Kudos
mfrieman
Level 3

girishkatti123 wrote:
Use OnUpdateUIBefore & OnUpdateUIAfter. These 2 funtion would help you achieve your requirement.


So it sounds like I have to accomplish this in script. Is there a specific command that you know of that will uninstall the previous installation or do I have to remove each file individually?
0 Kudos
girishkatti123
Level 7

you can run uninstall command which you can get from Uninstall string in Registry value.
HKLM\SOFTWARE\Microsoft\Windows\Current Version\Uninstall\
0 Kudos