From 856648845ea761ad2df9d3cd923ab483d6e142cb Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 7 Oct 2014 17:20:10 +0200 Subject: 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 --- tools/wixl/builder.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools') 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); } -- cgit