PDA

View Full Version : Creating a Custom Uninstall



jdisalvo
11-08-2010, 01:45 PM
Hi,

I am trying to create a custom uninstall. I have been successful as far as removing all files (both those created by the installer, and those created by my software), but I can not seem to remove the desktop Icon, Start Menu Program and the ITem under Add/Remove Programs (Programs and Features - depending on your version of windows) can someone help.

Thanks,
Justin

linder
11-09-2010, 01:26 AM
Justin,

The Desktop icon and Start Menu Program items are nothing more or less than files. So you can use the "Delete File(s)..." script function here.

Let us assume, you have a test.lnk Shortcut in the All Users "MyApp" Start Menu. Then you simply delete %_CSIDL_COMMON_PROGRAMS%\MyApp\test.lnk

To locate the Desktop folder, just use %_CSIDL_COMMON_DESKTOPDIRECTORY%

In Windows, Add/Remove Programs are stored (for all users) in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{YourProductIdentifier}. Just use the "Edit Registry..." script function to remove the keys and values.

Does this help?

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

jdisalvo
11-10-2010, 03:13 PM
Thanks for your help