Files
DotNet-ListComPort/NibblePoker.Packaging.ListComPort/Wix/ListComPort.wxs
T
aziascreations e2bc49c0f6 Started refactoring the build process, Moved assets around, Separated some build scripts, Added other assets
Update .gitignore, NibblePoker.Application.ListComPort.csproj, and 39 more files...
2022-11-19 02:34:20 +01:00

259 lines
16 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Imports shared and platform-dependant variables -->
<?include Variables.wxi?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<!--
See: https://wixtoolset.org/documentation/manual/v3/xsd/wix/product.html
-->
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="3.0.0.0"
Manufacturer="$(var.ProductManufacturer)" UpgradeCode="$(var.ProductUpgradeCode)">
<!--
Package's properties as shown in Explorer, COM through the IStream interface and ???.
See: https://wixtoolset.org/documentation/manual/v3/xsd/wix/package.html
The "InstallerVersion" is changed from "200" to "500" since Windows Installer 5.0 and this software
both require at least Windows to run.
See: https://learn.microsoft.com/en-us/windows/win32/msi/released-versions-of-windows-installer
-->
<Package Description="$(var.PackageDescription)" Comments="$(var.PackageComments)"
InstallerVersion="500" Compressed="yes" Platform="$(var.PackagePlatform)" />
<!--
Prevents downgrades.
See: https://wixtoolset.org/documentation/manual/v3/xsd/wix/majorupgrade.html
-->
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<Media Id="1" Cabinet="lscom.cab" EmbedCab="yes" />
<!--
Icon used for the entry in the control panel's "Programs and Features" section.
See: https://wixtoolset.org/documentation/manual/v3/xsd/wix/icon.html
-->
<Icon Id="IconMain" SourceFile="..\Icons\lscom-v2-text-01.ico" />
<!--
Binds the Icon "IconMain" to the aforementioned control panel's section
See:
* https://wixtoolset.org/documentation/manual/v3/xsd/wix/property.html
* https://learn.microsoft.com/en-us/windows/win32/msi/property-table?redirectedfrom=MSDN
-->
<Property Id="ARPPRODUCTICON" Value="IconMain" />
<!--
Images used in the installer as the top and side banner.
-->
<WixVariable Id="WixUIBannerBmp" Value="WixUIBannerBmp.png" />
<WixVariable Id="WixUIDialogBmp" Value="BannerSide.png" />
<!--
Images that should be used in as some icons.
IDK where they should show up tho.
-->
<WixVariable Id="WixUIExclamationIco" Value="WixUIExclamationIco.png" />
<WixVariable Id="WixUIInfoIco" Value="WixUIInfoIco.png" />
<WixVariable Id="WixUINewIco" Value="WixUINewIco.png" />
<WixVariable Id="WixUIUpIco" Value="WixUIUpIco.png" />
<!--
License files and MS privacy notice.
MIT licenses aren't included as they don't act as EULA.
The "WixUILicenseRtf" variable is used by the standard "LicenseAgreementDlg".
-->
<WixVariable Id="WixUILicenseMicrosoftDotNetRtf" Value="..\Licenses\License_Microsoft_DotNet.rtf" />
<WixVariable Id="WixUILicenseMicrosoftVisualStudioRtf" Value="..\Licenses\License_Microsoft_VisualStudio.rtf" />
<WixVariable Id="WixUILicenseMicrosoftWindowsSdkRtf" Value="..\Licenses\License_WindowsSDK.rtf" />
<WixVariable Id="WixUILicenseMicrosoftPrivacyNoticeRtf" Value="..\Licenses\PrivacyNotice_Microsoft_2022-09.rtf" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)" Name="PFiles">
<Directory Id="ORGANIZATIONFOLDER" Name="NibblePoker">
<Directory Id="INSTALLFOLDER" Name="lscom">
<Directory Id="LICENSESFOLDER" Name="Licenses"/>
</Directory>
</Directory>
</Directory>
</Directory>
<ComponentGroup Id="ProductComponentGroup">
<Component Id="Software" Guid="2b0b66d2-fc39-485b-baee-e5b0da8142a0" Directory="INSTALLFOLDER" Feature="FeatureExecutables" Win64="$(var.Win64)">
<File KeyPath="yes" Source="$(var.FilePathExecutable)" Name="lscom.exe" />
</Component>
<Component Id="Licenses" Guid="5aa34a6f-2b5c-4544-8979-a20d6c1d3f3c" Directory="LICENSESFOLDER" Feature="FeatureLicenses" Win64="$(var.Win64)">
<File Source="..\Licenses\License_DotNetCore.pdf" Name="License_DotNetCore.pdf" />
<File Source="..\Licenses\License_Microsoft_DotNet.pdf" Name="License_Microsoft_DotNet.pdf" />
<File Source="..\Licenses\License_Microsoft_VisualStudio.pdf" Name="License_Microsoft_VisualStudio.pdf" />
<File Source="..\Licenses\License_NibblePoker.pdf" Name="License_NibblePoker.pdf" />
<File Source="..\Licenses\License_WindowsSDK.pdf" Name="License_WindowsSDK.pdf" />
<File Source="..\Licenses\PrivacyNotice_Microsoft_2022-09.pdf" Name="PrivacyNotice_Microsoft_2022-09.pdf" />
</Component>
<Component Id="Registry" Guid="73b5468a-97b3-4469-a95d-70330ed229e6" Directory="INSTALLFOLDER" Feature="FeatureRegistryPath" Win64="$(var.Win64)">
<Environment Id="UpdatePath" Name="PATH" Part="last" Action="set" Permanent="yes" System="yes" Value="[INSTALLFOLDER]" />
<CreateFolder Directory="INSTALLFOLDER" />
</Component>
</ComponentGroup>
<!--
Declares some features shown in the "CustomizeDlg" to which components are bound by using the feature's ID.
See: https://wixtoolset.org/documentation/manual/v3/xsd/wix/feature.html
-->
<Feature Id="FeatureExecutables" Title="Executables"
Description="Installs &quot;lscom.exe&quot;."
Level="1" Absent="disallow">
</Feature>
<Feature Id="FeatureLicenses" Title="Licenses Files"
Description="Installs the licenses files and Microsoft's privacy notice."
Level="1" Absent="disallow">
</Feature>
<Feature Id="FeatureRegistryPath" Title="Add to PATH"
Description="Allows the program to be called from a terminal by adding the installation directory to the %PATH% environment variable."
Level="1" Absent="allow">
</Feature>
<!--
Dialog for Microsoft's Privacy notice.
-->
<UI>
<Dialog Id="LicenseMicrosoftDotNetDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<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)" />
<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="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">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 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="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="160" Sunken="yes" TabSkip="no">
<Text SourceFile="!(wix.WixUILicenseMicrosoftDotNetRtf)" />
</Control>
</Dialog>
<Dialog Id="LicenseMicrosoftVisualStudioDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<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)" />
<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="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">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 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="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="160" Sunken="yes" TabSkip="no">
<Text SourceFile="!(wix.WixUILicenseMicrosoftVisualStudioRtf)" />
</Control>
</Dialog>
<Dialog Id="LicenseMicrosoftWindowsSdkDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<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)" />
<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="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">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 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="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="160" Sunken="yes" TabSkip="no">
<Text SourceFile="!(wix.WixUILicenseMicrosoftWindowsSdkRtf)" />
</Control>
</Dialog>
<Dialog Id="LicenseMicrosoftPrivacyNoticeDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
<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)" />
<Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="20" Y="207" Width="330" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="!(loc.LicenseAgreementDlgLicenseAcceptedCheckBox)" />
<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="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">!(wix.WixUICostingPopupOptOut) OR 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="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no">
<Text SourceFile="!(wix.WixUILicenseMicrosoftPrivacyNoticeRtf)" />
</Control>
</Dialog>
</UI>
<UI Id="UserInterface">
<Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" />
<Property Id="WixUI_Mode" Value="Custom" />
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="9" Bold="yes" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="UserExit" />
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseMicrosoftDotNetDlg"></Publish>
<Publish Dialog="LicenseMicrosoftDotNetDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftDotNetDlg" Control="Next" Event="NewDialog" Value="LicenseMicrosoftVisualStudioDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftVisualStudioDlg" Control="Back" Event="NewDialog" Value="LicenseMicrosoftDotNetDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftVisualStudioDlg" Control="Next" Event="NewDialog" Value="LicenseMicrosoftWindowsSdkDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftWindowsSdkDlg" Control="Back" Event="NewDialog" Value="LicenseMicrosoftVisualStudioDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftWindowsSdkDlg" Control="Next" Event="NewDialog" Value="LicenseMicrosoftPrivacyNoticeDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftPrivacyNoticeDlg" Control="Back" Event="NewDialog" Value="LicenseMicrosoftWindowsSdkDlg">1</Publish>
<Publish Dialog="LicenseMicrosoftPrivacyNoticeDlg" Control="Next" Event="NewDialog" Value="CustomizeDlg">LicenseAccepted = "1"</Publish>
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="LicenseMicrosoftPrivacyNoticeDlg" Order="1">NOT Installed OR PATCH</Publish>
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed OR WixUI_InstallMode = "Change"</Publish>
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg"></Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="ChangeButton" Event="NewDialog" Value="CustomizeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="CustomizeDlg" Order="1">NOT Installed OR WixUI_InstallMode = "Change"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3">Installed AND PATCH</Publish>
</UI>
<UIRef Id="WixUI_Common" />
</Product>
</Wix>