Looking into this further, HKLM doesn't work, however reading the ICE43 documenation, it says:
The Attributes column is set to use the registry, but the referenced registry entry is not under HKCU. To fix this error, either switch to a different registry entry as the KeyPath for this component, or change the Root value of the Registry entry to either -1 or 1. So, I looked up the docs under the Registry table, and it appears that -1 is the correct value, however WiX won't accept it as a value. Sniffing around some more it appears that HKMU gives a value of -1 when you examine the root in Orca. That almost works, but then you get an ICE57 error instead, that says: Component 'DesktopShortcut' has both per-user data and a keypath that can be either per-user or per-machine. <Component Id="DesktopShortcut" Guid="$(var.DesktopShortcuts)"> <RegistryKey Root="HKMU" Key="Software\$(var.ProductName)\Shortcuts"> <RegistryValue Type="string" Value="desktopShortcut" KeyPath="yes" /> </RegistryKey> <Shortcut Id="DesktopProgramIcon" Target="[INSTALLLOCATION]$(var.MainExe)" Name="$(var.ProductName)" Directory="DesktopFolder" /> </Component> The documentation on the Desktop Folder indicates that it changes based on the ALLUSERS property, so is it my INSTALLLOCATION causing this, or something else (like ICE57 coded incorrectly)? Here's how I defined that: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="MFR" Name="$(var.CompanyName)"> <Directory Id="INSTALLLOCATION" Name="$(var.InstallFolder)"> So, I'm just not getting it (once again). Anthony Wieser Wieser Software Ltd ----- Original Message ----- From: "Anthony Wieser" <[EMAIL PROTECTED]> To: <wix-users@lists.sourceforge.net> Sent: Thursday, June 07, 2007 11:17 AM Subject: [WiX-users] Sanity Check: Shortcuts and HKCU for a per machineinstall > Many of the examples I've seen show an idiom that has a component > containing > a registry key and a shortcut. > > Supposedly, the reason is that this supports user roaming profiles > somehow, > which I don't quite understand. > > However, on Vista, the HKCU this will be installed into is the local > system > account I assume. > > My question is, if I create a shortcut on the desktop for my per machine > install, should I really be using an HKCU registry path as the keypath? > Or > should I be using HKLM as the root instead? > > Anthony Wieser > Wieser Software Ltd > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users