191 lines
No EOL
10 KiB
XML
191 lines
No EOL
10 KiB
XML
<?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' ">
|
|
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
|
|
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
|
|
<DefineConstants>Debug</DefineConstants>
|
|
<SuppressIces>ICE61</SuppressIces>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
|
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
|
|
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
|
|
<SuppressIces>ICE61</SuppressIces>
|
|
</PropertyGroup>
|
|
<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>
|
|
<ItemGroup>
|
|
<Compile Include="Components\Application.wxs" />
|
|
<Compile Include="Components\Configuration.wxs" />
|
|
<Compile Include="Components\Reset.wxs" />
|
|
<Compile Include="Components\Service.wxs" />
|
|
<Compile Include="Directories.wxs" />
|
|
<Compile Include="LegacyCleanup.wxs" />
|
|
<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" />
|
|
<Folder Include="Resources" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="Components\Application.xslt" />
|
|
<Content Include="Components\Configuration.xslt" />
|
|
<Content Include="Components\Service.xslt" />
|
|
<Content Include="Components\Reset.xslt" />
|
|
<Content Include="Resources\Banner.bmp" />
|
|
<Content Include="Resources\ConfigurationTool.ico" />
|
|
<Content Include="Resources\Dialog.bmp" />
|
|
<Content Include="Resources\License.rtf" />
|
|
<Content Include="Resources\Application.ico" />
|
|
<Content Include="Resources\ConfigurationFile.ico" />
|
|
<Content Include="Resources\ResetUtility.ico" />
|
|
</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>
|
|
<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>
|
|
</PropertyGroup>
|
|
<!--
|
|
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>
|
|
-->
|
|
<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">
|
|
<Exec Command="signtool sign /sm /tr http://timestamp.digicert.com /td sha256 /fd sha256 /d "Safe Exam Browser" "%(SignMsi.FullPath)"" />
|
|
</Target>
|
|
<PropertyGroup>
|
|
<PreBuildEvent>setlocal enabledelayedexpansion
|
|
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!
|
|
)
|
|
|
|
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>
|
|
</Project> |