Skip to content

Commit c013cbe

Browse files
author
Omar Tawfik
committed
Upgrade MSI swix build to produce UpgradeCode and InstallSize
1 parent 3dc2d00 commit c013cbe

File tree

10 files changed

+17
-3
lines changed

10 files changed

+17
-3
lines changed

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<package id="FsSrGen" version="2.0.0" targetFramework="net46" />
1515
<package id="MicroBuild.Core" version="0.2.0" />
1616
<package id="MicroBuild.Core.Sentinel" version="1.0.0" />
17-
<package id="MicroBuild.Plugins.SwixBuild" version="1.0.43" />
17+
<package id="MicroBuild.Plugins.SwixBuild" version="1.0.60" />
1818
<package id="WiX.Toolset.2015" version="3.10.0.1503" />
1919
<package id="Microsoft.VisualFSharp.Core.Redist" version="1.0.0" />
2020
<package id="Microsoft.VisualFSharp.Type.Providers.Redist" version="1.0.0" />

setup/FSharp.SDK/FSharp.SDK.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<Import Project="$(WixInstallPath)\wix.targets" />
6565
<Import Project="$(FSharpTreeRoot)\src\Microbuild.Settings.targets" />
6666

67-
<Target Name="CheckLocaleIsPassed" BeforeTargets="Build">
67+
<Target Name="CheckLocaleIsPassed" BeforeTargets="Compile">
6868
<Error Condition="'$(LocaleCode)' == ''" Text="A 'LocaleCode' property must be passed to the project." />
6969
<Error Condition="'$(LocaleId)' == ''" Text="A 'LocaleId' property must be passed to the project." />
7070
<Error Condition="'$(LocaleParentCulture)' == ''" Text="A 'LocaleParentCulture' property must be passed to the project." />

setup/Swix/Microsoft.FSharp.Dependencies/Microsoft.FSharp.Dependencies.swixproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<Package Include="Files.swr" />
2727
<Package Include="Dependencies.swr" />
2828
</ItemGroup>
29+
30+
<Target Name="CheckLocaleIsPassed" BeforeTargets="Build">
31+
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
32+
</Target>
2933

3034
<Target Name="GatherBinariesToBeSigned" AfterTargets="Localize">
3135
<!-- SWIX plugin adds the built vsix to signing automatically -->

setup/Swix/Microsoft.FSharp.SDK.Core/Files.swr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use vs
33
package name=Microsoft.FSharp.SDK.Core
44
version=$(FSharpPackageVersion)
55
vs.package.type=msi
6+
vs.package.installSize=37223424
67

78
vs.payloads
89
vs.payload source="$(BinariesFolder)\msi\Microsoft.FSharp.SDK.Core.msi"

setup/Swix/Microsoft.FSharp.SDK.Core/Microsoft.FSharp.SDK.Core.swixproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
<ItemGroup>
2424
<Package Include="Files.swr" />
2525
</ItemGroup>
26+
27+
<Target Name="CheckLocaleIsPassed" BeforeTargets="Build">
28+
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
29+
</Target>
2630

2731
<Target Name="GatherBinariesToBeSigned" AfterTargets="Localize">
2832
<!-- MSI is already signed before wrapping it here -->

setup/Swix/Microsoft.FSharp.SDK.Resources/Empty.swr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ use vs
22

33
package name=Microsoft.FSharp.SDK.Resources
44
version=$(FSharpPackageVersion)
5-
vs.package.language=$(LocaleSpecificCulture)
5+
vs.package.language=$(LocaleSpecificCulture)
6+
vs.package.installSize=0

setup/Swix/Microsoft.FSharp.SDK.Resources/Files.swr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package name=Microsoft.FSharp.SDK.Resources
44
version=$(FSharpPackageVersion)
55
vs.package.type=msi
66
vs.package.language=$(LocaleSpecificCulture)
7+
vs.package.installSize=13854720
78

89
vs.payloads
910
vs.payload source="$(BinariesFolder)\msi\Microsoft.FSharp.SDK.Resources.$(LocaleCode).msi"

setup/Swix/Microsoft.FSharp.SDK.Resources/Microsoft.FSharp.SDK.Resources.swixproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
<Error Condition="'$(LocaleParentCulture)' == ''" Text="A 'LocaleParentCulture' property must be passed to the project." />
4545
<Error Condition="'$(LocaleSpecificCulture)' == ''" Text="A 'LocaleSpecificCulture' property must be passed to the project." />
4646
<Error Condition="'$(IsLangPack)' == ''" Text="A 'IsLangPack' property must be passed to the project." />
47+
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
4748
</Target>
4849
</Project>

setup/Swix/Microsoft.FSharp.Vsix.Core/Microsoft.FSharp.Vsix.Core.swixproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
</Target>
3131

3232
<Target Name="CheckPropertiesArePassed" BeforeTargets="Build">
33+
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
3334
<Error Condition="'$(VSSku)' == ''" Text="A 'VSSku' property must be passed to the project." />
3435
</Target>
3536
</Project>

setup/Swix/Microsoft.FSharp.Vsix.Resources/Microsoft.FSharp.Vsix.Resources.swixproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@
4646
<Error Condition="'$(LocaleParentCulture)' == ''" Text="A 'LocaleParentCulture' property must be passed to the project." />
4747
<Error Condition="'$(LocaleSpecificCulture)' == ''" Text="A 'LocaleSpecificCulture' property must be passed to the project." />
4848
<Error Condition="'$(IsLangPack)' == ''" Text="A 'IsLangPack' property must be passed to the project." />
49+
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
4950
</Target>
5051
</Project>

0 commit comments

Comments
 (0)