Registry don't working

Nov 1, 2015 at 8:50 AM
Edited Nov 1, 2015 at 8:52 AM
Use Registry sample as is
static public void Main(string[] args)
        //uncomment the line below if the reg file contains unsupported type to be ignored
        //RegFileImporter.SkipUnknownTypes = true;

        var fullSetup = new Feature("MyApp Binaries");

        var project =
            new Project("MyProduct",
                new Dir(@"%ProgramFiles%\My Company\My Product",
                    new File(fullSetup, @"readme.txt")),
                new RegFile(fullSetup, "MyProduct.reg"), //RegFile does the same Tasks.ImportRegFil
                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 RegValue(fullSetup, RegistryHive.ClassesRoot, "test\\shell\\open\\command", "", "\"[INSTALLDIR]test.exe\" \"%1\""));

        project.GUID = new Guid("6f330b47-2577-43ad-9095-1861ba25889b");
        project.UI = WUI.WixUI_ProgressOnly;

        project.PreserveTempFiles = true;
But registry is empty.

Windows 8.1 x64
Nov 4, 2015 at 5:08 AM
Most likely it didn't check the right registry node. The setup above installs into HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\My Company\My Product

Is it the case?
Nov 24, 2015 at 4:29 AM
Yes. It's Wow6432Node. Thx