0
安裝perUser msi軟件包後無法卸載它。Wix安裝程序 - 無法卸載perUser軟件包
選擇時(Browse
)包 - 即我安裝 - 有一個錯誤:「選擇的包不是此產品有效包」。 這裏是我的代碼:
<?xml version='1.0'?><Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Id='a871a539-5954-44b7-810d-caed5d09e4c5' Name='x' Language='1033'
Version='1.1.0.0' Manufacturer='M' UpgradeCode='a871a539-5954-44b7-810d-caed5d09e4c5'>
<Package Description='x'
Comments='x'
Manufacturer='x' InstallerVersion='200' Compressed='yes' InstallScope='perUser' />
<Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='AppDataFolder' Name='AppData'>
<Directory Id='xFolder' Name='x' />
</Directory>
</Directory>
<Component Id='xComponent' Guid='a871a539-5954-44b7-810d-caed5d09e4c5'
Directory='xFolder'>
<RemoveFolder Id="Removex" On="uninstall" />
<!-- registry entry to be used as keypath -->
<RegistryValue Root="HKCU"
Key="Software\M\x"
Name="component.xcomponent.installed"
Type="integer"
Value="1"
KeyPath="yes"/>
<File Id='myFile' Name='myFile.txt' DiskId='1' Source='myFile.txt' />
... files here
</Component>
<Feature Id='xFeature' Title='x feature' Level='1'>
<ComponentRef Id='xComponent' />
</Feature>
安裝過程是確定的 - 沒有錯誤。文件位於正確的位置。註冊表項被添加。 我在做什麼錯?
[卸載Windows服務時,安裝的產品與安裝源錯誤不匹配]的可能重複(http://stackoverflow.com/questions/4648521/the-installed-product-does-not-match -the-安裝來源-錯誤時-unins) – 2012-04-06 12:21:29