Its applicable to per-machine installs also. The ice cant tell what your
ALLUSERS value is and so that registry key is required to satisfy it. You
just have to live with the fact there may be per user registry keys left
behind at uninstall. The subject has been discussed frequently on the list
and there is a lot of information available if you search on somewhere like
Nabble
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/wix-users-f6875
60.html


-----Original Message-----
From: Sergey [mailto:sh0...@gmail.com] 
Sent: 07 June 2011 11:23
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] UninstallShortcut

This tutorial is for per-user install.
It contains this line of code:
<RegistryKey Root="HKCU"

But i need to have universtall installer, which will work both in in 
per-user and per-machine modes.

07.06.2011 13:50, Peter Shirtcliffe пишет:
>
http://robmensching.com/blog/posts/2007/4/27/How-to-create-an-uninstall-short
> cut-and-pass-all-the
> may help.
>
>
> -----Original Message-----
> From: Sergey [mailto:sh0...@gmail.com]
> Sent: 07 June 2011 10:31
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] UninstallShortcut
>
> 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
> SDL PLC confidential, all rights reserved.
> If you are not the intended recipient of this mail SDL requests and
requires that you delete it without acting upon or copying any of its
contents, and we further request that you advise us.
> SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.
>
-----------------------------------------------------------------------------
-
> 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


-----------------------------------------------------------------------------
-
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
------------------------------------------------------------------------------
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