As far as I can tell the RegistryValue is not used. What is the purpose of the 
registry value? I have installed a WiX generated .msi file and it did not add 
any such registry entry. The shortcut that was generated does not refer to the 
Registry at all. Here is the code that I used. 

   <DirectoryRef Id="BsiServicesFolder">
      <Component Id="ApplicationShortcut"
                 Guid="536EBF29-1507-4246-B0EA-BEA60B76879C">
        <Shortcut Id="UninstallProduct"
                  Name="Uninstall BsiServices"
                  Description="Uninstalls The Brain"
                  Target="[System64Folder]msiexec.exe"
                  Arguments="/x [ProductCode]"/>
        <RemoveFolder Id="SERVICEINSTALLDIR" On="uninstall"/>
        <RemoveFolder Id="WPFINSTALLDIR" On="uninstall"/>
        <RemoveFolder Id="INSTALLATIONINSTALLDIR" On="uninstall"/>
        <RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" 
Name="installed" Type="integer" Value="1" KeyPath="yes"/>
      </Component>
    </DirectoryRef>

-----Original Message-----
From: Jeremy Farrell [mailto:[email protected]] 
Sent: Tuesday, January 25, 2011 12:16 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Uninstall shortcut?

Are you saying that the example doesn't work? In what way does it fail? 

> From: Kevin Burton [mailto:[email protected]]
> Sent: Tuesday, January 25, 2011 5:14 PM
> 
> The link to install an uninstall link seems to be outdated:
> 
> http://wix.sourceforge.net/manual-wix3/create_an_uninstall_sho
> rtcut.htm
> 
> Specifically  the registry entry does not exist. I am thinking it 
> should be something like HKCU/Micosoft/Installer/Products. Also the 
> application name doesn't seem to come into play. In the registry there 
> is what looks like a GUID that is the key name. I am not sure where 
> this value is derived.
> 
> Here is the exported key for an installed product:
> 
> Windows Registry Editor Version 5.00
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Installer\Products]
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\77A86
> 7D85B17F234682FCB1D7916A797]
> "ProductName"="Bsi WebServices"
> "PackageCode"="34C74D484BB32C140A1D3766499CFCD3"
> "Language"=dword:00000409
> "Version"=dword:02000000
> "Assignment"=dword:00000000
> "AdvertiseFlags"=dword:00000184
> "InstanceType"=dword:00000000
> "AuthorizedLUAApp"=dword:00000000
> "Clients"=hex(7):3a,00,00,00,00,00
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\77A86
> 7D85B17F234682FCB1D7916A797\SourceList]
> "PackageName"="DebugBsiServices.msi"
> "LastUsedSource"=hex(2):6e,00,3b,00,31,00,3b,00,43,00,3a,00,5c
> ,00,54,00,65,00,\
>   6d,00,70,00,5c,00,00,00
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\77A86
> 7D85B17F234682FCB1D7916A797\SourceList\Media]
> "1"=";"
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\77A86
> 7D85B17F234682FCB1D7916A797\SourceList\Net]
> "1"=hex(2):43,00,3a,00,5c,00,54,00,65,00,6d,00,70,00,5c,00,00,00
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, 
so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to