WHS v1 Upgrade of addin leaves old versions in the Installed list in the Console
-
25/صفر/1432 09:34 م
Hi.
I have a problem when upgrading an addin. I have set the product ID to "*" in order for WHS to recognize the new version. I have also a WiX upgrade mechanism to remove the previous version. However, in the WHS Console, the old versions still remaind in the Installed Addin list. Looking in the registry, the old versions are in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Home Server\RegisteredAdditions hive.
How can I fix this?
Am I suppose to clean up this registry hive myself on every new install, or am I missing something else?
Here's my sample WiX code:
<?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?define version="1.0.2"?> <?define upgradecode="{05EB75F7-FE5D-478C-AA19-9C0D4CDF200E}"?> <Product Name="My Windows Home Server SDK Sample" Id="*" UpgradeCode="$(var.upgradecode)" Manufacturer="Your Company" Version="$(var.version)" Language="1033" Codepage="1252"> <Package Manufacturer="Your Company" InstallerVersion="200" Languages="1033" Compressed="yes" SummaryCodepage="1252" /> <Media Id="1" EmbedCab="yes" Cabinet="SDKSample_cab" /> <Upgrade Id="$(var.upgradecode)"> <UpgradeVersion OnlyDetect="no" Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" IncludeMinimum="yes" Maximum="$(var.version)" IncludeMaximum="no" /> </Upgrade> <InstallExecuteSequence> <RemoveExistingProducts Before="InstallInitialize"/> </InstallExecuteSequence> <Property Id="WHSLogo">1</Property> <Condition Message="[ProductName] requires Windows Home Server. For more information, please refer to the User Guide.">VersionNT = 502</Condition> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="WHS" Name="Windows Home Server"> <Component Id="HomeServerConsoleTab.SDKSample.dll" Guid="{F8648371-401F-48C6-ADD3-E7ADEE845262}"> <File Id="HomeServerConsoleTab.SDKSample.dll" Source="..\FancyListViewDemoCS\bin\Debug\HomeServerConsoleTab.FancyListViewDemoCS.dll" Vital="yes" KeyPath="yes" DiskId="1"/> </Component> </Directory> </Directory> </Directory> <Feature Id="DefaultFeature" Level="1"> <ComponentRef Id="HomeServerConsoleTab.SDKSample.dll" /> </Feature> </Product> </Wix>
My blog: InsomniacGeek.com
جميع الردود
-
25/صفر/1432 11:26 مالمشرف
Hi Magnus,
No, you're not missing anything - WHS doesn't have any mechanism for in- place upgrades of Add-Ins. The supported upgrade path is to uninstall the previous version first using the WHS Console, then restart the WHS Console and install the new version.
Tentacle Blog: http://www.tentaclesoftware.com/blog/
WHS Disk Management: http://www.tentaclesoftware.com/WHSDiskManagement/- تم وضع علامة كإجابة بواسطة Magnus Johansson 01/ربيع الأول/1432 01:00 م