I found the problem. MSIINSTALLPERUSER="" is not enough. Only when I set ALLUSERS="1" it's written to HKLM. I expected the dual purpose installer checking the MSIINSTALLPERUSER property and not the ALLUSERS one.
-----Original Message----- From: Egger, Jerome [mailto:jerome.eg...@uster.com] Sent: Mittwoch, 11. März 2015 16:15 To: wix-users@lists.sourceforge.net Subject: [WiX-users] (WiX) Write product info to registry for dual purpose installer Hello, I'm making a dual purpose package in WiX according to this article<https://msdn.microsoft.com/en-us/library/windows/desktop/dd408068(v=vs.85).aspx>. When I initialize my Installer with MSIINSTALLPERUSER="1", the product information is always written to HKEY_CURRENT_USER, even when I set MSIINSTALLPERUSER="" in my dialog. I expected that WiX or msi noticed that I changed to a per-machine installation and would write the product information to HKCU or HKLM accordingly. How do I write the product info to HKEY_LOCAL_MACHINE if the user chose the per-machine installation? Best regards, Jérôme Egger ________________________________ This message and any attachment are confidential and may be privileged. If you are not the intended recipient, please contact us immediately and delete this message and any attachment from your system. If you are not the intended recipient you must not copy, use or store this message or attachment or disclose the contents to any other person. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users