installshield - How to find the install location and GUID of 3rd party application whose GUID changes for every installation using install shield? -
i know application name , trying find install location , guid of application using install shield.
i found application registry values(like displayname, installlocation, uninstallstring, etc) in following location manually: hkey_local_machine\software\wow6432node\microsoft\windows\currentversion\uninstall{guid}
but guid of application different in each client machine, i'm not able hard code registry path these values using following function. regdbgetkeyvalueex();
can able find guid of application if know application name?
thanks.
you can list uninstall keys code similar regdbquerykey example:
#define uninstallkeypath "software\\microsoft\\windows\\currentversion\\uninstall" listkeys = listcreate(stringlist); regdbquerykey(uninstallkeypath, regdb_keys, listkeys);
and can iterate these keys looking appropriate value using code similar listgetnextitem example:
nresult = listgetfirstitem(listkeys, sitem); while (nresult != end_of_list) regdbgetkeyvalueex(uninstallkeypath ^ sitem, ...); // check each key nresult = listgetnextitem(listkeys, sitem); endwhile;
once find it, can leverage other information in key, or name of key itself. (note: don't forget destroy list.)
if know additional things setup, instance if it's msi, there may more direct approaches leverage windows installer apis.
Comments
Post a Comment