Skip to content

Commit

Permalink
Added sample for registry value agregator:
Browse files Browse the repository at this point in the history
```
new RegKey(,,, new RegValue(...),new RegValue(...),...
```
  • Loading branch information
lbs-contributor committed Aug 10, 2019
1 parent 5180cf2 commit 0ad1cc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/src/WixSharp.Samples/Wix# Samples/Registry/setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ static public void Main()
Permissions = new[] { new Permission { User = "usr", Read = true } }
},
// HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\My Company\My Product
new RegValue(fullSetup, RegistryHive.LocalMachine, @"Software\My Company\My Product", "Message", "Hello"),
new RegValue(fullSetup, RegistryHive.LocalMachine, @"Software\My Company\My Product", "Count", 777),
new RegKey(fullSetup, RegistryHive.LocalMachine, @"Software\My Company\My Product",
new RegValue("Message", "Hello"),
new RegValue("Count", 777)),
new RegValue(fullSetup, RegistryHive.ClassesRoot, @"test\shell\open\command", "", "\"[INSTALLDIR]test.exe\" \"%1\""),
// new RemoveRegistryValue(fullSetup, @"Software\My Company\My Product"), // remove "My Product" value on install
new RemoveRegistryKey(fullSetup, @"Software\My Company\My Product")); // remove the whole "My Product" on uninstall
Expand Down

0 comments on commit 0ad1cc4

Please sign in to comment.