This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Sorry . . .
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2009
04:11 AM
Registry Keys with InstallScript?
Hi All:
I follow this "http://kb.acresso.com/selfservice/viewContent.do?externalID=Q101917" to test the custom Registry with my InstallScript,
but it doesn't work when I uninstall my program.
My script just these lines
--------------------------------------------------------
function OnBegin()
begin
Enable ( LOGGING );
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBCreateKeyEx("SOFTWARE\\ARegistryTest\\Subkey\\MyTestValue", "");
end;
I follow this "http://kb.acresso.com/selfservice/viewContent.do?externalID=Q101917" to test the custom Registry with my InstallScript,
but it doesn't work when I uninstall my program.
My script just these lines
--------------------------------------------------------
function OnBegin()
begin
Enable ( LOGGING );
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBCreateKeyEx("SOFTWARE\\ARegistryTest\\Subkey\\MyTestValue", "");
end;
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2009
05:39 AM
Do you mean that when you uninstall the app, the registry isn't removed?
To remove something you need to do an
if MAINTENANCE then
//stuff to do on maintenance/uninstallation
For example, my service has to be removed on uninstallation and so I used this code:
function RemoveService (hMSI)
begin
//the code inside this if, will only run on maintenance/uninstallation
if MAINTENANCE then
//This code removes the service created above.
ServiceRemoveService ( "SchedulingServer" );
endif;
end;
To remove something you need to do an
if MAINTENANCE then
//stuff to do on maintenance/uninstallation
For example, my service has to be removed on uninstallation and so I used this code:
function RemoveService (hMSI)
begin
//the code inside this if, will only run on maintenance/uninstallation
if MAINTENANCE then
//This code removes the service created above.
ServiceRemoveService ( "SchedulingServer" );
endif;
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2009
10:27 AM
The discussion say :
Keys installed with RegDBCreateKeyEx are logged for uninstallation unless logging is disabled.
So I should not do that for JimmiLee says...
Keys installed with RegDBCreateKeyEx are logged for uninstallation unless logging is disabled.
So I should not do that for JimmiLee says...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 03, 2009
12:31 AM
I find the answer,I have to separate two function to do.And it's work.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 03, 2009
03:59 AM
My bad ...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 04, 2009
02:47 AM
JimmiLee Don't say that.
Thanks for your ardent.
Thanks for your ardent.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)