【发布时间】:2018-06-18 05:22:58
【问题描述】:
我正在尝试创建一个安装程序,将我的DApp 安装到以太坊客户端。
为此,我只需将我的文件复制到%appdata%\Parity\Ethereum\dapps\mydappname。所以我有这个标记,它在%appdata%\mydappname 中创建一个文件夹:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="MyDapp" Language="1049" Version="1.0.0.0"
Manufacturer="Orbita" UpgradeCode="PUT-GUID-HERE" Codepage="1251">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="MyDapp" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="AppDataFolder">
<Directory Id="INSTALLFOLDER" Name="Fairs" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="dapp" Guid="PUT-GUID-HERE">
<RemoveFolder Id="INSTALLFOLDER" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]"
Type="string" Value="" KeyPath="yes" />
<File Id="chain.json" Source="..\..\..\..\config\chain.json"/>
</Component>
</ComponentGroup>
</Fragment>
</Wix>
但是,当我将结构更改为嵌套时:
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="AppDataFolder">
<Directory Id="Parity" Name="Parity">
<Directory Id="Ethereum" Name="Ethereum">
<Directory Id="dapps" Name="dapps">
<Directory Id="INSTALLFOLDER" Name="Fairs" />
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
</Fragment>
我收到ICE64s:
ICE64: The directory Parity is in the user profile but is not listed in the RemoveFile table.
ICE64: The directory Ethereum is in the user profile but is not listed in the RemoveFile table.
ICE64: The directory dapps is in the user profile but is not listed in the RemoveFile table.
标记有什么问题?我尝试将 RemoveDirectory 更改为
<RemoveFolder Id="Parity" On="uninstall" />
但它不起作用。
【问题讨论】:
标签: wix windows-installer installation