Skip to content

Commit

Permalink
template fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
chrpai committed Sep 24, 2023
1 parent 89f357b commit 04e9765
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="WixToolset.Sdk/4.0.2">
<PropertyGroup>
<ProductVersion>3.8</ProductVersion>
<OutputName>TestApp</OutputName>
<OutputType>Bundle</OutputType>
<!-- If MSIProductVersion not passed in, try to get it from TFBuild Environments (XAML Builds)-->
<MSIProductVersion Condition=" '$(MSIProductVersion)' == '' ">$([System.Text.RegularExpressions.Regex]::Match($(TF_BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+"))</MSIProductVersion>
<!-- If MSIProductVersion still not known, try to get it from TFBuild Environments (V.Next Builds)-->
<MSIProductVersion Condition=" '$(MSIProductVersion)' == '' ">$([System.Text.RegularExpressions.Regex]::Match($(BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+"))</MSIProductVersion>
<!-- If MSIProductVersion still not known, default to lowerbound 0.0.1 for developer builds.-->
<MSIProductVersion Condition=" '$(MSIProductVersion)' == '' ">0.0.1</MSIProductVersion>
<OutputName>$globalsafeprojectname$-$(MSIProductVersion)</OutputName>
<OutputType>Bundle</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;MSIProductVersion=$(MSIProductVersion)</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<AppxTimestampUrl Condition=" '$(AppxTimestampUrl)' == '' "></AppxTimestampUrl>
<MsixCertificateThumbprint Condition=" '$(MsixCertificateThumbprint)' == '' "></MsixCertificateThumbprint>
<MsixTimestampUrl Condition=" '$(MsixTimestampUrl)' == '' "></MsixTimestampUrl>
<OutputName>$globalsafeprojectname$-$(MSIProductVersion)</OutputName>
<OutputType>Bundle</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;MSIProductVersion=$(MSIProductVersion)</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
The Product@Id attribute (ProductCode Property) will be a random GUID for each build. This is to support "Major Upgrades" where each install
is a seamless uninstall/reinstall.
-->
<Package Name="$safeprojectname$" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="$globalsafeprojectname$" UpgradeCode="$guid3$">
<Package Name="$globalsafeprojectname$" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="$globalsafeprojectname$" UpgradeCode="$guid3$">
<MediaTemplate EmbedCab="yes" />
<!-- Major Upgrade Rule to disallow downgrades -->
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<!-- Launch Condition Examples at http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
<!-- Uncomment below two lines to require .NET 4.8 or later to install -->
<!-- <PropertyRef Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" /> -->
<!-- <Launch Condition="Installed OR WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Message="[ProductName] requires .NET Framework 4.8 or later." /> -->
<!-- Include User Interface Experience -->
<Icon Id="Icon.ico" SourceFile="Resources\Icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="Icon.ico"></Property>
<Property Id="DISABLEADVTSHORTCUTS" Value="1"></Property>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Fragment>
<UI Id="UI">
<!-- See http://wix.sourceforge.net/manual-wix3/WixUI_index.htm for more information-->
<ui:WixUI Id="WixUI_FeatureTree" />
<!--Uncomment to inject a custom dialog into the install wizard loop -->
<!--<UIRef Id="CustomDlg"/>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<AppxTimestampUrl Condition=" '$(AppxTimestampUrl)' == '' "></AppxTimestampUrl>
<MsixCertificateThumbprint Condition=" '$(MsixCertificateThumbprint)' == '' "></MsixCertificateThumbprint>
<MsixTimestampUrl Condition=" '$(MsixTimestampUrl)' == '' "></MsixTimestampUrl>
<OutputName>$globalsafeprojectname$-$(MSIProductVersion)</OutputName>
<OutputType>Bundle</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;MSIProductVersion=$(MSIProductVersion)</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
The Product@Id attribute (ProductCode Property) will be a random GUID for each build. This is to support "Major Upgrades" where each install
is a seamless uninstall/reinstall.
-->
<Package Name="$safeprojectname$" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="$safeprojectname$" UpgradeCode="$guid3$">
<Package Name="$globalsafeprojectname$" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="$globalsafeprojectname$" UpgradeCode="$guid3$">
<MediaTemplate EmbedCab="yes" />
<!-- Major Upgrade Rule to disallow downgrades -->
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<!-- Launch Condition Examples at http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
<!-- Uncomment below two lines to require .NET 4.8 or Later to install -->
<!-- <PropertyRef Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" /> -->
<!-- <Launch Condition="Installed OR WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Message="[ProductName] requires .NET Framework 4.8 or later." /> -->
<!-- Include User Interface Experience -->
<Icon Id="Icon.ico" SourceFile="Resources\Icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="Icon.ico"></Property>
<Property Id="DISABLEADVTSHORTCUTS" Value="1"></Property>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Fragment>
<UI Id="UI">
<!-- See http://wix.sourceforge.net/manual-wix3/WixUI_index.htm for more information-->
<ui:WixUI Id="WixUI_FeatureTree" />
<!--Uncomment to inject a custom dialog into the install wizard loop -->
<!--<UIRef Id="CustomDlg"/>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<MSIProductVersion Condition=" '$(MSIProductVersion)' == '' ">$([System.Text.RegularExpressions.Regex]::Match($(BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+"))</MSIProductVersion>
<!-- If MSIProductVersion still not known, default to lowerbound 0.0.1 for developer builds.-->
<MSIProductVersion Condition=" '$(MSIProductVersion)' == '' ">0.0.1</MSIProductVersion>
<OutputName>$globalsafeprojectname$-$(MSIProductVersion)</OutputName>
<OutputType>Bundle</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;MSIProductVersion=$(MSIProductVersion)</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<AppxTimestampUrl Condition=" '$(AppxTimestampUrl)' == '' "></AppxTimestampUrl>
<MsixCertificateThumbprint Condition=" '$(MsixCertificateThumbprint)' == '' "></MsixCertificateThumbprint>
<MsixTimestampUrl Condition=" '$(MsixTimestampUrl)' == '' "></MsixTimestampUrl>
<OutputName>$globalsafeprojectname$-$(MSIProductVersion)</OutputName>
<OutputType>Bundle</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;MSIProductVersion=$(MSIProductVersion)</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
The Product@Id attribute (ProductCode Property) will be a random GUID for each build. This is to support "Major Upgrades" where each install
is a seamless uninstall/reinstall.
-->
<Package Name="$safeprojectname$" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="$globalsafeprojectname$" UpgradeCode="$guid3$">
<Package Name="$globalsafeprojectname$" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="$globalsafeprojectname$" UpgradeCode="$guid3$">
<MediaTemplate EmbedCab="yes" />
<!-- Major Upgrade Rule to disallow downgrades -->
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<!-- Launch Condition Examples at http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
<!-- Uncomment below two lines to require .NET 4.8 or later to install -->
<!-- <PropertyRef Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" /> -->
<!-- <Launch Condition="Installed OR WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Message="[ProductName] requires .NET Framework 4.8 or later." /> -->
Expand Down

0 comments on commit 04e9765

Please sign in to comment.