I mistyped, in firs sentence. Correct version:

I have installer, which allows to select between per-user install
(ALLUSERS="") and per-machine installation (ALLUSERS="1").

07.06.2011 13:26, Sergey пишет:
> Hello,
>
> I have installer, which allows to select between per-user install
> (ALLUSERS="1") and per-machine installation (ALLUSERS="").
>
> I create uninstall shortcut, using this WIX code:
>
> <Component
> Id="Shortcuts"
> Directory="WindowsFolder"
> Guid="...">
> <RegistryValue
> Root="HKMU"
> Key="Software\My Company\My Program\InstalledComponent"
> Name="Shortcuts"
> Type="integer"
> Value="1"
> KeyPath="yes"
> />
> <Shortcut
> Id="uninstall_my_program"
> Directory="my_directory"
> Name="Uninstall"
> WorkingDirectory="INSTALLDIR"
> Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]"
> />
> </Component>
>
> When I build this project, I receive errors:
>
> - error LGHT0204 : ICE43: Component Shortcuts has non-advertised
> shortcuts. It's KeyPath registry key should fall under HKCU.
>
> - error LGHT0204 : ICE57: Component 'Shortcuts' has both per-user and
> per-machine data with a per-machine KeyPath.
>
> If I will place registry value under HKCU, instead of HKMU, it will be
> wrong in case of per-machine install.
> If i will mark shortcut as advertised, i will get error, that it can not
> have target attribute.
>
> What is wrong in my WIX code?
> Or i need to ignore these errors?
>
> ----
> Thanks!
>
>
>


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to