Skip to content

Commit 6f08eb0

Browse files
author
Vlad Ionescu
committed
adding .msi to release folder; improving .NET framework version validation; adding validate-windows-install-msi nant target; fixing some MsiVal2 errors and warnings
1 parent 9dace94 commit 6f08eb0

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

default.build

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<property name="release.version.dir" value="${release.dir}/v${fullversion}"/>
5757
<property name="release.src.zip" value="${nameversion}.zip" />
5858
<property name="web.url" value="http://stage.rabbitmq.com/" />
59+
<property name="release.msi" value="${release.version.dir}/rabbitmq-dotnet-client-${fullversion}.msi" />
5960

6061
<target name="clean" description="remove all generated files"
6162
depends="clean-base,clean-wcf,clean-wix,stamp" />
@@ -584,7 +585,7 @@
584585
</exec>
585586
</target>
586587

587-
<target name="build-windows-install-msi" description="create windows installer file. This requires the .dll to be signed" >
588+
<target name="build-windows-install-msi" description="create windows installer file. This requires the .dll to be signed">
588589
<call target="build-windows-install-msm" />
589590
<if test="${(not file::up-to-date(wix.product.src, wix.product.target))}">
590591
<delete file="${wix.product.target}" failonerror="false" />
@@ -609,5 +610,14 @@
609610
<arg value="-loc" />
610611
<arg value="${wix.localization}" />
611612
</exec>
613+
<copy file="${wix.dotnet.client.msi}" tofile="${release.msi}" />
614+
</target>
615+
616+
<target name="validate-windows-install-msi" description="validate created windows installer file. Note: This will always output succeed. Check printed warnings and errors.">
617+
<exec program="MsiVal2.exe">
618+
<arg value="${wix.dotnet.client.msi}" />
619+
<arg value="lib/darice.cub" />
620+
<arg value="-f" />
621+
</exec>
612622
</target>
613623
</project>

lib/darice.cub

636 KB
Binary file not shown.

src/wix/dotnet-client-merge-module.wxs.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
33
<Module Id='DotNetClientModule' Guid='97DB49A3-B75E-4AE1-B01A-DFC8E335F866' Language='1033' Codepage='1252' Version='@VERSION@'>
4-
<Package Id='????????-????-????-????-????????????' Description='RabbitMQ .NET Client @VERSION@' Manufacturer='LShift Ltd.' InstallerVersion='101' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
4+
<Package Id='????????-????-????-????-????????????' Description='RabbitMQ .NET Client @VERSION@' Manufacturer='LShift Ltd.' InstallerVersion='150' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
55

66
<Directory Id='TARGETDIR' Name='SourceDir'>
77
<Component Id='ClientLibrary' Guid='06543EE8-DED2-4C1C-826E-6AAE0B403AF3'>
@@ -38,7 +38,9 @@
3838
</Directory>
3939

4040
<Component Id='ExamplesShortcut' Guid='19A73961-DFC6-47BC-AC46-77B7562D7B91'>
41-
<Shortcut Id='ExamplesShortcut' Directory='DOTNET_CLIENT_MENU_DIR' Name='Examples' LongName='Examples folder' />
41+
<CreateFolder>
42+
<Shortcut Id='ExamplesShortcut' Directory='DOTNET_CLIENT_MENU_DIR' Name='Examples' LongName='Examples folder' />
43+
</CreateFolder>
4244
</Component>
4345
</Directory>
4446

src/wix/dotnet-client-product.wxs.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
3-
<Product Name='RabbitMQ .NET Client @VERSION@' Id='23B1A788-647D-4414-B1C6-028DAC04F761' Language='1033' Codepage='1252' Version='@VERSION@' Manufacturer='LShift Ltd.'>
4-
<Package Id='????????-????-????-????-????????????' Description='RabbitMQ .NET Client 1.6.0 for .NET 2.0' Manufacturer='LShift Ltd.' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
3+
<Product Name='RabbitMQ .NET Client @VERSION@' Id='23B1A788-647D-4414-B1C6-028DAC04F761' Language='1033' Codepage='1252' Version='@VERSION@' Manufacturer='LShift Ltd.' UpgradeCode='904A1129-A675-44F9-9FBD-5CE979698179'>
4+
<Package Id='????????-????-????-????-????????????' Description='RabbitMQ .NET Client 1.6.0 for .NET 2.0' Manufacturer='LShift Ltd.' InstallerVersion='150' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
55

66
<Condition Message="You need to be an administrator to install this product.">
7-
Privileged AND AdminUser
7+
Privileged
88
</Condition>
9-
<Condition Message=".NET Framework missing">
10-
MsiNetAssemblySupport
9+
<Condition Message='This setup requires the .NET Framework 2.0 or higher.'>
10+
<![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]>
1111
</Condition>
1212

1313
<Media Id='1' Cabinet='DNClnt.cab' EmbedCab='yes' />

0 commit comments

Comments
 (0)