From 755d7b0742cb9c1616b896a294f1c4e82d5ff5fc Mon Sep 17 00:00:00 2001 From: David Sparer Date: Tue, 31 May 2016 15:31:47 -0600 Subject: [PATCH] Resolved MR-846 - help files not being copied with installer --- .gitignore | 1 + .../Fragments/DirectoriesFragment.wxs | 4 ++- .../Installer/Installer.wixproj | 27 ++++++++++--------- Installer Projects/Installer/mRemoteNGV1.wxs | 2 ++ 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index e221f2f48..f645fe654 100644 --- a/.gitignore +++ b/.gitignore @@ -279,3 +279,4 @@ Installer/Resources/License.rtf Installer/Fragments/FilesFragment.wxs Installer Projects/Installer/Resources/License.rtf Installer Projects/Installer/Fragments/FilesFragment.wxs +Installer Projects/Installer/Fragments/HelpFilesFragment.wxs diff --git a/Installer Projects/Installer/Fragments/DirectoriesFragment.wxs b/Installer Projects/Installer/Fragments/DirectoriesFragment.wxs index 9ff127b03..7a9a687a3 100644 --- a/Installer Projects/Installer/Fragments/DirectoriesFragment.wxs +++ b/Installer Projects/Installer/Fragments/DirectoriesFragment.wxs @@ -4,7 +4,9 @@ - + + + diff --git a/Installer Projects/Installer/Installer.wixproj b/Installer Projects/Installer/Installer.wixproj index e5c926bdc..b7c573b6a 100644 --- a/Installer Projects/Installer/Installer.wixproj +++ b/Installer Projects/Installer/Installer.wixproj @@ -30,6 +30,7 @@ + @@ -98,22 +99,24 @@ - HarvestPath=$(SolutionDir)mRemoteV1\bin\Release; + HarvestPath=$(SolutionDir)mRemoteV1\bin\Release;HelpFilesHarvestPath=$(SolutionDir)mRemoteV1\Resources\Help + + + 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 Harvest bin directory of the mRemoteV1 project call "$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteV1\bin\$(Configuration)" -ag -dr APPLICATIONROOTDIRECTORY -var var.HarvestPath -srd -cg MandatoryComponents -template fragment -out "$(ProjectDir)Fragments\FilesFragment.wxs" -t "$(ProjectDir)Filters\Harvest_Filter.xslt" -v REM Convert the license file "COPYING.TXT" to "License.rtf" to be shown in the installer GUI -call "$(ProjectDir)Resources\Pandoc\pandoc.exe" -s -t rtf -o "$(ProjectDir)\Resources\License.rtf" "$(SolutionDir)COPYING.TXT" - - - en-US - HarvestPath=$(SolutionDir)mRemoteV1\bin\Debug; - - - HarvestPath=$(SolutionDir)mRemoteV1\bin\Debug Portable; - - - HarvestPath=$(SolutionDir)mRemoteV1\bin\Release Portable; +call "$(ProjectDir)Resources\Pandoc\pandoc.exe" -s -t rtf -o "$(ProjectDir)\Resources\License.rtf" "$(SolutionDir)COPYING.TXT" +REM Harvest the help files for inclusion in a custom directory +call "$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteV1\Resources\Help" -ag -dr HELPFILESDIRECTORY -var var.HelpFilesHarvestPath -srd -cg HelpFiles -template fragment -out "$(ProjectDir)Fragments\HelpFilesFragment.wxs" -v \ No newline at end of file diff --git a/Installer Projects/Installer/mRemoteNGV1.wxs b/Installer Projects/Installer/mRemoteNGV1.wxs index 7889f333b..d8174fd6b 100644 --- a/Installer Projects/Installer/mRemoteNGV1.wxs +++ b/Installer Projects/Installer/mRemoteNGV1.wxs @@ -22,6 +22,7 @@ + (NOT Installed) AND (VersionNT = 601 OR VersionNT64 = 601) @@ -58,6 +59,7 @@ +