Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

3.5 KB
Raw Blame
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
	xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"
	xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">

	<?include Includes.wxi?>

	<Package Name="$(var.Product)" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" Language="!(loc.ProductLanguage)" UpgradeCode="$(var.UpgradeCode)" Scope="perMachine">

		<SummaryInformation Keywords="Installer" Description="$(var.Description)" Codepage="!(loc.SummaryCodepage)" />

		<!--<PropertyRef Id="UpgradesFile" />-->

		<PropertyRef Id="AddRemovePropertiesFile" />

		<Media Id="1" Cabinet="cab1.cab" EmbedCab="yes" CompressionLevel="high" />
		<!--$Media2Start$-->
		<!-- preprocess.py in template mode adds a second cabinet here, holding only
		     the files that differ per customer, so a custom client can be produced by
		     rebuilding that small cabinet instead of the whole package. The shipped
		     msi is built without template mode and keeps a single cabinet. -->
		<!--$Media2End$-->
		<Icon Id="AppIcon" SourceFile="Resources\icon.ico" />
		<CustomAction Id="BlockSelfInstalledApp" Error="!(loc.AnotherAppDialogDescription)" />

		<!-- User Interface -->
		<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />

		<ui:WixUI Id="UI_MyInstallDialog" InstallDirectory="INSTALLFOLDER_INNER" />
		<UIRef Id="WixUI_ErrorProgressText" />

		<InstallUISequence>
			<Show Dialog="UI_AnotherAppDialog" Before="WelcomeDlg" Condition="NOT Installed AND (APP_WINDOWS_INSTALLER=&quot;#0&quot; OR APP_WINDOWS_INSTALLER32=&quot;#0&quot;)"/>
		</InstallUISequence>

		<InstallExecuteSequence>
			<Custom Action="BlockSelfInstalledApp" After="AppSearch" Condition="NOT Installed AND (APP_WINDOWS_INSTALLER=&quot;#0&quot; OR APP_WINDOWS_INSTALLER32=&quot;#0&quot;)" />
			<InstallExecute After="RemoveExistingProducts" />

			<!--Only do InstallValidate if is not Uninstall-->
			<!--<InstallValidate Condition="NOT (Installed AND REMOVE AND NOT UPGRADINGPRODUCTCODE )" />-->
			<!--Only do InstallValidate if is Install-->
			<InstallValidate Condition="NOT Installed" />

		</InstallExecuteSequence>

		<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" Schedule="afterInstallInitialize" AllowSameVersionUpgrades="yes" />

		<Feature Id="App" Level="1" AllowAdvertise="no" Display="expand" Title="!(loc.F_App)" Description="!(loc.F_App_Desc)" AllowAbsent="no">
			<ComponentGroupRef Id="Components" />

			<ComponentRef Id="Product.Registry.InstallFolder" />
			<ComponentRef Id="Product.Registry.DefaultIcon" />
			<ComponentRef Id="Product.Registry.CommandPlay" />
			<ComponentRef Id="Product.Registry.URLProtocol" />
			<ComponentRef Id="Product.Registry.Command" />
			<ComponentRef Id="Product.Registry.InstallState" />
			<ComponentRef Id="Product.Registry.RemoveLegacyUninstall64" />
			<ComponentRef Id="Product.Registry.RemoveLegacyUninstall32" />
			<ComponentRef Id="App.StartMenu" />
			<ComponentRef Id="Product.Registry.PersistedStartMenuShortcutProperties1" />
			<ComponentRef Id="Product.Registry.PersistedStartMenuShortcutProperties0" />
			<ComponentRef Id="Product.Registry.PersistedDesktopShortcutProperties1" />
			<ComponentRef Id="Product.Registry.PersistedDesktopShortcutProperties0" />
			<ComponentRef Id="Product.Registry.PersistedPrinterProperties1" />
			<ComponentRef Id="Product.Registry.PersistedPrinterProperties0" />
		</Feature>

		<!--https://wixtoolset.org/docs/tools/wixext/wixui/#customizing-a-dialog-set-->
		<!--$CustomBitmapsStart$-->
		<!--$CustomBitmapsEnd$-->
	</Package>
</Wix>