Debug x86 3.10 f0168b9f-6815-40df-ba53-46cee7683b68 2.0 mRemoteNG-Installer Package $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets bin\$(Configuration)\ obj\$(Configuration)\ HarvestPath=..\mRemoteV1\bin\Debug; HarvestPath=..\mRemoteV1\bin\Release; HarvestPath=..\mRemoteV1\bin\Debug Portable; HarvestPath=..\mRemoteV1\bin\Release Portable; $(WixExtDir)\WixUtilExtension.dll WixUtilExtension $(WixExtDir)\WixUIExtension.dll WixUIExtension $(WixExtDir)\WixNetFxExtension.dll WixNetFxExtension mRemoteV1 {4934a491-40bc-4e5b-9166-ea1169a220f6} True Binaries;Content;Satellites APPLICATIONROOTDIRECTORY HarvestPath=$(SolutionDir)mRemoteV1\bin\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteV1\Resources\Help en-US True en-US HarvestPath=$(SolutionDir)mRemoteV1\bin\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteV1\Resources\Help HarvestPath=$(SolutionDir)mRemoteV1\bin\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteV1\Resources\Help HarvestPath=$(SolutionDir)mRemoteV1\bin\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteV1\Resources\Help REM Clean the TargetDir rmdir /S /Q "$(TargetDir)" echo $(ConfigurationName) > buildenv.tmp REM Harvest bin directory of the mRemoteV1 project "$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteV1\bin\$(Configuration)" -ag -nologo -dr INSTALLDIR -var var.HarvestPath -srd -cg MandatoryComponents -template fragment -out "$(ProjectDir)Fragments\FilesFragment.wxs" -t "$(ProjectDir)Filters\Harvest_Filter.xslt" REM Convert the license file "COPYING.TXT" to "License.rtf" to be shown in the installer GUI "$(ProjectDir)Resources\Pandoc\pandoc.exe" -s -t rtf -o "$(ProjectDir)\Resources\License.rtf" "$(SolutionDir)COPYING.TXT" :: When passing paths to powershell scripts, check if the path ends with a backslash "\" :: If it does, then the backslash may be interpreted as an escape character. Add another backslash to cancel the first one. powershell -noprofile -command "sleep 2" set /p buildenv=<buildenv.tmp :: Manual builds, set the cert password and uncomment below. :: IF "%25APPVEYOR_BUILD_FOLDER"=="" ( set cert_pwd= ) :: Call the post build powershell script powershell.exe -ExecutionPolicy Bypass -File "$(SolutionDir)Tools\postbuild_installer.ps1" -SolutionDir "$(SolutionDir)\" -TargetDir "%25cd%25" -TargetFileName "mRemoteNG.exe" -ConfigurationName "%25buildenv%25" -CertificatePath "$(CertPath)" -CertificatePassword "$(CertPassword)" -ExcludeFromSigning "PuTTYNG.exe"