CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

delete registry key

Hi

im trying to delete a registry key on install.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Product

But in Advanced installer it just shows it like Product, and i cant edit the path for the registry key.... is this a bug or intended? using Advanced installer 9.8

Regards Carl
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: delete registry key

Hi Carl,

In order to achieve what you want you can go in the Registry page, create the path (keys) to the value that you want to remove and add a new "Value Removal" with the name of that value.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: delete registry key

Thats mainly what i did except for the last part where i did it from the properties dialog, i want to delete the whole key just not the values.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: delete registry key

Sorry for misunderstanding. To remove a registry key you can create the path to it, then select "Properties" from the context menu and in the "Operations" tab select the "Remove this key with all its values and subkey" option.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: delete registry key

Thats what i did, put path only shows the productname, and in the statusbar of Advanced Installer it shows like HK_LM\productname.

shouldnt it show the full key path there?

eg. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\productname

Regards Carl
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: delete registry key

It will show the full path if you create it like in the following example:

Code: Select all

-HKEY_LOCAL_MACHINE
   -SOFTWARE
      -Microsoft
         -Windows
            -CurrentVersion
               -Uninstall
                  -"ProductName"
This full path must be created in the Registry page.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: delete registry key

Thanks that worked great, i tried doing it by using the add key not new.

Could this have been done using import key instead of making all new keys ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: delete registry key

You're welcome. I'm glad you got this working.

If you import the key, the values it contains are also imported. But in order to be removed during install, it must not contain any value in the Registry page of your project.

If it contains any value, during install the key will be removed, but its values will be created and implicitly it will be created again. So, you can import the key, but remove all the values it contains.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”