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
- :
- Create Registry Key name in a backet [123]
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
‎Oct 03, 2017
05:51 PM
Create Registry Key name in a backet [123]
Hi Everyone,
How do i write a registry key in a bracket in Installshield?
For example this is my registry key
MyRegistryKey (TEST [123])
and i want to write it to the following registry key
HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\
I was able to put this key in the registry in the registry area under System Configuration but when it writes to the registry, i only see the following
MyCompany\MyRegistryKey (test)
i guess Installshield interpreted [123] as a property and it is empty so i do not see [123].
Is there anyway i can write this key? I tried using Installshield script as a custom action but it failed writing the registry key.
Thank you in advance
How do i write a registry key in a bracket in Installshield?
For example this is my registry key
MyRegistryKey (TEST [123])
and i want to write it to the following registry key
HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\
I was able to put this key in the registry in the registry area under System Configuration but when it writes to the registry, i only see the following
MyCompany\MyRegistryKey (test)
i guess Installshield interpreted [123] as a property and it is empty so i do not see [123].
Is there anyway i can write this key? I tried using Installshield script as a custom action but it failed writing the registry key.
Thank you in advance
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 04, 2017
08:19 AM
Have you tried using an escape character '\' before the brackets? I am not sure if this works or not but that is the common escape character in InstallShield.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 04, 2017
12:04 PM
Enable REGDB_OPTION_DISABLETEXTSUBS at REGDB_OPTIONS.
regards
Markus
regards
Markus
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 18, 2017
01:28 PM
Thank you both for replying but they did not work.
The "\" cuts the registry key and the REGDB_OPTIONS does not seem to do anything, I am still getting the RegDBCreateKeyEx write error.
The "\" cuts the registry key and the REGDB_OPTIONS does not seem to do anything, I am still getting the RegDBCreateKeyEx write error.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2017
10:36 AM
If you're using an MSI based project, check this out:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa370109%28v=vs.85%29.aspx
If a substring of the form "[\c]" is found, it is replaced by the character without any further processing. Only the first character after the backslash is kept; everything else is removed.
So, try something like:
[\[]123[\]]
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2017
10:02 AM
Have you tried coding like:
[ for left square bracket [
] for right square bracket ]
[ for left square bracket [
] for right square bracket ]