【问题标题】:wix PersonalFolder issuewix PersonalFolder 问题
【发布时间】:2011-08-05 12:42:09
【问题描述】:

我是 wix (Windows Installer XML) 的新手,所以我遵循了一些教程,例如 this one 但我需要的是应用程序将安装在用户个人文件夹中,因此我在代码中将 ProgramFilesFolder 替换为 PersonalFolder。但我得到了这个错误:

Error   1   ICE38: Component MainExecutable installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file. C:\Proxym-IT\Projets Visual Studio\SetupProject2\SetupProject2\Product.wxs  18  1   SetupProject2

有什么帮助吗?

【问题讨论】:

    标签: wix wix3.5


    【解决方案1】:

    刚刚遇到同样的问题。找到了解决方案(正确的,没有禁用警告):

    <Component Id="CCCCCC" Guid="120A49C6-3DB7-467F-A515-0DE9772F3B67" Win64="yes" Directory="LOCALAPPDATA">
                <RegistryValue KeyPath="yes" Root="HKCU" Key="SOFTWARE\ACME\Icecream" Name="Installed" Type="integer" Value="1" Action="write" />
                <File Id="F_TeaShellconfig" Name="Icecream.config" />
                <RemoveFolder Id="RemoveAppData" On="uninstall" />
            </Component>
    

    事实上,必须添加一个虚拟 reg 密钥才能完成这项工作。正如有人所说,Windows 安装程序的开发人员大概来自另一个星球。下面的 RemoveFolder 标签删除了我遇到的下一个错误,它与这里的解决方案无关,但它经常与它一起出现。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多