5
私はWixツールセット3.8を使用しています。私はmsiプロジェクトを作成しようとしています。ビルド中に私にこのようなエラーがあります:なぜwixプロジェクトにエラーがありますか?
Severity Code Description Project File Line
Error '.', hexadecimal value 0x00, is an invalid character. Analyzer light.exe 0
誰かがこのような問題に直面しましたか?どんな助けもありがとう!
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?define ProductName="Traffic_Analyzer" ?>
<?define ProductVersion="1.0.0.0" ?>
<?define ProductCode="*"?>
<?define UpgradeCode="9e36a864-f98e-446a-b2e6-dd77567a4031"?>
<?define Manufacturer="Leanenka_Dzianis"?>
<?define licenseRtf="C:\Users\DzianisL\Desktop\license.rtf"?>
<Product Id="$(var.ProductCode)" Name="$(var.ProductName)" Language="1049" Version="$(var.ProductVersion)"
Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
<!--1033 on 1049 - Russian language maintaines-->
<Package InstallerVersion="200" Compressed="yes" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="$(var.ProductName)">
<Component Id="ProductComponent" Guid="*">
<File Id='Sniffer' DiskId='1' Source='C:\Users\DzianisL\Documents\Visual Studio 2015\Projects\Sniffer\Sniffer\bin\Release\Sniffer.exe'/>
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
<Component Id="ApplicationShortcutSniffer" Guid="4CEBD68F-E933-47f9-B02C-A4FC69FDB551">
<Shortcut Id="ShortcutSniffer"
Name="Sniffer"
Description="$(var.ProductName)"
Target="[INSTALLLOCATION]Sniffer.exe"
WorkingDirectory="INSTALLLOCATION"/>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="$(var.ProductName)" Level="1">
<ComponentRef Id="ProductComponent" />
<ComponentRef Id="ApplicationShortcutSniffer" />
</Feature>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" ></Property>
<WixVariable Id="WixUILicenseRtf" Overridable="yes" Value="$(var.licenseRtf)"/>
<UIRef Id="WixUI_InstallDir"/>
</Product>
</Wix>
あなたは全く正しいです、ありがとうございます! 私はメモ帳でライセンスをオープンしたところで、NULL文字が見つかりました。その除去の後、すべてがうまくいった! –
@DziLean:うまくいっていて、Stack Overflowへようこそ。あなたは、同じ問題を抱えている人を助けることができます。役立つ回答をアップし、問題を解決するのに役立つ答えを受け入れてください。 –
共有してくれてありがとう、私はこのバグを見たことがない。 FWIW Windows XPのVMをスピンアップし、ワードパッドを使用してRTFを作成することを常にお勧めします。この理由は、Windowsインストーラに含まれているRichTextコントロールが非常に古くて厄介なため、最小限の共通点を持つアプローチが問題を解決するのに役立ちます。この方法をとると、おそらくRTFがヌル文字で終了することはありません。 –