간단한 Wi-Fi 도구 3.10을 사용하여 간단한 C# 응용 프로그램의 설치 프로그램을 만듭니다. 공식 문서의 튜토리얼을 따라했지만 다음과 같은 문제가 있습니다. 응용 프로그램 디렉토리에 .txt 파일을 추가해야하지만 설치 프로그램은 응용 프로그램의 실행 파일 만 추가합니다.WiX 도구 - 설치 프로그램이 설치 디렉토리에 파일을 추가하지 않습니다.
디렉토리 구조 :
<Fragment>
<!-- Step 1: Define the directory structure -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="Controllore">
</Directory>
</Directory>
</Directory>
</Fragment>
추가 파일 :
<Fragment>
<!-- Step 2: Add files to your installer package -->
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="Controllore.exe" Guid="ce2f6f3f-73b4-4fa9-9c3f-76685d520fdb">
<File Id="Controllore.exe" Source="MyPath\Controllore.exe" KeyPath="yes" Checksum="yes"/>
</Component>
<Component Id="param.txt" Guid="5ffe84e4-5893-48be-af86-1731bcd176ca">
<File Id="param.txt" Source="MyPath\param.txt" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<!-- Step 3: Tell WiX to install the files -->
<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="Controllore.exe" />
<ComponentRef Id="param.txt" />
</Feature>
</Fragment>
과 말에, 나는이 줄을 추가해야한다, 그렇지 않으면 설치 여기에 .wxs 파일의 XML입니다 아무 것도 설치하지 않습니다 :
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="APPLICATIONROOTDIRECTORY">
<Component Id="CMP_Controllore">
<File Source="$(var.Controllore.TargetPath)" KeyPath="yes" />
</Component>
</ComponentGroup>
</Fragment>
WIX? 도망 가라. 먼 곳까지 달려 가라. –
나는 WIX가 마음에 든다. 너는 그걸 생각할 필요가있다. – Polyfun
적어도 installshield가 아닙니다. –