I've successfully built a WinForms app. It's installed via its MSI file. Among other things, it creates a shortcut to the application in the Start->Programs menu. I'm thinking there must be a simple way to add another shortcut there that would uninstall the app.
I know how to install the shortcut but I don't know what it should execute. Something tells me that there's something in the Windows setup system that I could likely call with a couple of parameters but my extensive searching has not revealed anything.
Any ideas
Robert W.
Vancouver, BC

Simple Way to Uninstall a WinForms App?
Jose J. Amador
Samsudeen B
boban is correct - the Windows logo program (which is a good "best practices" guide) says
· Do not place shortcuts to remove the application in the Start menu. It is not needed because your application’s uninstaller is in the Add or Remove Programs Control Panel item.
wleizero
Exactly Right! I have read the exact phrase in some document may be from Microsft Guidelines. Its not a standard/good practise but many big companies follow it in many famous software.
not_a_programmer
The link/shortcut could execute a "msiexec.exe /uninstall Product.msi"
Alternates:
/x for /uninstall
The ProductCode (The GUID) instead of the msi-file.
Run msiexec.exe from a cmd shell without any arguments, and it will
show you a help dialog.
Regards,
Lars Wilhelmsen
http://www.sral.org/
rwbogosian
Though that code is in VB I took what it from I needed and easily created an Uninstall option.
I do have another related question for someone though. After installing my app, I removed the MSI Setup file. Then when I clicked on the Uninstall shortcut a dialog box came up that looked remarkably similar to the Setup dialog box. It had the same formatting and even my app's icon. I'm curious to know where this info is stored, considering that the MSI file has now been removed.
Robert W.
Cyber_Wolf
I once saw an article on www.codeproject.com so better try it there.
Best Regards,