tackyjan
Posts: 4
Joined: Sun Jan 12, 2014 4:08 am

How To Add (Default) Registry Key? (Solved)

NOTE - Please delete this post or leave it if you think it will be of use to others in the future. I read the Help pages for Advanced Installer and it stated how to make a (Default) registry value. Simply leave the Name field blank!
------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am creating an installer that replaces my .REG file to add Windows registry entries.

Here is a sample entry from my .REG file:

; Lock
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Lock]
@="Lock"
"icon"="shell32.dll,-48"


Note the use of the @ symbol to represent (Default) values in the registry. These default values end up looking like the following (RegEdit screenshot):

Image

In Advanced Installer, if I right-click a registry key and select New Value... I don't see where I can set the type to (Default).

Image.

The only choices are String, Expandable string, Integer, and Binary.

Should I just select String for the type and type (Default) in the name field as follows:?**

Image

Thank you.

Jan

**UPDATE: I tried making the value type String and naming it (Default) but it did not work. The value was treated string with the name (Default) and not a true default value.



P.S. I was trying out InstallShield for Visual Studio 2010 and it looks like they provide the ability to add a (Default) value to a registry key. Here is a screenshot:

Image

Possibly a (major) limitation in the Advanced Installer registry capability? Not sure until I know if there is a workaround.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How To Add (Default) Registry Key? (Solved)

Hello,

Indeed, if you want to create default registry values then the Name field must be empty in the Registry value dialog.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”