Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation?
Thank You Phill, but i now i have a security problem or something like that. I have made a testinstaller, which installs a simple WPF-application with a single mask. In that installer i implemented the customaction like that: Product Id=* Name=IisActivation Language=1033 Version=1.0.0.0 Manufacturer=MyManufacturer UpgradeCode=77657357-67b1-48e2-8457-5e4d8fad9155 [...] !--Property Id=INSTALLIISPROP Value=C:\Windows\System32\dism.exe/Property-- Property Id=INSTALLIISPROP Value=C:\Windows\SysWOW64\dism.exe/Property CustomAction Id=InstallIISCA Return=check Property=INSTALLIISPROP Execute=deferred HideTarget=no Impersonate=no ExeCommand=/Online /Enable-Feature /featurename:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent/CustomAction InstallExecuteSequence Custom Action=InstallIISCA After=InstallFiles/ /InstallExecuteSequence Feature Id=ProductFeature Title=TestIisActivation Level=1 ComponentGroupRef Id=ProductComponents / /Feature /Product Because i'm testing on a virtual PC with a 64-Bit OS i'm using the dism.exe from SysWOW64. But each time i get that error message in the log: Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action InstallIISCA, location: C:\Windows\SysWOW64\dism.exe, command: /Online /Enable-Feature /featurename:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent === Logging stopped: 21.01.2015 09:26:53 === Normally error 1722 means, that i have used the wrong dism.exe. So i tried it with the dism.exe from System32 but it's the same old song and dance. What's going wrong? Thanks in advance. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598927.html Sent from the wix-users mailing list archive at Nabble.com. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation?
Sorry Phill, i was a little bit misleaded by that answer from Harbinder Singh in Stackoverflow: http://stackoverflow.com/questions/24439602/wix-burn-install-iis-if-not-yet-installed/24491306#24491306 Now i found it out. The ExeCommand of my CustomAction must look like that: CustomAction Id=InstallIISCA Return=check Property=INSTALLIISPROP Execute=deferred HideTarget=no Impersonate=no ExeCommand=/Online /Enable-Feature /featurename:IIS-WebServerRole /featurename:IIS-WebServer /featurename:IIS-CommonHttpFeatures /featurename:IIS-StaticContent/CustomAction One question left: When i make different MSI packages for the different OS- and OS-Bit-versions is it possible to create a MSI package which install no files and just executes the CustomAction? Thanks in advance! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598928.html Sent from the wix-users mailing list archive at Nabble.com. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation?
When i make different MSI packages for the different OS- and OS-Bit-versions is it possible to create a MSI package which install no files and just executes the CustomAction? Yes. When there are no files in an MSI you will get ICE71 warnings when building the MSI package. I'm sure there are different approaches to dealing with this, The approach that I have been using is to add a Feature/Component which includes a very small file, and then condition it so that it is never installed. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598931.html Sent from the wix-users mailing list archive at Nabble.com. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation?
SysWow64 contains 32 bit dism.exe. I know that for some commands to dism.exe in SysWow64 you will get a response of: You cannot service a running 64-bit operating system with a 32-bit version of DISM. Please use the version of DISM that corresponds to your computer's architecture. Which means that on a 64 bit platform it is necessary to call %windir%\System32\dism.exe (which is also equivalent to %windir%\Sysnative\dism.exe). I have not tried the commands that you are implementing. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598932.html Sent from the wix-users mailing list archive at Nabble.com. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation?
For server OS's, there is a PowerShell interface which can be wrapped in a C# DTF custom action. This would be far preferable to running DISM directly. -- John Merryweather Cooper Senior Software Engineer | Enterprise Service Applications | Continuing Development Jack Henry Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |jocoo...@jackhenry.com -Original Message- From: Phill Hogland [mailto:phogl...@rimage.com] Sent: Tuesday, January 20, 2015 10:00 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation? I would not try to redeploy dism.exe from one pc to another, as that can definitely cause problems. I have read in MSDN dismapi docs, that dism.exe is specific the OS, which it was deployed as a part of. As far as I know there is no redistribution license. I do not think that trying to do the equivalent of a Custom Action in the ExePackage is the intended use. You can call dism.exe in a Custom Action (or call the dism api). An issue that you will run into (which may also be a factor in what you tried) is related to platform bitness. You need to create two MSI packages (x86 and x64) which each call a x64 or win32 (for C++) Custom Action, which interacts with the correct path to the correct version of dism.exe (x86 or x64). I think you can search the forum and find some examples. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598915.html Sent from the wix-users mailing list archive at Nabble.com. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users 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. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to use dism.exe in WiX ExePackage for IIS feature activation?
I would not try to redeploy dism.exe from one pc to another, as that can definitely cause problems. I have read in MSDN dismapi docs, that dism.exe is specific the OS, which it was deployed as a part of. As far as I know there is no redistribution license. I do not think that trying to do the equivalent of a Custom Action in the ExePackage is the intended use. You can call dism.exe in a Custom Action (or call the dism api). An issue that you will run into (which may also be a factor in what you tried) is related to platform bitness. You need to create two MSI packages (x86 and x64) which each call a x64 or win32 (for C++) Custom Action, which interacts with the correct path to the correct version of dism.exe (x86 or x64). I think you can search the forum and find some examples. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598915.html Sent from the wix-users mailing list archive at Nabble.com. -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users