First commit

This commit is contained in:
gushmazuko committed 2021-09-18 17:45:57 +02:00
commit 22b1b674ba
12011 files changed
+945073

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
name: "Deploy"
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
# - name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v1.0.3
- name: Build package
run: |
${{ secrets.MAKE_INSTALLER_BAT }}
shell: cmd
- name: Create a Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
- name: list
run: dir
shell: cmd
- name: Upload release binaries
uses: csexton/release-asset-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: "build/*.msi"
release-url: ${{ steps.create_release.outputs.upload_url }}
Executable
+2
View File
@@ -0,0 +1,2 @@
build/*
!build/*.msi
Executable
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 gushmazuko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+36
View File
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="en-us" Codepage="1252" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="Language">1033</String>
<!-- Supported language and codepage codes can be found here: http://www.tramontana.co.hu/wix/lesson2.php#2.4 -->
<String Id="ApplicationName">BMW Advanced Tools</String>
<String Id="ManufacturerName">Gushmazuko</String>
<String Id="ProductDescription">BMW ECUs Programming, Coding and Diagnostic Tools / BMW Programs for Programming, Coding and Diagnostics of BMW ECUs</String>
<String Id="InpaDescription"></String>
<String Id="BluetoothActivationToolDescription"></String>
<String Id="BMWCodingToolDescription"></String>
<String Id="FindECUDescription"></String>
<String Id="NcsDummyDescription"></String>
<String Id="NcsExpertDescription"></String>
<String Id="Tool32Description"></String>
<String Id="WinKFPDescription"></String>
<String Id="Comments">Installs BMW Advanced Tools</String>
<String Id="LicenseRtf" Overridable="yes">Eula-en.rtf</String>
<String Id="AppNotSupported">This application is is not supported on your current OS. Minimal OS supported is Windows XP SP2</String>
<String Id="DotNetFrameworkNeeded">.NET Framework 3.5 is required. Please install the .NET Framework then run this installer again.</String>
<String Id="NewerVersionInstalled">A newer version of !(loc.ApplicationName) is already installed.</String>
<String Id="CloseRunningApp">!(loc.ApplicationName) is running. You need to close it first!</String>
<String Id="FeatureCompleteDescription">The complete package.</String>
<String Id="FeatureMainProgramDescription">The main version including all dependencies.</String>
<String Id="FeatureMainProgramTitle">Main program</String>
<!--<String Id="LicenseAgreementDlgLicenseAcceptedCheckBox">Agree</String>-->
<String Id="UpgradeWelcomeDlgTitle">!(loc.ApplicationName) Setup</String>
<String Id="UpgradeWelcomeDlgHeaderTitle">A previous version of !(loc.ApplicationName) is detected</String>
<String Id="UpgradeWelcomeDlgMessage">The setup will perform an upgrade of !(loc.ApplicationName). Click Next to proceed with the upgrade or Cancel to exit the setup.</String>
<String Id="CreateDesktopShortcutCheckboxText">Create a shortcut on Desktop</String>
</WixLocalization>
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<!-- #### USER-DEFINED VARIABLES THAT DEFINED DURING BUILD #### -->
<?define AppVersion="$(var.BUILD_VERSION)" ?>
<!-- Upgrade code HAS to be the same for all updates. Once you've chosen it, don't change it. -->
<?define UpgradeCode="$(var.BUILD_GUID)" ?>
<!-- Project directory -->
<?define ProjectDir="$(var.BUILD_PROJECTDIR)" ?>
<!-- #### USER-DEFINED VARIABLES #### -->
<!-- Set to 1 if you want to enable major upgrade -->
<?define EnableMajorUpgrade="1" ?>
<?define InpaExeName="INPALOAD.exe" ?>
<!-- App Info -->
<!-- The URL for Add/Remove Programs -->
<?define InfoURL="https://github.com/gushmazuko/bmw-advanced-tools" ?>
<!-- If your app supports both platform (x86 & x64), you have to create separate MSI. -->
<?define Platform="x64" ?>
<!-- App Icon -->
<?define AppIconSource="images\app.ico" ?>
<?define InpaIconSource="images\bmw.ico" ?>
<!-- Other resources -->
<!-- TopBanner.bmp: 499x58 px -->
<?define ImageTopBannerSource="images\TopBanner.bmp" ?>
<!-- Dialog.bmp: 499x301 px; Graphical area: 165x301 px -->
<?define ImageDialogSource="images\Dialog.bmp" ?>
<!-- GUIDs -->
<?define GuidInstallLocation="21F7A851-4360-4E56-98EA-C6FB9AA516B8" ?>
<?define GuidApplicationShortcut="CB9C4A4C-996F-4746-B0C0-FBDD55B0E47A" ?>
<?define GuidApplicationShortcutDesktop="851AC823-1BFE-4569-96EE-4A05C0DC9925" ?>
<?define GuidProductId="C68BFB0A-811D-4F46-B8BC-04C41752DAF7" ?>
<?define GuidPathVariable="962FBAB0-B10B-416E-BCDF-0FC03D2EEC03" ?>
<?define GuidEdibasEnvironmentVariable="6D77E3D6-2972-46A9-9F7C-8AEF3C76C6B7" ?>
<?define SYSDISK="C:\" ?>
<!-- #### DO NOT EDIT ANYTHING BELOW THIS LINE #### -->
<?if $(var.EnableMajorUpgrade) = 1 ?>
<?define ProductId = "*" ?>
<?else ?>
<?define ProductId = "$(var.GuidProductId)" ?>
<?endif ?>
</Include>
Executable
+316
View File
@@ -0,0 +1,316 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Add xmlns:util namespace definition to be able to use stuff from WixUtilExtension.dll -->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<!-- Include defined variables -->
<?include Product.Var.wxi ?>
<!-- The upgrade code must never change as long as the product lives! -->
<!-- Product IDs must be autogenerated (*) or else major upgrades will not work -->
<Product Id="$(var.ProductId)" Name="!(loc.ApplicationName)" Language="!(loc.Language)" Version="$(var.AppVersion)" Manufacturer="!(loc.ManufacturerName)" UpgradeCode="$(var.UpgradeCode)" >
<!-- Package IDs are valid for a single package version only - they are autogenerated by WiX -->
<!-- Let's require Windows Installer 4.0 (included in Vista) -->
<!-- And ALWAYS install per machine!!! -->
<Package Id="*" InstallerVersion="400" Compressed="yes" InstallPrivileges="elevated" InstallScope="perMachine" Description="!(loc.ProductDescription)" Comments="!(loc.Comments) $(var.AppVersion)" />
<!-- Define icons (ID should not be longer than 18 chars and must end with ".exe") -->
<Icon Id="AppIcon.ico" SourceFile="$(var.AppIconSource)" />
<Icon Id="InpaIcon.ico" SourceFile="$(var.InpaIconSource)" />
<!-- We do not have more than one medium (Floppy, CD, ...). Everything in one file. -->
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<!-- Upgrade settings -->
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion OnlyDetect="yes" Minimum="$(var.AppVersion)" IncludeMinimum="no" Property="NEWER_VERSION_FOUND" />
<UpgradeVersion Minimum="0.0.0.0" IncludeMinimum="yes" Maximum="$(var.AppVersion)" IncludeMaximum="no" Property="OLDER_VERSION_FOUND" />
</Upgrade>
<!-- License agreement text: dummy. Real text is set in WXS file -->
<!--<WixVariable Id="WixUILicenseRtf" Value="dummy" />-->
<!-- UI customization -->
<WixVariable Id="WixUIBannerBmp" Value="$(var.ImageTopBannerSource)" />
<WixVariable Id="WixUIDialogBmp" Value="$(var.ImageDialogSource)" />
<Binary Id="imageDialog" SourceFile="$(var.ImageDialogSource)" />
<!-- Set properties for Add/Remove Programs -->
<Property Id="ARPPRODUCTICON" Value="AppIcon.ico" />
<Property Id="ARPHELPLINK" Value="$(var.InfoURL)" />
<!-- Remove repair -->
<!--<Property Id="ARPNOREPAIR" Value="yes" Secure="yes" />-->
<!-- Remove modify -->
<!--<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" />-->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="DialogBitmap">imageDialog</Property>
<!-- Determine the directory of a previous installation (if one exists). If not INSTALLDIR stays empty -->
<Property Id="INSTALLDIR">
<RegistrySearch Id="DetermineInstallLocation" Type="raw" Root="HKLM" Key="Software\!(loc.ApplicationName)" Name="InstallLocation" />
</Property>
<Property Id="UpgradeDlgHasShown" Value="0" />
<Property Id="ADDDESKTOPSHORTCUT" Value="1"/>
<!-- Reference the global NETFRAMEWORK35 property to check if it exists -->
<PropertyRef Id="NETFRAMEWORK35"/>
<!--
Startup conditions that checks if .Net Framework 3.5 is installed or if
we're running the OS higher than Windows XP SP2.
If not the installation is aborted.
By doing the (Installed OR ...) property means that this condition will only
be evaluated if the app is being installed and not on uninstall or changing
-->
<Condition Message="!(loc.DotNetFrameworkNeeded)">
<![CDATA[Installed OR NETFRAMEWORK35]]>
</Condition>
<Condition Message="!(loc.AppNotSupported)">
<![CDATA[Installed OR ((VersionNT >= 501 AND ServicePackLevel >= 2) OR (VersionNT >= 502))]]>
</Condition>
<!-- Set up ARPINSTALLLOCATION property (http://blogs.technet.com/b/alexshev/archive/2008/02/09/from-msi-to-wix-part-2.aspx) -->
<CustomAction Id="SetARPINSTALLLOCATION" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
<!-- Save the command line value INSTALLDIR and restore it later in the sequence or it will be overwritten by the value saved to the registry during an upgrade -->
<!-- http://robmensching.com/blog/posts/2010/5/2/the-wix-toolsets-remember-property-pattern/ -->
<CustomAction Id='SaveCmdLineValueINSTALLDIR' Property='CMDLINE_INSTALLDIR' Value='[INSTALLDIR]' Execute='firstSequence' />
<CustomAction Id='SetFromCmdLineValueINSTALLDIR' Property='INSTALLDIR' Value='[CMDLINE_INSTALLDIR]' Execute='firstSequence' />
<CustomAction Id="NewerVersionFound" Error="!(loc.NewerVersionInstalled)" />
<!-- UI Sequence -->
<InstallUISequence>
<!-- Check for newer versions with FindRelatedProducts and execute the custom action after it -->
<Custom Action="NewerVersionFound" After="FindRelatedProducts">
<![CDATA[NEWER_VERSION_FOUND]]>
</Custom>
<Custom Action='SaveCmdLineValueINSTALLDIR' Before='AppSearch' />
<Custom Action='SetFromCmdLineValueINSTALLDIR' After='AppSearch'>CMDLINE_INSTALLDIR</Custom>
</InstallUISequence>
<!-- Exec Sequence -->
<!-- This is the main installer sequence run when the product is actually installed -->
<InstallExecuteSequence>
<!-- Check for newer versions with FindRelatedProducts and execute the custom action after it -->
<Custom Action="NewerVersionFound" After="FindRelatedProducts">
<![CDATA[NEWER_VERSION_FOUND]]>
</Custom>
<!-- Remove the previous versions of the product -->
<RemoveExistingProducts After="InstallInitialize"/>
<!-- WixCloseApplications is a built in custom action that uses util:CloseApplication below -->
<Custom Action="WixCloseApplications" Before="InstallInitialize" />
<!-- Determine the install location after the install path has been validated by the installer -->
<Custom Action="SetARPINSTALLLOCATION" After="InstallValidate"></Custom>
<Custom Action='SaveCmdLineValueINSTALLDIR' Before='AppSearch' />
<Custom Action='SetFromCmdLineValueINSTALLDIR' After='AppSearch'>CMDLINE_INSTALLDIR</Custom>
</InstallExecuteSequence>
<!-- This will ask the user to close the app if it's running while upgrading -->
<util:CloseApplication Id="CloseApp" CloseMessage="no" Description="!(loc.CloseRunningApp)" ElevatedCloseMessage="no" RebootPrompt="no" Target="$(var.InpaExeName)" />
<!-- Outermost folder (kind of virtual). Fixed entry. -->
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- We start building our directory structure here -->
<!-- "ProgramFilesFolder" is a variable containing the absolute path. -->
<!-- For a list of folder variables, see: http://msdn.microsoft.com/en-us/library/aa372057%28VS.85%29.aspx -->
<Directory Id="INSTALLDIR">
<Directory Id="ECAPPSDIR" Name="EC-APPS">
<Directory Id="INPADIR" Name="INPA">
<Directory Id="INPABINDIR" Name="BIN"></Directory>
</Directory>
<Directory Id="BMWCODINGTOOLDIR" Name="BMWCodingTool"></Directory>
<Directory Id="FINDECUDIR" Name="FindECU"></Directory>
<Directory Id="NFSDIR" Name="NFS">
<Directory Id="NFSBINDIR" Name="BIN"></Directory>
</Directory>
</Directory>
<Directory Id="EDIABASDIR" Name="EDIABAS">
<Directory Id="EDIABASBINDIR" Name="Bin"></Directory>
</Directory>
<Directory Id="NCSEXPERDIR" Name="NCSEXPER">
<Directory Id="NCSEXPERBINDIR" Name="Bin"></Directory>
<Directory Id="NCSDUMMYDIR" Name="NCS_Dummy"></Directory>
</Directory>
</Directory>
<!-- Registry entries -->
<Component Id="RegValInstallLocation_comp" Guid="$(var.GuidInstallLocation)">
<!-- Do NOT use the application's default registry key here, because THIS key will be removed on uninstall
(important when installing a newer version, because that is uninstall followed by install) -->
<RegistryKey Root="HKLM" Key="Software\!(loc.ApplicationName)">
<RegistryValue Name="InstallLocation" Value="[INSTALLDIR]" Type="string" KeyPath="yes" />
</RegistryKey>
</Component>
<!-- Shortcut folders -->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="!(loc.ApplicationName)" /></Directory>
<Directory Id="DesktopFolder" Name="Desktop"></Directory>
</Directory>
<!-- Set ROOT Path -->
<SetDirectory Id="INSTALLDIR" Value="[WindowsVolume]" />
<!-- Shortcut components -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="$(var.GuidApplicationShortcut)">
<Shortcut Id="InpaStartMenuShortcut" Name="Inpa" Description="!(loc.InpaDescription)" Target="[INPABINDIR]\$(var.InpaExeName)" WorkingDirectory="INPABINDIR" Icon="InpaIcon.ico" />
<Shortcut Id="BluetoothActivationToolStartMenuShortcut" Name="Bluetooth Activation Tool" Description="!(loc.BluetoothActivationToolDescription)" Target="[EDIABASBINDIR]\Bluetooth Activation Tool.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="BMWCodingToolStartMenuShortcut" Name="BMW Coding Tool" Description="!(loc.BMWCodingToolDescription)" Target="[BMWCODINGTOOLDIR]\BMW Coding Tool.exe" WorkingDirectory="BMWCODINGTOOLDIR" />
<Shortcut Id="FindECUStartMenuShortcut" Name="FindECU" Description="!(loc.FindECUDescription)" Target="[FINDECUDIR]\FindECU.exe" WorkingDirectory="FINDECUDIR" />
<Shortcut Id="NcsDummyStartMenuShortcut" Name="NcsDummy" Description="!(loc.NcsDummyDescription)" Target="[NCSDUMMYDIR]\NcsDummy.exe" WorkingDirectory="NCSDUMMYDIR" />
<Shortcut Id="NcsExpertStartMenuShortcut" Name="NcsExpert" Description="!(loc.NcsExpertDescription)" Target="[NCSEXPERBINDIR]\NCSEXPER.exe" WorkingDirectory="NCSEXPERBINDIR" />
<Shortcut Id="Tool32StartMenuShortcut" Name="Tool32" Description="!(loc.Tool32Description)" Target="[EDIABASBINDIR]\Tool32.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="WinKFPStartMenuShortcut" Name="WinKFP" Description="!(loc.WinKFPDescription)" Target="[NFSBINDIR]\winkfpt.exe" WorkingDirectory="NFSBINDIR" />
<RemoveFolder Id="RemoveApplicationProgramFsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\!(loc.ApplicationName)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="DesktopFolder">
<Component Id="ApplicationShortcutDesktop" Guid="$(var.GuidApplicationShortcutDesktop)">
<Shortcut Id="InpaDesktopShortcut" Name="Inpa" Description="!(loc.InpaDescription)" Target="[INPABINDIR]\$(var.InpaExeName)" WorkingDirectory="INPABINDIR" Icon="InpaIcon.ico" />
<Shortcut Id="BluetoothActivationToolDesktopShortcut" Name="Bluetooth Activation Tool" Description="!(loc.BluetoothActivationToolDescription)" Target="[EDIABASBINDIR]\Bluetooth Activation Tool.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="BMWCodingToolDesktopShortcut" Name="BMW Coding Tool" Description="!(loc.BMWCodingToolDescription)" Target="[BMWCODINGTOOLDIR]\BMW Coding Tool.exe" WorkingDirectory="BMWCODINGTOOLDIR" />
<Shortcut Id="FindECUDesktopShortcut" Name="FindECU" Description="!(loc.FindECUDescription)" Target="[FINDECUDIR]\FindECU.exe" WorkingDirectory="FINDECUDIR" />
<Shortcut Id="NcsDummyDesktopShortcut" Name="NcsDummy" Description="!(loc.NcsDummyDescription)" Target="[NCSDUMMYDIR]\NcsDummy.exe" WorkingDirectory="NCSDUMMYDIR" />
<Shortcut Id="NcsExpertDesktopShortcut" Name="NcsExpert" Description="!(loc.NcsExpertDescription)" Target="[NCSEXPERBINDIR]\NCSEXPER.exe" WorkingDirectory="NCSEXPERBINDIR" />
<Shortcut Id="Tool32DesktopShortcut" Name="Tool32" Description="!(loc.Tool32Description)" Target="[EDIABASBINDIR]\Tool32.exe" WorkingDirectory="EDIABASBINDIR" />
<Shortcut Id="WinKFPDesktopShortcut" Name="WinKFP" Description="!(loc.WinKFPDescription)" Target="[NFSBINDIR]\winkfpt.exe" WorkingDirectory="NFSBINDIR" />
<RemoveFolder Id="RemoveDesktopFolder" Directory="DesktopFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\!(loc.ApplicationName)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
<Condition>ADDDESKTOPSHORTCUT</Condition>
</Component>
</DirectoryRef>
<DirectoryRef Id="TARGETDIR">
<Component Id="PathVariable" Guid="$(var.GuidPathVariable)">
<Environment Id="PATH" Name="PATH" Value="[EDIABASBINDIR]" Permanent="no" Part="last" Action="set" System="yes" />
</Component>
<Component Id="EdibasEnvironmentVariable" Guid="$(var.GuidEdibasEnvironmentVariable)">
<Environment Id="ediabas_config_dir" Name="ediabas_config_dir" Value="[EDIABASBINDIR]" Permanent="no" Action="set" System="yes" />
</Component>
</DirectoryRef>
<!-- Features define which parts of the application can be installed in a custom installation -->
<Feature Id="Complete" Title="!(loc.ApplicationName)" Description="!(loc.FeatureCompleteDescription)" Display="expand" Level="1" ConfigurableDirectory="INSTALLDIR">
<!-- A feature block for the main (GUI) program and all its dependencies -->
<Feature Id="MainProgram" Title="!(loc.FeatureMainProgramTitle)" Description="!(loc.FeatureMainProgramDescription)" Level="1">
<!-- Installation folder: Generated automatically by heat.exe -->
<ComponentGroupRef Id="INSTALLDIR_comp" />
<!-- Registry entries -->
<ComponentRef Id="RegValInstallLocation_comp" />
<!-- Shortcuts -->
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="ApplicationShortcutDesktop" />
<ComponentRef Id="PathVariable" />
<ComponentRef Id="EdibasEnvironmentVariable" />
<ComponentGroupRef Id="OCX_comp" />
<!-- <ComponentGroupRef Id="comdlg32_comp" /> -->
</Feature>
</Feature>
<UI Id="MyWixUI">
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="InstallDir" />
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Dialog Id="CustomLicenseAgreementDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="20" Y="207" Width="330" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="!(loc.LicenseAgreementDlgLicenseAcceptedCheckBox)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">CostingComplete = 1</Publish>
<Condition Action="disable">
<![CDATA[LicenseAccepted <> "1"]]>
</Condition>
<Condition Action="enable">LicenseAccepted = "1"</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no">
<!-- This is the original line -->
<!--<Text SourceFile="!(wix.WixUILicenseRtf=$(var.LicenseRtf))" />-->
<!-- To enable EULA localization we change it to this: -->
<Text SourceFile="$(var.ProjectDir)\!(loc.LicenseRtf)" />
<!-- In each of the localization files (wxl) put a line like this:
<String Id="LicenseRtf" Overridable="yes">EULA_en-us.rtf</String>-->
</Control>
<Control Id="Print" Type="PushButton" X="112" Y="243" Width="56" Height="17" Text="!(loc.WixUIPrint)">
<Publish Event="DoAction" Value="WixUIPrintEula">1</Publish>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgTitle)" />
</Dialog>
<Dialog Id="CustomUpgradeDlg" Width="370" Height="270" Title="!(loc.UpgradeWelcomeDlgTitle)" NoMinimize="yes">
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)">
<Publish Event="NewDialog" Value="WelcomeDlg">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Property="UpgradeDlgHasShown" Value="1">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[DialogBitmap]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="30" Transparent="yes" NoPrefix="yes">
<Text>!(loc.UpgradeWelcomeDlgMessage)</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>{\WixUI_Font_Bigger}!(loc.UpgradeWelcomeDlgHeaderTitle)</Text>
</Control>
</Dialog>
<Dialog Id="CustomInstallDirDlg" Width="370" Height="270" Title="!(loc.InstallDirDlg_Title)">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgDescription)" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.InstallDirDlgTitle)" />