Community Forums
Results 1 to 4 of 4

Thread: Create Registry Key name in a backet [123]

  1. #1
    Join Date
    Aug 2011
    Posts
    8

    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

  2. #2
    Join Date
    Jul 2003
    Location
    North Kingstown, RI, USA
    Posts
    1,321
    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.
    Regards,
    Dan Lee

    Release Engineer

  3. #3
    Join Date
    Dec 2001
    Location
    Bellheim, Rheinland-Pfalz, Germany
    Posts
    108
    Enable REGDB_OPTION_DISABLETEXTSUBS at REGDB_OPTIONS.

    regards

    Markus

  4. #4
    Join Date
    Aug 2011
    Posts
    8
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •