Skip to content

Commit

Permalink
SEBWIN-742: Integrated Themida into build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuechel committed Jun 24, 2024
1 parent b4366ad commit 68d6d47
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Setup/Setup.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ git -C $(SolutionDir) checkout -- Setup/Components/Service.wxs</PostBuildEvent>
</Target>
<PropertyGroup>
<PreBuildEvent>setlocal enabledelayedexpansion
set executable="$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\SafeExamBrowser.exe"
set parameters=/shareconsole /protect "C:\SEB\SafeExamBrowser.tmd" /inputfile %25executable%25 /outputfile %25executable%25

if exist "C:\SEB\Themida" (
if $(PlatformName) == x86 (
C:\SEB\Themida\Themida.exe %25parameters%25
) else (
C:\SEB\Themida\Themida64.exe %25parameters%25
)
DEL %25executable%25.bak
) else (
echo WARNING: Themida not executed!
)

set binaries=
FOR /F %25%25G IN (%27dir "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\%2a.exe" "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\%2a.dll" /s /b%27) DO set binaries=!binaries! %25%25G
Expand Down

0 comments on commit 68d6d47

Please sign in to comment.