1.Are the components that are flagged by those two ICE warnings coming from the 
MSM or from the MSI consuming it?    What resources are in the components 
producing the ICE 57 warnings?    What are the "default" paths of the 
directories producing the ICE 91 warnings? HKCU is per-user registry data and 
shouldn't normally share a component with any resource going into a per-machine 
location (whether registry or filesystem).If an MSI (or even an MSM) will 
support both per-machine and per-user scenarios, use HKMU and/or HKCR and never 
HKLM or HKCU. Directories are harder, most defined directories are either 
per-machine or per-user, so you generally must place all files in directories 
that have different values based on the value of ALLUSERS (check each property 
to see if the documented filesystem location is changed by the value of 
ALLUSERS). Basically, see the following page: 
http://msdn.microsoft.com/library/windows/desktop/dd408068.aspx. If you follow 
those guidelines, you will be rest
 ricted to Win7/Server 2008R2 or above, and you will need to set 
Package\@InstallerVersion to "500". If you must support Vista or anything even 
more downlevel, you will have ICE errors/warnings unless you build per-machine 
and per-user MSIs separately. 2. Add MsiPackage\@ForcePerMachine and set it to 
"yes" in your per-machine bundle.
 
Blair
 
> From: kevin.par...@wacom.eu
> To: wix-users@lists.sourceforge.net
> Date: Thu, 27 Jun 2013 10:29:39 +0000
> Subject: [WiX-users] per-user/per-machine in MSM, MSI and bundle
> 
> Question 1.
> I am creating an MSM for a COM DLL. I am using the MSM in my own per-user MSI 
> and I am getting ICE warnings 57 ("per-user and per-machine data with an HKCU 
> Registry KeyPath") and 91 ("file will be installed to the per user directory 
> that doesn't vary based on ALLUSERS "). How do I fix the warnings and enable 
> the MSM to be used in both per-user and per-machine MSIs?
> 
> Question 2.
> I am including the above MSI in 2 bundles, one per-user the other 
> per-machine. It would be nice (though not essential) to have the MSI install 
> per-machine when installed from the per-machine bundle. Is that possible? If 
> so, what do I have to do in the MSI and/or bundle to achieve that?
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to