Alex Henderson wrote:
> My client wants his installer to have an "uninstall" shortcut, but I can't
> seem to quite get it right... after reading some posts I ended up with this:
> 
> <Property Id="UNINSTALLCMD" Value="MSIEXEC.EXE /x [!PRODUCTID]" />
> 
> And also...
> 
> <Component Id="Uninstaller" 
> Guid="F72CE94D-8E6E-4b9e-95BC-7DC80C3641B6">
>    <Shortcut Target="[UNINSTALLCMD]" Id="UninstallIcon" 
> Name="Uninstall"
> Description="Uninstall My Application" Directory="ProgramMenuDir" />
> </Component>
> 
> However when I compile I get these errors (below)... what's 
> the right way to do it?

I think the right way would be to get the validation rules fixed,
but I guess that's not anption for mere mortals like us ;-)

My personal workaround is to add a dummy registry entry under 
HKCU as keypath for the component as in

    <Component Id='Uninstaller'
         <RegistryValue Id='Uninstaller' Root='HKCU' 
Key='Software\.....\Uninstaller'
             Name='Dummy' Action='write' Type='integer' Value='0' KeyPath='yes' 
/>
           ...
    </Component>

This 'works' but obviously has the potential to leave rubbish in
the registry.

Andre'

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to