uninstall and create a key in registry !?
Hi everybody
I'm new with installshield 11.5 windows and i try with a basic msi project to make when i remove the program to create a key in the registry !
if someone say how i can do that thanks you for all !
Thanks for all suggest
Christophe
I'm new with installshield 11.5 windows and i try with a basic msi project to make when i remove the program to create a key in the registry !
if someone say how i can do that thanks you for all !
Thanks for all suggest
Christophe
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
jamsek19
17 years ago
You can create CustomAction with VBS: Behavior and logic -> Custom Actions -> Right click on Custom Actions -> New VBScript, Stored in custom Action table:
HKLM ... HKEY Local Machine (HKCU ...HKEY CurrentUser, ...)
REG_SZ ... a string type
Be sure to add a condition to the CustomAction to run this action just at uninstall time
If you create special file with VBS functions than instead of "Stored in custom Action table" select "Stored in binary table".
Best regards
Andreo
Set WSHShellObj = CreateObject("WScript.Shell")
WSHShellObj.RegWrite "HKLM\Software\<company>\<RegKey>, "Your_value", "REG_SZ"
HKLM ... HKEY Local Machine (HKCU ...HKEY CurrentUser, ...)
REG_SZ ... a string type
Be sure to add a condition to the CustomAction to run this action just at uninstall time
REMOVE = "ALL"
If you create special file with VBS functions than instead of "Stored in custom Action table" select "Stored in binary table".
Best regards
Andreo
Posted by:
nheim
17 years ago
Posted by:
nheim
17 years ago
Posted by:
christopheOce
17 years ago
Posted by:
christopheOce
17 years ago
Hi Andreo,
thanks for your post !
i've doing what you writed !
but i wonder at wich install exec sequence i must to enter for to execute this custom action because if i want to enter remove = "all" i must to select a install exec sequence !!!
wich install exec sequence i must to choice !?
i want that this custom action is execute when the product is removed on the computer !
Thanks for all
Christophe
thanks for your post !
i've doing what you writed !
but i wonder at wich install exec sequence i must to enter for to execute this custom action because if i want to enter remove = "all" i must to select a install exec sequence !!!
wich install exec sequence i must to choice !?
i want that this custom action is execute when the product is removed on the computer !
Thanks for all
Christophe
Posted by:
christopheOce
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.