Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix安装程序-无法卸载perUser软件包_Wix_Windows Installer - Fatal编程技术网

Wix安装程序-无法卸载perUser软件包

Wix安装程序-无法卸载perUser软件包,wix,windows-installer,Wix,Windows Installer,安装perUser msi软件包后,我无法卸载它 选择我安装的(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'

安装perUser msi软件包后,我无法卸载它

选择我安装的(
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>

... 文件在这里

安装过程正常-无错误。文件放在正确的位置。添加了注册表项。
我做错了什么?

是的——正如维姆·科宁所说——这个问题帮助我解决了问题

然而,我并没有执行那个问题中的步骤,而是清理了注册表。 问题是,我安装了这个包多次更改GUID和其他参数,所以注册表中出现了一片混乱。我按制造商和名称搜索了注册处

清理完毕后,一切正常。

可能会重复