[wix-users] Starting DISM.exe via Custom BA

John Cooper JoCooper at jackhenry.com
Mon Jul 11 08:29:11 PDT 2016


Use a child process that is elevated to run DISM.  But even better (for Server OS's that support it) is to use the PowerShell interface.

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 |JoCooper at jackhenry.com




-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Andreas Buchner
Sent: Monday, July 11, 2016 10:03 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Starting DISM.exe via Custom BA

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

Hi Everyone,

I´m trying to achieve to following in my Custom BA:

-       Check if all necessary IIS roles for our ASP.Net application are installed on the executing machine (just checking, not installing!)

-       We like to show the result to the user before the installation starts (so using a MSI in the bundle is not really an option)

-       Currently I´m using DISM.exe to get the necessary information, but dism requires admin privileges which is not possible in the bundle normally

I found out that I can manipulate the manifest-file via ResourceHacker to require admin privileges for the bundle. But I don´t like this option that much - seems to be pretty bad.

Any other ideas how to handle this task? Maybe another way than dism?
Thanks in advance!

Andreas


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



More information about the wix-users mailing list