2019-07-25 11:29:40 +02:00
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>3.10</ProductVersion>
<ProjectGuid>0e14d163-557e-469e-9112-96936af43a7b</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>Setup</OutputName>
<OutputType>Package</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
2019-11-06 15:45:17 +01:00
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
2019-07-25 11:29:40 +02:00
<DefineConstants>Debug</DefineConstants>
<SuppressIces>ICE61</SuppressIces>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
2019-11-06 15:45:17 +01:00
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
2019-07-26 09:47:14 +02:00
<SuppressIces>ICE61</SuppressIces>
2019-07-25 11:29:40 +02:00
</PropertyGroup>
2019-11-06 15:45:17 +01:00
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<DefineConstants>Debug</DefineConstants>
<SuppressIces>ICE61</SuppressIces>
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<SuppressIces>ICE61</SuppressIces>
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
2019-07-25 11:29:40 +02:00
<ItemGroup>
<Compile Include="Components\Application.wxs" />
2019-08-07 16:13:23 +02:00
<Compile Include="Components\Configuration.wxs" />
2019-07-25 11:29:40 +02:00
<Compile Include="Components\Reset.wxs" />
<Compile Include="Components\Service.wxs" />
<Compile Include="Directories.wxs" />
2019-08-09 11:54:24 +02:00
<Compile Include="LegacyCleanup.wxs" />
2019-07-25 11:29:40 +02:00
<Compile Include="Product.wxs" />
<Compile Include="Shortcuts.wxs" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
<WixExtension Include="WixNetFxExtension">
<HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
<Name>WixNetFxExtension</Name>
</WixExtension>
</ItemGroup>
<ItemGroup>
<Folder Include="Components" />
2019-07-26 09:47:14 +02:00
<Folder Include="Resources" />
2019-07-25 11:29:40 +02:00
</ItemGroup>
<ItemGroup>
2019-07-26 09:47:14 +02:00
<ProjectReference Include="..\SafeExamBrowser.Client\SafeExamBrowser.Client.csproj">
<Name>SafeExamBrowser.Client</Name>
<Project>{7cc5a895-e0d3-4e43-9b39-ccec05a5a6a7}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
2019-07-26 16:13:57 +02:00
<ProjectReference Include="..\SafeExamBrowser.ResetUtility\SafeExamBrowser.ResetUtility.csproj">
<Name>SafeExamBrowser.ResetUtility</Name>
<Project>{bc229e80-ff93-424f-9930-d9c07d9b57b4}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
2019-07-25 11:29:40 +02:00
<ProjectReference Include="..\SafeExamBrowser.Runtime\SafeExamBrowser.Runtime.csproj">
<Name>SafeExamBrowser.Runtime</Name>
<Project>{e3aed2f8-b5df-45d1-ac19-48066923d6d8}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
2019-07-31 09:51:06 +02:00
<ProjectReference Include="..\SafeExamBrowser.Service\SafeExamBrowser.Service.csproj">
<Name>SafeExamBrowser.Service</Name>
<Project>{fa3c6692-dfed-4afa-bd58-9a3da2753c78}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
2019-08-07 16:13:23 +02:00
<ProjectReference Include="..\SebWindowsConfig\SebWindowsConfig.csproj">
<Name>SebWindowsConfig</Name>
<Project>{bef73897-0d04-4f40-ad89-62e24d260cd0}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
2019-07-25 11:29:40 +02:00
</ItemGroup>
<ItemGroup>
2019-07-26 12:58:07 +02:00
<Content Include="Components\Application.xslt" />
2019-08-07 16:13:23 +02:00
<Content Include="Components\Configuration.xslt" />
2019-07-31 09:51:06 +02:00
<Content Include="Components\Service.xslt" />
2019-07-26 16:13:57 +02:00
<Content Include="Components\Reset.xslt" />
2020-03-13 10:28:04 +01:00
<Content Include="Resources\Banner.bmp" />
2020-03-16 15:25:49 +01:00
<Content Include="Resources\ConfigurationTool.ico" />
2020-03-13 10:28:04 +01:00
<Content Include="Resources\Dialog.bmp" />
2019-07-26 09:47:14 +02:00
<Content Include="Resources\License.rtf" />
2019-07-30 15:45:20 +02:00
<Content Include="Resources\Application.ico" />
2019-08-08 07:55:05 +02:00
<Content Include="Resources\ConfigurationFile.ico" />
2020-03-16 15:25:49 +01:00
<Content Include="Resources\ResetUtility.ico" />
2019-07-25 11:29:40 +02:00
</ItemGroup>
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
</Target>
2019-08-22 13:32:56 +02:00
<PropertyGroup>
<PostBuildEvent>git -C $(SolutionDir) checkout -- Setup/Components/Application.wxs
git -C $(SolutionDir) checkout -- Setup/Components/Configuration.wxs
git -C $(SolutionDir) checkout -- Setup/Components/Reset.wxs
git -C $(SolutionDir) checkout -- Setup/Components/Service.wxs</PostBuildEvent>
2019-07-26 09:47:14 +02:00
</PropertyGroup>
2019-07-25 11:29:40 +02:00
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Wix.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
2019-08-22 13:32:56 +02:00
<PropertyGroup>
<SignOutput>true</SignOutput>
</PropertyGroup>
<Target Name="SignCabs">
<Exec Command="signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 "%(SignCabs.FullPath)"" />
</Target>
<Target Name="SignMsi">
2019-08-23 09:49:46 +02:00
<Exec Command="signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 /d "Safe Exam Browser" "%(SignMsi.FullPath)"" />
2019-08-22 13:32:56 +02:00
</Target>
2020-07-22 18:51:56 +02:00
<PropertyGroup>
<PreBuildEvent>setlocal enabledelayedexpansion
2024-08-27 17:46:25 +02:00
set executable="$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\SafeExamBrowser.exe"
set parameters=/protect "C:\SEB\SafeExamBrowser.tmd" /inputfile %25executable%25 /outputfile %25executable%25
if not defined APPVEYOR (
set parameters=/shareconsole %25parameters%25
)
if exist "C:\SEB\Themida" (
if $(PlatformName) == x86 (
C:\SEB\Themida\Themida.exe %25parameters%25
) else (
C:\SEB\Themida\Themida64.exe %25parameters%25
)
if defined APPVEYOR (
if %25ERRORLEVEL%25 equ 0 (
echo Themida successfully executed.
) else (
echo ERROR: Themida failed with error code %25ERRORLEVEL%25!
)
)
DEL %25executable%25.bak
) else (
echo WARNING: Themida not executed!
)
2020-07-22 18:51:56 +02:00
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
signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 %25binaries%25
set binaries=
FOR /F %25%25G IN (%27dir "$(SolutionDir)SebWindowsConfig\bin\$(PlatformName)\$(ConfigurationName)\%2a.exe" "$(SolutionDir)SebWindowsConfig\bin\$(PlatformName)\$(ConfigurationName)\%2a.dll" /s /b%27) DO set binaries=!binaries! %25%25G
signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 %25binaries%25
set binaries=
FOR /F %25%25G IN (%27dir "$(SolutionDir)SafeExamBrowser.ResetUtility\bin\$(PlatformName)\$(ConfigurationName)\%2a.exe" "$(SolutionDir)SafeExamBrowser.ResetUtility\bin\$(PlatformName)\$(ConfigurationName)\%2a.dll" /s /b%27) DO set binaries=!binaries! %25%25G
signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 %25binaries%25
set binaries=
FOR /F %25%25G IN (%27dir "$(SolutionDir)SafeExamBrowser.Service\bin\$(PlatformName)\$(ConfigurationName)\%2a.exe" "$(SolutionDir)SafeExamBrowser.Service\bin\$(PlatformName)\$(ConfigurationName)\%2a.dll" /s /b%27) DO set binaries=!binaries! %25%25G
signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 %25binaries%25
"$(WIX)bin\heat.exe" dir "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -scom -srd -sreg -cg ApplicationComponents -dr ApplicationDirectory -sfrag -var var.SafeExamBrowser.Runtime.TargetDir -out $(ProjectDir)Components\Application.wxs -t $(ProjectDir)Components\Application.xslt
"$(WIX)bin\heat.exe" dir "$(SolutionDir)SebWindowsConfig\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -scom -srd -sreg -cg ConfigurationComponents -dr ConfigurationDirectory -sfrag -var var.SebWindowsConfig.TargetDir -out $(ProjectDir)Components\Configuration.wxs -t $(ProjectDir)Components\Configuration.xslt
"$(WIX)bin\heat.exe" dir "$(SolutionDir)SafeExamBrowser.ResetUtility\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -scom -srd -sreg -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.Service\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -scom -srd -sreg -cg ServiceComponents -dr ServiceDirectory -sfrag -var var.SafeExamBrowser.Service.TargetDir -out $(ProjectDir)Components\Service.wxs -t $(ProjectDir)Components\Service.xslt</PreBuildEvent>
</PropertyGroup>
2019-07-25 11:29:40 +02:00
</Project>