<pre> <Product Id="1A5CEB89-D455-4CA4-ADB7-29C3763D4999" Name="My WPF Application" Language="1033" Version="1.0.0.0" Manufacturer="Company" UpgradeCode="3162fb54-fcac-4647-bcd5-586c6deed853">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Description="Simple Application"/>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes"/>
<Icon Id="MyShortcutIcon" SourceFile="$(var.ProjectDir)ng.ico"/>
<Property Id="ARPRODUCTION" Value="MyShortcutIcon"/>
<Feature Id="ProductFeature" Title="My WPF Application" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
<Property Id="MY_PROPERTY" Secure="yes">
<IniFileSearch Id="myIniSearch" Name="localtest.ini" Section="ENVIRONMENT" Key="LocalDirectory" Type="raw" />
</Property>
<CustomAction Id="SetMyProperty" Execute="immediate" Property="INSTALLPATH" Value="[MY_PROPERTY]" />
<InstallExecuteSequence>
<Custom Action="SetMyProperty" After="FileCost"></Custom>
</InstallExecuteSequence>
<DirectoryRef Id='INSTALLPATH'>
<Directory Id='INSTALLDIR_SimpleWebApp' Name='SimpleWebAppa' />
</DirectoryRef>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='INSTALLPATH' Name='SimpleWebApp' />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLPATH">
<Component Id="MyWPFApplication.exe" Guid="404c2a60-daac-49b5-847e-d1478909379f">
<File Id="MyWPFApplication.exe" Name="MyWPFApplication.exe" Source="$(var.MyWPFApplication_TargetDir)MyWPFApplication.exe" KeyPath="yes"/>
</Component>
<Component Id="MyWPFApplication.exe.config" Guid="3a3addcc-1629-4a08-b4ef-f578c04421b7">
<File Id="MyWPFApplication.exe.config" Name="MyWPFApplication.exe.config" Source="$(var.MyWPFApplication_TargetDir)MyWPFApplication.exe.config" KeyPath="yes"/>
</Component>
</ComponentGroup>
</Fragment>