/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (7)

Posted by: jamsek19 17 years ago
Orange Senior Belt
2
You can create CustomAction with VBS: Behavior and logic -> Custom Actions -> Right click on Custom Actions -> New VBScript, Stored in custom Action table:

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
10th Degree Black Belt
2
Hi Christophe,
put it on 'InstallExecuteSequence', just before the 'InstallFinalize' sequence. That makes it a deferred action.
Regards, Nick
Posted by: turbokitty 17 years ago
6th Degree Black Belt
2
If they helped you, don't forget to rate their posts!
Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi Christophe,
pretty tough task for beginning with. :-)
Looks like, you have to use a Custom Action for this to work.
You could use reg.exe to do it. Or an VBS script.
Regards, Nick
Posted by: christopheOce 17 years ago
Senior Yellow Belt
0
Hi super member :-),

all right all right easy for a beginner all right all right !

i try to do that this afternoon or monday and i post the solution or my problem ;-) !

In adavance thanks for all
Christophe
Posted by: christopheOce 17 years ago
Senior Yellow Belt
0
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
Posted by: christopheOce 17 years ago
Senior Yellow Belt
0
Hi guys who help me :-)

thats works thats works perfectly !

thats perhpas stupid but i m happy because before to ask my question here i've search about some hours in google without a response !

Have a nice week for all
Thanks
Christophe
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ