If you assure that you only install if ALLUSERS=1, then the only reason to write the HKCU registry key is to prevent the ICE report telling you to supply it. The ICE test is there because ALLUSERS can be overridden on the command line.
-----Original Message----- From: Ryan Dai [mailto:[email protected]] Sent: Friday, July 24, 2009 3:07 PM To: Wix Subject: Re: [WiX-users] Question about Create a Shortcut on the Start Menu Any comments? > From: [email protected] > To: [email protected] > Date: Thu, 23 Jul 2009 06:21:20 +0800 > Subject: [WiX-users] Question about Create a Shortcut on the Start Menu > > > Hi, > > I am checking out wix 3 help doc (How To: Create a Shortcut on the Start > Menu). I am wondering why it is necessary to write registry to HKCU if > product is installed for all users. Suppose one admin of system installed > the product, what will happen if another admin of system uninstall the > product? Will the registry be removed also? Suppose one admin of system > installed the product, and another admin of system upgrade the product to > higher version. Will the registry for previous admin be removed? > > <DirectoryRef Id="ApplicationProgramsFolder"> > <Component Id="ApplicationShortcut" Guid="PUT-GUID-HERE"> > <Shortcut Id="ApplicationStartMenuShortcut" > Name="My Application Name" > Description="My Application Description" > Target="[APPLICATIONROOTDIRECTORY]MyApplication.exe" > WorkingDirectory="APPLICATIONROOTDIRECTORY"/> > <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> > <RegistryValue Root="HKCU" > Key="Software\Microsoft\MyApplicationName" Name="installed" Type="integer" > Value="1" KeyPath="yes"/> > </Component> > </DirectoryRef> > _________________________________________________________________ > Share your memories online with anyone you want. > http://www.microsoft.com/middleeast/windows/windowslive/products/photos-shar e.aspx?tab=1 > ---------------------------------------------------------------------------- -- > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ Drag n' drop-Get easy photo sharing with Windows LiveT Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx ---------------------------------------------------------------------------- -- _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

