Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to refer String identifier in registry


2 replies to this topic

klee777

klee777
  • Full Members
  • 21 posts

Posted 14 April 2006 - 15:40

Hi, I'd like to refer the string ID that I just added to a string table.
Suppose I created IDS_TEST_STRING with "Kyle" in the string table, and wanted to associate the reg value with it.

For example,
I'd like to set the default value of HKLM\SOFTWARE\KYLE
to the value stored in IDS_TEST_STRING.
I tried to edit the Registry Data to be
{IDS_TEST_STRING}
{##IDS_TEST_STRING##}
#IDS_TEST_STRING
etc.
but when I checked the registry after installation, it was always empty.
How can I do that?

BTW, as you see I've been posting lots of basic questions these days, and I would really appreciate if you can recommend a good book for the Basic MSI beginner.

Thanks.
-Kyle

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 April 2006 - 20:22

Go to Property manager, create a new localizable property (or right click an existin property to make it localizable). Now you can assign the string table entry to that property. Use the property in square brackets in your registry entry: [PROPERTY_NAME]

klee777

klee777
  • Full Members
  • 21 posts

Posted 17 April 2006 - 15:12

Hi Stefan, Thank you very much. It works now!!!