summaryrefslogtreecommitdiffstats
path: root/tools/wixl
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 /tools/wixl
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 'tools/wixl')
-rw-r--r--tools/wixl/builder.vala9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index 9a6e738..695a758 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -327,12 +327,13 @@ namespace Wixl {
int source = SourceFlags.COMPRESSED;
if (package.InstallScope != null) {
- if (package.InstallScope == "perUser")
+ if (package.InstallScope == "perUser") {
source |= SourceFlags.NO_PRIVILEGES;
- else if (package.InstallScope == "perMachine")
- source |= 0;
- else
+ } else if (package.InstallScope == "perMachine") {
+ db.table_property.add ("ALLUSERS", "1");
+ } else {
error ("invalid InstallScope value: %s", package.InstallScope);
+ }
}
db.info.set_property (Libmsi.Property.SOURCE, source);
}