Hi,
I have had no experience with WIX before today, and I see that it's a very sophisticated
application where there is a lot to learn. What I'm trying to do is very simple,
and I've almost got what I want except for a few snags.
I am trying to create a WIX installation package for my WPF (native) application.
I've got the executable, along with the DLLs for the app to load.
It presents the user with the option as to where to install the app.
I've managed to get that much so far.
What I'm having trouble with is getting a folder with some text files to load
into the package, and have the installation create the folder with the files.
I also don't understand how to get the desktop icon onto the desktop.
Someone who has more experience with WIX could probably set me straight with
a few lines of code.
What I have tried:
="1.0"="UTF-8"
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="WPF_App_01" Language="1033" Version="1.0.0.0" Manufacturer="A_Soft" UpgradeCode="8582f421-5196-47d2-9c0a-5a5150dfa1fe">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of WPF_App_01 is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="WPF_App_01" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" ></Property>
<UIRef Id="WixUI_InstallDir"/>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="WPF_App_01">
<Directory Id="DocFolder" Name="WPF_App_01_DOC"/>
</Directory>
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="ProductComponent_01" Guid="*">
<File Id="Install_WPF_App_01.exe"
Source="J:\Software_Development_02\WPF_App_01\bin\Release\WPF_App_01.exe"></File>
</Component>
<Component Id="ProductComponent_1" Guid="*">
<File Id="BouncyCastle.Crypto.dll"
Source="J:\Software_Development_02\WPF_App_01\bin\Release\BouncyCastle.Crypto.dll"></File>
</Component>
<Component Id="ProductComponent_2" Guid="*">
<File Id="CSI_LIB_01.dll"
Source="J:\Software_Development_02\WPF_App_01\bin\Release\CSI_LIB_01.dll"></File>
</Component>
<Component Id="ProductComponent_3" Guid="*">
<File Id="D_LIB_01.dll"
Source="J:\Software_Development_02\WPF_App_01\bin\Release\D_LIB_01.dll"></File>
</Component>
<Component Id="ProductComponent_icon" Guid="*">
<File Id="The_Icon_01.ico" Source="J:\Software_Development_02\WPF_App_01\The_Icon_01.ico"></File>
</Component>
</ComponentGroup>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents_DOC" Directory="DocFolder">
<Component Id="ProductComponent_401" Guid="*">
<File Id="Demo_Projects.txt" KeyPath="yes"
Source="J:\Software_Development_02\WPF_App_01\bin\Release\aaa_Documentation\Demo_Projects.txt"></File>
</Component>
<Component Id="ProductComponent_402" Guid="*">
<File Id="WPF_App_01_DOC.txt" KeyPath="yes"
Source="J:\Software_Development_02\WPF_App_01\bin\Release\aaa_Documentation\WPF_App_01_DOC.txt"></File>
</Component>
</ComponentGroup>
</Fragment>
<Fragment>
<Icon Id="ProductComponent_icon" SourceFile="J:\Software_Development_02\WPF_App_01\The_Icon_01.ico"/>
</Fragment>
</Wix>