Hi everyone:

Believe it or not I've been trying to solve this problem for about
five hours so needless to say I would love some help here!

My product installs a service and a screensaver. Because of the
service (and maybe the screensaver) I'm making the installation
require admin privileges to install. i.e. no per-user installations.

I'm trying to put a shortcut in the All Users programs menu. I've got
this code to create a menu in the Start/Program Files menu:

<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="ProgramMenuFolder" Name="PMenu" SourceName="Programs">
    <Directory Id="D_VisStmtStartMenu" Name="Visible Statement">
      <Component Id="C_VisStmtStartMenu" >
        <CreateFolder />
        <RemoveFolder Id="R_VisStmtStartMenu" On="uninstall" />
      </Component>
    </Directory>
  </Directory>

However, light.exe is giving me these warnings:

c:\chris\src\VisibleStatement-Vista\wix\VisibleStatement.wxs(40):
 error LGHT0204: ICE38: Component C_VisStmtStartMenu installs to user profile.
 It must use a registry key under HKCU as its KeyPath, not a file.

Now I do have this at the top of the file:

<Property Id="ALLUSERS"><![CDATA[2]]></Property>

And am also setting the <Package ... InstallPrivileges="elevated" />
attribute. Is light/WMI just not smart enough to know that this isn't
a per-user install, or am I failing to specify something correctly.

Thanks in advance for any assistance. It' seems that others are just
as confused as I am.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to