Yes of course WiX supports writing to HKLM, so where are you at this point?
Using HKMU? HKLM? It just works, and if it doesn't then something is going
wrong but you're not supplying any extra information to let anyone figure
out why it's not working. Are you seeing an elevation prompt during the
install, or otherwise making sure that the install is elevated? Are you
sure the component is being installed? Have you looked at a verbose log?

Phil Wilson


On Tue, Dec 17, 2013 at 9:42 PM, Nicolás Alvarez
<nicolas.alva...@gmail.com>wrote:

> Why are you reposting your question after merely 2 hours? This is free
> volunteer support, have some patience.
>
> --
> Nicolás
>
> 2013/12/17 Shyam Kannam <shyam.kan...@hotmail.com>:
> > Could someone help me on this?  Does WiX allows to write registry
> entries to HKLM?  Even it is mentioned as a per machine scope, it ignores
> it.
> >
> >
> > -----Original Message-----
> > From: Shyam Kannam [mailto:shyam.kan...@hotmail.com]
> > Sent: Tuesday, December 17, 2013 1:51 PM
> > To: wix-users@lists.sourceforge.net
> > Subject: Re: [WiX-users] Adding a registry key to HKLM
> >
> > Tried HKMU - but the key is just ignored.  Key is not created neither in
> HKLM nor in HKCU.  This is the same behavior with HKLM.  Logs also doesn’t
> give me any hint on why it is getting ignored.
> >
> >
> >
> >
> >
> >
> > Sent from Windows Mail
> >
> >
> >
> >
> >
> > From: Phil Wilson
> > Sent: Tuesday, December 17, 2013 1:50 PM
> > To: wix-users@lists.sourceforge.net
> >
> >
> >
> >
> >
> > P.S. IMO you don't need HKMU because you should split that component,
> but if your HKMU is going into HKCU then you're probably not doing an
> elevated per machine install. You're probably per user.
> >
> > Phil Wilson
> >
> >
> > On Tue, Dec 17, 2013 at 1:33 PM, Shyam Kannam <shyam.kan...@hotmail.com
> >wrote:
> >
> >> Thanks Jacob for the response.
> >>
> >>
> >> I still didn’t have success.  With the below code, I don’t have any
> >> warnings.  But the key is created only when it is give is ‘HKCU’.
> >> Both ‘HKLM’ or ‘HKMU’ seems ignored (don’t see the key created after
> >> installation).  Any help on this would be appreciated.  All I need is
> >> to place one registry key under HKLM.
> >>
> >>
> >>
> >> <ComponentGroup Id="REGISTRYENTRIES" Directory="INSTALLFOLDER">
> >>
> >>  <Component Id="CMPRegistryEntries"
> >> Guid="069E2626-1217-10D4-6D17-B720D5DFEA7D" >
> >>
> >>  <RegistryKey Root="HKMU" Key="Software\Microsoft\Spectrum" >
> >>
> >>  <RegistryValue Name="installed" Value="1" Type="integer" />
> >>
> >>  <RegistryValue Name="SpectrumPackageVersion"
> >> Value="$(var.MSIPACKAGEVERSION)" Type="string" />
> >>
> >>  </RegistryKey >
> >>
> >>  </Component>
> >>
> >>  </ComponentGroup>
> >>
> >>  <!-- program menu items -->
> >>
> >>  <ComponentGroup Id="PROGRAMMENUSHORTCUT" Directory="INSTALLFOLDER">
> >>
> >>  <Component Id="CMPApplicationStartMenuShortcut"
> >> Guid="13269471-FC6F-40E6-B7BF-02CDB3395A11" >
> >>
> >>  <Shortcut Id="UninstallDriver"
> >>
> >>         Name="!(loc.Uninstall)"
> >>
> >>         Description="!(loc.UninstallDescription)"
> >>
> >>         Target="[System64Folder]msiexec.exe"
> >>
> >>         Arguments="/x [ProductCode]"
> >>
> >>         Icon="PackageIcon" />
> >>
> >>  <RemoveFolder Id="PROGRAMMENUDIR" On="uninstall"/>
> >>
> >>  </Component>
> >>
> >>  </ComponentGroup>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Sent from Windows Mail
> >>
> >>
> >>
> >>
> >>
> >> From: Hoover, Jacob
> >> Sent: Tuesday, December 17, 2013 1:27 PM
> >> To: wix-users@lists.sourceforge.net
> >>
> >>
> >>
> >>
> >>
> >>
> >> http://robmensching.com/blog/posts/2007/4/27/how-to-create-an-uninstal
> >> l-shortcut-and-pass-all-the
> >>
> >> If it were me... and your install is per-machine, use HKMU and then
> >> suppress the one invalid ICE message. (
> >> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ICE57-wi
> >> th-HKMU-tt5795201.html#a5796717
> >> )
> >>
> >>
> >> But really, why is it a requirement for this RegistryKey be associated
> >> with the shortcut, which shouldn't have anything to do with a service
> >> (IE, can't they be two components).
> >>
> >> -----Original Message-----
> >> From: Shyam Kannam [mailto:shyam.kan...@hotmail.com]
> >> Sent: Tuesday, December 17, 2013 1:23 PM
> >> To: wix-users@lists.sourceforge.net
> >> Subject: [WiX-users] Adding a registry key to HKLM
> >>
> >> I’m running into issues to add couple registry keys to HKLM hive.
> >> This is a requirement for the project to add the key to HKLM as they
> >> can be accessed from a local system service.  HKCU is not accessible
> >> from a local system service.
> >>
> >>
> >> When I use the code below, I’m getting ICE errors.  Tried different
> >> ways to avoid the error, but unable to see the key under HKLM created
> >> after installation.  I think I’m missing some basic here.
> >>
> >>
> >>
> >>
> >> error LGHT0204: ICE38: Component CMPApplicationStartMenuShortcut
> >> installs to user profile. It's KeyPath registry key must fall under
> HKCU.
> >> error LGHT0204: ICE43: Component CMPApplicationStartMenuShortcut has
> >> non-advertised shortcuts. It's KeyPath registry key should fall under
> HKCU.
> >> error LGHT0204: ICE57: Component 'CMPApplicationStartMenuShortcut' has
> >> both per-user and per-machine data with a per-machine KeyPath.
> >>
> >>
> >>
> >> <!-- program menu items -->
> >> <ComponentGroup Id="PROGRAMMENUSHORTCUT" Directory="PROGRAMMENUDIR2">
> >>    <Component Id="CMPApplicationStartMenuShortcut"
> >> Guid="13269471-FC6F-40E6-B7BF-02CDB3395A11" >
> >>      <Shortcut Id="UninstallDriver"
> >>    Name="!(loc.Uninstall)"
> >>    Description="!(loc.UninstallDescription)"
> >>    Target="[System64Folder]msiexec.exe"
> >>    Arguments="/x [ProductCode]"
> >>           Icon="PackageIcon" />
> >>         <RegistryValue Root="HKLM" Key="Software\Microsoft\Spectrum"
> >> Name="SpectrumPackageVersion" Type="string"
> >> Value="$(var.MSIPACKAGEVERSION)"/>
> >>         <RemoveFolder Id="PROGRAMMENUDIR" On="uninstall"/>
> >>    </Component>
> >> </ComponentGroup>
> >>
> >>
> >>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to