0

I can write a registry key and value in setup project of wix,the code like this:

<RegistryKey Id="WinApp" Root="HKLM" Key="Software\App\[ProductName]" Action="createAndRemoveOnUninstall" >
      <RegistryValue Type="string" Name="InstallName" Value="[ProductName]" Action="write" KeyPath="yes"></RegistryValue>
    </RegistryKey>

How can i do in bootstrapper project?

zhoulin Wang
  • 559
  • 2
  • 5
  • 19

1 Answers1

8

Bundles do not modify the machine state. The registry key should be placed in one of the chained packages to be part of the installation transaction.

Rob Mensching
  • 33,834
  • 5
  • 90
  • 130