From 18ac56f1c69b40ebe726e904129564f22449dac1 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Fri, 26 Jul 2019 16:13:57 +0200 Subject: [PATCH] SEBWIN-300: Added reset utility to installer. --- Setup/Components/Reset.xslt | 16 ++++++++++++++++ Setup/Directories.wxs | 4 ++-- Setup/Product.wxs | 4 ++-- Setup/Setup.wixproj | 15 +++++++++++++-- Setup/Shortcuts.wxs | 18 ++++++++++-------- 5 files changed, 43 insertions(+), 14 deletions(-) create mode 100644 Setup/Components/Reset.xslt diff --git a/Setup/Components/Reset.xslt b/Setup/Components/Reset.xslt new file mode 100644 index 00000000..7da6b7d7 --- /dev/null +++ b/Setup/Components/Reset.xslt @@ -0,0 +1,16 @@ + + + + + + + + + + + + ResetUtilityExecutable + + + + \ No newline at end of file diff --git a/Setup/Directories.wxs b/Setup/Directories.wxs index 8a30b35d..528e5d9e 100644 --- a/Setup/Directories.wxs +++ b/Setup/Directories.wxs @@ -5,12 +5,12 @@ - + - + diff --git a/Setup/Product.wxs b/Setup/Product.wxs index 371b871a..a6d2035d 100644 --- a/Setup/Product.wxs +++ b/Setup/Product.wxs @@ -13,9 +13,9 @@ - - + + diff --git a/Setup/Setup.wixproj b/Setup/Setup.wixproj index 959df31c..9a55f459 100644 --- a/Setup/Setup.wixproj +++ b/Setup/Setup.wixproj @@ -51,6 +51,14 @@ Binaries;Content;Satellites INSTALLFOLDER + + SafeExamBrowser.ResetUtility + {bc229e80-ff93-424f-9930-d9c07d9b57b4} + True + True + Binaries;Content;Satellites + INSTALLFOLDER + SafeExamBrowser.Runtime {e3aed2f8-b5df-45d1-ac19-48066923d6d8} @@ -62,6 +70,7 @@ + @@ -71,10 +80,12 @@ - "$(WIX)bin\heat.exe" dir "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -srd -cg ApplicationComponents -dr ApplicationDirectory -sfrag -var var.SafeExamBrowser.Runtime.TargetDir -out $(ProjectDir)Components\Application.wxs -t $(ProjectDir)Components\Application.xslt + git -C $(SolutionDir) checkout -- Setup/Components/Application.wxs +git -C $(SolutionDir) checkout -- Setup/Components/Reset.wxs - git -C $(SolutionDir) checkout -- Setup/Components/Application.wxs + "$(WIX)bin\heat.exe" dir "$(SolutionDir)SafeExamBrowser.ResetUtility\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -srd -cg ResetComponents -dr ResetDirectory -sfrag -var var.SafeExamBrowser.ResetUtility.TargetDir -out $(ProjectDir)Components\Reset.wxs -t $(ProjectDir)Components\Reset.xslt +"$(WIX)bin\heat.exe" dir "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -srd -cg ApplicationComponents -dr ApplicationDirectory -sfrag -var var.SafeExamBrowser.Runtime.TargetDir -out $(ProjectDir)Components\Application.wxs -t $(ProjectDir)Components\Application.xslt