Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to create UnInstall Shortcut in my Setup


1 reply to this topic

Rakesh Gupta

Rakesh Gupta
  • Members
  • 11 posts

Posted 02 February 2002 - 15:27

Is there anyone who can advise me how to add Shortcut for UnInstall so that User should not go to Add/Remove panel to remove my application.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 02 February 2002 - 16:07

#define UNINSTALL_KEY_BASE     "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"
#define UNINSTALL_KEY     UNINSTALL_KEY_BASE+PRODUCT_GUID

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
nvType =  REGDB_STRING;
nResult = RegDBGetKeyValueEx(UNINSTALL_KEY, "UninstallString", nvType, szUninstall, nvSize);

if (nResult = 0) then
    //CREATE SHORTCUT
else
   //ERROR FINDING ARP ENTRY
endif;

(Edited by TacoBell00 at 10:08 am on Feb. 2, 2002)