Loading
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;

  • 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;
    Expand Post
  • The discussion say :

     

    Keys installed with RegDBCreateKeyEx are logged for uninstallation unless logging is disabled.

     

    So I should not do that for JimmiLee says...

Loading
Registry Keys with InstallScript?