diff --git a/mRemoteNG/mRemoteNG.csproj b/mRemoteNG/mRemoteNG.csproj index 039c5296..70a04c38 100644 --- a/mRemoteNG/mRemoteNG.csproj +++ b/mRemoteNG/mRemoteNG.csproj @@ -25,7 +25,7 @@ false - bin\Release\ + bin\x64\Release\ false @@ -33,7 +33,7 @@ DEBUG;PORTABLE false - bin\Debug Portable\ + bin\x64\Debug Portable\ false @@ -41,7 +41,7 @@ PORTABLE false - bin\Release Portable\ + bin\x64\Release Portable\ false diff --git a/mRemoteNGInstaller/Installer/Fragments/MainExeFragment.wxs b/mRemoteNGInstaller/Installer/Fragments/MainExeFragment.wxs index 2a3b11d9..8cb9f674 100644 --- a/mRemoteNGInstaller/Installer/Fragments/MainExeFragment.wxs +++ b/mRemoteNGInstaller/Installer/Fragments/MainExeFragment.wxs @@ -3,7 +3,7 @@ - + \ No newline at end of file diff --git a/mRemoteNGInstaller/Installer/Installer.wixproj b/mRemoteNGInstaller/Installer/Installer.wixproj index fe4905f3..f8644fbe 100644 --- a/mRemoteNGInstaller/Installer/Installer.wixproj +++ b/mRemoteNGInstaller/Installer/Installer.wixproj @@ -2,7 +2,7 @@ Debug - x86 + x64 3.10 f0168b9f-6815-40df-ba53-46cee7683b68 2.0 @@ -81,22 +81,23 @@ - + - HarvestPath=$(SolutionDir)mRemoteNG\bin\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help en-US True - + en-US - HarvestPath=$(SolutionDir)mRemoteNG\bin\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help - - HarvestPath=$(SolutionDir)mRemoteNG\bin\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help - - HarvestPath=$(SolutionDir)mRemoteNG\bin\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + bin\x64\$(Platform)\$(Configuration)\ :: When passing paths to powershell scripts, check if the path ends with a backslash "\" @@ -111,35 +112,49 @@ set /p buildenv=<buildenv.tmp :: 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" - - - REM Clean the TargetDir -rmdir /S /Q "$(TargetDir)" - -echo $(ConfigurationName) > buildenv.tmp - -REM Harvest bin directory of the mRemoteNG project -"$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteNG\bin\$(Configuration)" -ag -nologo -dr INSTALLDIR -var var.HarvestPath -srd -scom -sreg -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" en-US - HarvestPath=$(SolutionDir)mRemoteNG\bin\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ - HarvestPath=$(SolutionDir)mRemoteNG\bin\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help en-US True bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ - HarvestPath=$(SolutionDir)mRemoteNG\bin\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + bin\$(Platform)\$(Configuration)\ + obj\$(Platform)\$(Configuration)\ + + + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + bin\x64\$(Platform)\$(Configuration)\ + obj\$(Platform)\$(Configuration)\ + True + False + + + en-US + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + bin\$(Platform)\$(Configuration)\ + obj\$(Platform)\$(Configuration)\ + + + + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help + en-US + True + bin\$(Platform)\$(Configuration)\ + obj\$(Platform)\$(Configuration)\ + + + HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ @@ -147,32 +162,6 @@ REM Convert the license file "COPYING.TXT" to "License.rtf" to be shown in the i HarvestPath=$(SolutionDir)mRemoteNG\bin\x64\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ - True - False - - - en-US - HarvestPath=$(SolutionDir)mRemoteNG\bin\Debug;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help - bin\$(Platform)\$(Configuration)\ - obj\$(Platform)\$(Configuration)\ - - - - HarvestPath=$(SolutionDir)mRemoteNG\bin\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help - en-US - True - bin\$(Platform)\$(Configuration)\ - obj\$(Platform)\$(Configuration)\ - - - HarvestPath=$(SolutionDir)mRemoteNG\bin\Debug Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help - bin\$(Platform)\$(Configuration)\ - obj\$(Platform)\$(Configuration)\ - - - HarvestPath=$(SolutionDir)mRemoteNG\bin\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteNG\Resources\Help - bin\$(Platform)\$(Configuration)\ - obj\$(Platform)\$(Configuration)\ bin\$(Platform)\$(Configuration)\ @@ -190,4 +179,16 @@ REM Convert the license file "COPYING.TXT" to "License.rtf" to be shown in the i bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ + + REM Clean the TargetDir +rmdir /S /Q "$(TargetDir)" + +echo $(ConfigurationName) > buildenv.tmp + +REM Harvest bin directory of the mRemoteNG project +"$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteNG\bin\x64\$(Configuration)" -ag -nologo -dr INSTALLDIR -var var.HarvestPath -srd -scom -sreg -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" + \ No newline at end of file