Creating uninstaller for my WPF application
-
Wednesday, August 01, 2012 6:23 AM
Hi all,
I have a WPF application, with a project to creating an installer for it. Any suggestions on how to create the corresponding uninstaller? The Visual Studio doesn't seem to have an easy way to do it.
Thanks!
All Replies
-
Wednesday, August 01, 2012 6:38 AM
There are many ways u can achieve it using uninstall command or better
Create A text file with following code
---------------------------------------Code start here
Dim shell, systempath
set shell = WScript.CreateObject( "WScript.Shell" )
systempath = shell.ExpandEnvironmentStrings("%SystemRoot%")
shell.Run Chr(34) & systempath & "\system32\msiexec.exe" & Chr(34) & " /x{Your product Code}"
WScript.Quit---------------------------------------------------Code end here------------------------------
Save it as a Uninstall.vbs
Add it to your install fileSystem (dont forget to replace your product code.
Add a shortcut and lets name it Uninstall.
Add target of the shortcut to this file from ur file system.
So when u click this uninstall shortcut it will uninstall ur application using this script
also u can go through following good link
Want to add MVP with my name.
- Marked As Answer by Vikramster Thursday, August 02, 2012 6:15 AM

