summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-10-07 17:20:10 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2014-10-07 17:20:14 +0200
commit856648845ea761ad2df9d3cd923ab483d6e142cb (patch)
tree6956b6a68b5ad08f01e62845fb7489f69be266bd /tests/data
parentd96dd732ff5b20f5b1fbb02bdebacd5c0a7c739a (diff)
downloadmsitools-856648845ea761ad2df9d3cd923ab483d6e142cb.tar.gz
msitools-856648845ea761ad2df9d3cd923ab483d6e142cb.tar.xz
msitools-856648845ea761ad2df9d3cd923ab483d6e142cb.zip
Set ALLUSERS=1 in perMachine install scope
Follow WiX behaviour and set ALLUSERS=1 automatically in perMachine install scope. https://bugzilla.redhat.com/show_bug.cgi?id=1146586
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/wixl/SampleMachine.wxs59
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/data/wixl/SampleMachine.wxs b/tests/data/wixl/SampleMachine.wxs
new file mode 100644
index 0000000..491d0c2
--- /dev/null
+++ b/tests/data/wixl/SampleMachine.wxs
@@ -0,0 +1,59 @@
+<?xml version='1.0' encoding='windows-1252'?>
+<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
+
+ <?define VERSION="0.0.0.0"?>
+
+ <Product
+ Id="*"
+ Name="Sample App"
+ Language="1033"
+ Version="$(var.VERSION)"
+ Manufacturer="Example"
+ UpgradeCode="44a869b4-5dd4-44b0-938b-399f41611658"
+ >
+ <Package
+ Description="Sample App"
+ Manufacturer="Example"
+ InstallerVersion="200"
+ Compressed="yes"
+ InstallScope="perMachine"
+ />
+
+ <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
+ <MediaTemplate EmbedCab="yes" />
+
+ <Icon Id="Icon.exe" SourceFile="FoobarAppl10.exe" />
+ <Property Id="ARPPRODUCTICON" Value="Icon.exe" />
+ <Property Id="ARPHELPLINK" Value="http://www.example.com/" />
+
+ <Feature Id="ProductFeature" Title="SampleApp" Level="1">
+ <ComponentGroupRef Id="ProductComponents" />
+ </Feature>
+ </Product>
+
+ <Fragment>
+ <Directory Id="TARGETDIR" Name="SourceDir">
+ <Directory Id="LocalAppDataFolder">
+ <Directory Id="INSTALLFOLDER" Name="SampleApp" />
+ </Directory>
+ </Directory>
+ </Fragment>
+
+ <Fragment>
+ <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
+ <Component Id="ProductComponent" Guid="262eca3a-9ab0-4706-ab39-55c89819506a">
+
+ <RegistryKey Root="HKCU" Key="Software\Example\SampleApp">
+ <RegistryValue Name="Version" Value="[ProductVersion]" Type="string" KeyPath="yes" />
+ </RegistryKey>
+
+ <CreateFolder />
+ <RemoveFolder Id="RemoveAppRootDirectory" On="uninstall" />
+
+ <File Id="SampleApp.exe" Source="FoobarAppl10.exe"/>
+
+ </Component>
+ </ComponentGroup>
+ </Fragment>
+
+</Wix>