2017-11-13 9 views
-2

にコンポーネントとしてフォルダを追加します、それから私は、すべてOKのWiXインストーラにコンポーネントとして.exeファイルと.vstoファイルを置くが、私は、フォルダを入れてみてくださいそして、私はエラーを取得:ここウィックスは、私はWiXのインストーラにVSTOのVSTOプロジェクトを置くしようとしているインストーラ

"The Component/@Id attribute's value, 'Application Files', is not a legal identifier. Identifier's may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore. (CNDL0015) 

はproduct.wxsの私の完全なコードです。

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="test" UpgradeCode="dddf18f9-28e4-445c-92a1-734e5e774125"> 
     <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> 

     <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 
     <MediaTemplate /> 

     <Feature Id="ProductFeature" Title="SetupProject1" Level="1"> 
      <ComponentGroupRef Id="ProductComponents" /> 
     </Feature> 
    </Product> 
    <Fragment> 
     <Directory Id="TARGETDIR" Name="SourceDir"> 
      <Directory Id="ProgramFilesFolder"> 
       <Directory Id="INSTALLFOLDER" Name="SetupProject1" />  
      </Directory> 
     </Directory> 
    </Fragment> 

    <Fragment> 
     <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> 
     <Component Id="setup.exe"> 
     <File Id="setup.exe" KeyPath="yes" 
     Name="setup.exe" Source="$(var.AddinFiles)"></File> 
     </Component> 
     <Component Id="Com.VistaDraft.Distribution.Mvp.vsto"> 
      <File Id="Com.VistaDraft.Distribution.Mvp.vsto" KeyPath="yes" 
       Name="Com.VistaDraft.Distribution.Mvp.vsto" Source="$(var.AddinFiles)"></File> 
     </Component> 
     <Component Id="Application Files"> 
      <File Id="Application Files" KeyPath="yes" 
       Name="Application Files" Source="$(var.AddinFiles)"></File> 
      </Component> 
     </ComponentGroup> 
    </Fragment> 
</Wix> 

誰かがplixがwixインストーラにフォルダを追加するのを助けてくれますか?

+0

これを自分で解決しようとしましたか?返されるエラーメッセージは私には明らかです。 Id属性を変更して問題を解決しようとしましたか?あなたは何の結果を得ましたか? – Phil

答えて

0

参照したエラーでは、Id属性には-z、A-Z、数字、下線、ピリオドしか使用できないことが示されています。使用したId属性にはスペースがあります。

+0

私はスペースを削除するテストのために、今:ApplicationFilesが、今私はエラーがあります: "c:/.../ApplicationFiles"上のファイルを見つけることができませんでしたが、パスは良いです。パス。私は問題は、私がフォルダを追加しようとしていると思うが、何か間違っている、多分あなたはどのように私はインストーラproperllyにフォルダを追加することができます知っている? – Andrej

関連する問題