diff options
| author | Jake Petroules <jake.petroules@petroules.com> | 2013-10-10 02:28:28 -0400 |
|---|---|---|
| committer | Jake Petroules <jake.petroules@petroules.com> | 2013-10-21 17:52:38 +0200 |
| commit | e767d4615dfdb3e1a98ee319e80f1050fe119760 (patch) | |
| tree | 4284f0102cacb75ba0f6cedc05222aaa1e21f2b1 /tests | |
| parent | 1c859aaa0f6d738359962c5f1c21fb64591ebc59 (diff) | |
| download | qbs-e767d4615dfdb3e1a98ee319e80f1050fe119760.tar.gz | |
Add support for building MSI and EXE installers with WiX.
Task-number: QBS-16
Change-Id: I16a520863991a5d85ed7cb753ce3d95fb33b5c01
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/manual/WiXInstallers/ExampleScript.bat | 1 | ||||
| -rwxr-xr-x | tests/manual/WiXInstallers/QbsBootstrapper.wxs | 10 | ||||
| -rwxr-xr-x | tests/manual/WiXInstallers/QbsSetup.wxs | 34 | ||||
| -rw-r--r-- | tests/manual/WiXInstallers/WiXInstallers.qbs | 18 |
4 files changed, 63 insertions, 0 deletions
diff --git a/tests/manual/WiXInstallers/ExampleScript.bat b/tests/manual/WiXInstallers/ExampleScript.bat new file mode 100644 index 000000000..3af583cd8 --- /dev/null +++ b/tests/manual/WiXInstallers/ExampleScript.bat @@ -0,0 +1 @@ +echo Hello world! diff --git a/tests/manual/WiXInstallers/QbsBootstrapper.wxs b/tests/manual/WiXInstallers/QbsBootstrapper.wxs new file mode 100755 index 000000000..272f6af5b --- /dev/null +++ b/tests/manual/WiXInstallers/QbsBootstrapper.wxs @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Bundle Name="QbsBootstrapper" Version="1.0.0.0" Manufacturer="Qt Project" UpgradeCode="7b05b159-c9ce-477c-9fb5-7fce3cd50396"> + <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> + + <Chain> + <MsiPackage SourceFile="$(var.msiName)" /> + </Chain> + </Bundle> +</Wix> diff --git a/tests/manual/WiXInstallers/QbsSetup.wxs b/tests/manual/WiXInstallers/QbsSetup.wxs new file mode 100755 index 000000000..8f97ff667 --- /dev/null +++ b/tests/manual/WiXInstallers/QbsSetup.wxs @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Product Id="*" Name="QbsSetup" Language="1033" Version="1.0.0.0" Manufacturer="Qt Project" UpgradeCode="f60f643e-b002-44d5-b3f4-edafd078314c"> + <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> + + <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> + <MediaTemplate /> + + <Feature Id="ProductFeature" Title="QbsSetup" Level="1"> + <ComponentGroupRef Id="ProductComponents" /> + </Feature> + </Product> + + <Fragment> + <Directory Id="TARGETDIR" Name="SourceDir"> + <?ifdef Win64 ?> + <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> + <?else ?> + <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?> + <?endif ?> + <Directory Id="$(var.PlatformProgramFilesFolder)"> + <Directory Id="INSTALLFOLDER" Name="QbsSetup" /> + </Directory> + </Directory> + </Fragment> + + <Fragment> + <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> + <Component Id="ProductComponent"> + <File Source="$(var.project.path)/$(var.scriptName)" /> + </Component> + </ComponentGroup> + </Fragment> +</Wix> diff --git a/tests/manual/WiXInstallers/WiXInstallers.qbs b/tests/manual/WiXInstallers/WiXInstallers.qbs new file mode 100644 index 000000000..4080a2450 --- /dev/null +++ b/tests/manual/WiXInstallers/WiXInstallers.qbs @@ -0,0 +1,18 @@ +import qbs + +Project { + WindowsInstallerPackage { + name: "QbsSetup" + targetName: "qbs-" + qbs.architecture + files: ["QbsSetup.wxs", "ExampleScript.bat"] + wix.defines: ["scriptName=ExampleScript.bat"] + } + + BurnSetupPackage { + Depends { name: "QbsSetup" } + name: "QbsBootstrapper" + targetName: "qbs-setup-" + qbs.architecture + files: ["QbsBootstrapper.wxs"] + wix.defines: ["msiName=QbsSetup.msi"] + } +} |
