How can I create a new Windows registry key or modify the value of an existing one?

asked 06 Sep '11, 09:13

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


You can create a new registry key or modify the value of an existing registry key using a <registrySet> action. You will have to include a section like the one below inside an action list section of your XML installer project file.

<registrySet>
 <key>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</key>
 <name>MY_APPDIR</name>
 <value>${installdir}</value>
</registrySet>

link

answered 06 Sep '11, 09:14

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×28
×13

Asked: 06 Sep '11, 09:13

Seen: 2,289 times

Last updated: 15 Sep '11, 06:34