diff options
Diffstat (limited to 'tests/auto/blackbox/testdata-windows/wix')
6 files changed, 89 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-windows/wix/ExampleScript.bat b/tests/auto/blackbox/testdata-windows/wix/ExampleScript.bat new file mode 100644 index 000000000..3af583cd8 --- /dev/null +++ b/tests/auto/blackbox/testdata-windows/wix/ExampleScript.bat @@ -0,0 +1 @@ +echo Hello world! diff --git a/tests/auto/blackbox/testdata-windows/wix/QbsBootstrapper.wxs b/tests/auto/blackbox/testdata-windows/wix/QbsBootstrapper.wxs new file mode 100644 index 000000000..272f6af5b --- /dev/null +++ b/tests/auto/blackbox/testdata-windows/wix/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/auto/blackbox/testdata-windows/wix/QbsSetup.wxs b/tests/auto/blackbox/testdata-windows/wix/QbsSetup.wxs new file mode 100644 index 000000000..8f97ff667 --- /dev/null +++ b/tests/auto/blackbox/testdata-windows/wix/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/auto/blackbox/testdata-windows/wix/Qt.wxs b/tests/auto/blackbox/testdata-windows/wix/Qt.wxs new file mode 100644 index 000000000..fbd992c43 --- /dev/null +++ b/tests/auto/blackbox/testdata-windows/wix/Qt.wxs @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Fragment> + </Fragment> +</Wix> diff --git a/tests/auto/blackbox/testdata-windows/wix/WiXInstallers.qbs b/tests/auto/blackbox/testdata-windows/wix/WiXInstallers.qbs new file mode 100644 index 000000000..07f61ba2c --- /dev/null +++ b/tests/auto/blackbox/testdata-windows/wix/WiXInstallers.qbs @@ -0,0 +1,38 @@ +import qbs.FileInfo + +Project { + WindowsInstallerPackage { + name: "QbsSetup" + targetName: "qbs" + files: ["QbsSetup.wxs", "ExampleScript.bat"] + wix.defines: ["scriptName=ExampleScript.bat"] + wix.extensions: ["WixBalExtension", "WixUIExtension"] + qbs.targetPlatform: "windows" + + Export { + Depends { name: "wix" } + wix.defines: base.concat(["msiName=" + + FileInfo.joinPaths(product.buildDirectory, + product.targetName + wix.windowsInstallerSuffix)]) + } + } + + WindowsSetupPackage { + Depends { name: "QbsSetup" } + condition: qbs.hostOS.contains("windows") // currently does not work in Wine with WiX 3.9 + name: "QbsBootstrapper" + targetName: "qbs-setup-" + qbs.architecture + files: ["QbsBootstrapper.wxs"] + qbs.architecture: original || "x86" + qbs.targetPlatform: "windows" + } + + WindowsInstallerPackage { + name: "RegressionBuster9000" + files: ["QbsSetup.wxs", "Qt.wxs", "de.wxl"] + wix.defines: ["scriptName=ExampleScript.bat"] + wix.cultures: [] + qbs.architecture: original || "x86" + qbs.targetPlatform: "windows" + } +} diff --git a/tests/auto/blackbox/testdata-windows/wix/de.wxl b/tests/auto/blackbox/testdata-windows/wix/de.wxl new file mode 100644 index 000000000..75394cfdd --- /dev/null +++ b/tests/auto/blackbox/testdata-windows/wix/de.wxl @@ -0,0 +1 @@ +<WixLocalization xmlns="http://schemas.microsoft.com/wix/2006/localization"/> |