SEBWIN-300, SEBWIN-337: Completed integration of configuration tool into setup and build process.
This commit is contained in:
parent
f2c30f7a16
commit
3a12b365cb
8 changed files with 17 additions and 10 deletions
|
@ -35,7 +35,7 @@
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
<wix:File Id="ApplicationIconFile" Source="Resources\Application.ico" />
|
<wix:File Id="ApplicationIconFile" Source="Resources\Application.ico" />
|
||||||
<wix:File Id="ConfigurationIconFile" Source="Resources\Configuration.ico" />
|
<wix:File Id="ConfigurationIconFile" Source="Resources\ConfigurationFile.ico" />
|
||||||
<wix:ProgId Id="ConfigurationFileExtension" Description="SEB Configuration File" Icon="ConfigurationIconFile" Advertise="no">
|
<wix:ProgId Id="ConfigurationFileExtension" Description="SEB Configuration File" Icon="ConfigurationIconFile" Advertise="no">
|
||||||
<wix:Extension Id="seb" ContentType="application/seb" Advertise="no">
|
<wix:Extension Id="seb" ContentType="application/seb" Advertise="no">
|
||||||
<wix:Verb Id="open" Command="Open" Argument=""%1"" TargetFile="MainExecutable" />
|
<wix:Verb Id="open" Command="Open" Argument=""%1"" TargetFile="MainExecutable" />
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<UIRef Id="WixUI_Minimal" />
|
<UIRef Id="WixUI_Minimal" />
|
||||||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="yes" />
|
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="yes" />
|
||||||
<Icon Id="ApplicationIcon" SourceFile="Resources\Application.ico" />
|
<Icon Id="ApplicationIcon" SourceFile="Resources\Application.ico" />
|
||||||
|
<Icon Id="ConfigurationToolIcon" SourceFile="Resources\ConfigurationTool.ico" />
|
||||||
<Property Id="ARPPRODUCTICON" Value="ApplicationIcon" />
|
<Property Id="ARPPRODUCTICON" Value="ApplicationIcon" />
|
||||||
<WixVariable Id="WixUILicenseRtf" Value="Resources\License.rtf" />
|
<WixVariable Id="WixUILicenseRtf" Value="Resources\License.rtf" />
|
||||||
<!-- <WixVariable Id="WixUIDialogBmp" Value="Resources\Dialog.bmp" /> 493 × 312 -->
|
<!-- <WixVariable Id="WixUIDialogBmp" Value="Resources\Dialog.bmp" /> 493 × 312 -->
|
||||||
|
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
BIN
Setup/Resources/ConfigurationTool.ico
Normal file
BIN
Setup/Resources/ConfigurationTool.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
|
@ -92,22 +92,25 @@
|
||||||
<Content Include="Components\Reset.xslt" />
|
<Content Include="Components\Reset.xslt" />
|
||||||
<Content Include="Resources\License.rtf" />
|
<Content Include="Resources\License.rtf" />
|
||||||
<Content Include="Resources\Application.ico" />
|
<Content Include="Resources\Application.ico" />
|
||||||
<Content Include="Resources\Configuration.ico" />
|
<Content Include="Resources\ConfigurationFile.ico" />
|
||||||
|
<Content Include="Resources\ConfigurationTool.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
|
<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') " />
|
<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' ">
|
<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/" />
|
<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>
|
</Target>
|
||||||
<PropertyGroup>
|
|
||||||
<PreBuildEvent>"$(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
|
|
||||||
"$(WIX)bin\heat.exe" dir "$(SolutionDir)SafeExamBrowser.Service\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -srd -cg ServiceComponents -dr ServiceDirectory -sfrag -var var.SafeExamBrowser.Service.TargetDir -out $(ProjectDir)Components\Service.wxs -t $(ProjectDir)Components\Service.xslt</PreBuildEvent>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>git -C $(SolutionDir) checkout -- Setup/Components/Application.wxs
|
<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/Reset.wxs
|
||||||
git -C $(SolutionDir) checkout -- Setup/Components/Service.wxs</PostBuildEvent>
|
git -C $(SolutionDir) checkout -- Setup/Components/Service.wxs</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<PreBuildEvent>"$(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
|
||||||
|
"$(WIX)bin\heat.exe" dir "$(SolutionDir)SebWindowsConfig\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -srd -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 -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.Service\bin\$(PlatformName)\$(ConfigurationName)" -nologo -ag -g1 -srd -cg ServiceComponents -dr ServiceDirectory -sfrag -var var.SafeExamBrowser.Service.TargetDir -out $(ProjectDir)Components\Service.wxs -t $(ProjectDir)Components\Service.xslt</PreBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!--
|
<!--
|
||||||
To modify your build process, add your task inside one of the targets below and uncomment it.
|
To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<Shortcut Id="ApplicationShortcut" Name="Safe Exam Browser" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="ProgramMenuFolder"
|
<Shortcut Id="ApplicationShortcut" Name="Safe Exam Browser" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="ProgramMenuFolder"
|
||||||
Target="[ApplicationDirectory]\$(var.SafeExamBrowser.Runtime.TargetFileName)" WorkingDirectory="ApplicationDirectory"
|
Target="[ApplicationDirectory]\$(var.SafeExamBrowser.Runtime.TargetFileName)" WorkingDirectory="ApplicationDirectory"
|
||||||
Description="Starts the main application." />
|
Description="Starts the main application." />
|
||||||
<Shortcut Id="ConfigurationToolShortcut" Name="SEB Configuration Tool" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="StartMenuDirectory"
|
<Shortcut Id="ConfigurationToolShortcut" Name="SEB Configuration Tool" Icon="ConfigurationToolIcon" IconIndex="0" Advertise="no" Directory="StartMenuDirectory"
|
||||||
Target="[ConfigurationDirectory]\$(var.SebWindowsConfig.TargetFileName)" WorkingDirectory="ConfigurationDirectory"
|
Target="[ConfigurationDirectory]\$(var.SebWindowsConfig.TargetFileName)" WorkingDirectory="ConfigurationDirectory"
|
||||||
Description="Provides options to edit configuration files for the main application." />
|
Description="Provides options to edit configuration files for the main application." />
|
||||||
<Shortcut Id="ResetUtilityShortcut" Name="SEB Reset Utility" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="StartMenuDirectory"
|
<Shortcut Id="ResetUtilityShortcut" Name="SEB Reset Utility" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="StartMenuDirectory"
|
||||||
|
|
|
@ -33,6 +33,9 @@ artifacts:
|
||||||
- path: SafeExamBrowser.Runtime\bin\$(platform)\$(configuration)
|
- path: SafeExamBrowser.Runtime\bin\$(platform)\$(configuration)
|
||||||
name: 'SEB_$(appveyor_build_version)_Application'
|
name: 'SEB_$(appveyor_build_version)_Application'
|
||||||
type: zip
|
type: zip
|
||||||
|
- path: SebWindowsConfig\bin\$(platform)\$(configuration)
|
||||||
|
name: 'SEB_$(appveyor_build_version)_Configuration'
|
||||||
|
type: zip
|
||||||
- path: SafeExamBrowser.ResetUtility\bin\$(platform)\$(configuration)
|
- path: SafeExamBrowser.ResetUtility\bin\$(platform)\$(configuration)
|
||||||
name: 'SEB_$(appveyor_build_version)_Reset'
|
name: 'SEB_$(appveyor_build_version)_Reset'
|
||||||
type: zip
|
type: zip
|
||||||
|
|
Loading…
Reference in a new issue