[wix-users] Wix Bundle Fails to run .bat

Carlos Sosa carlos.sosa.us at outlook.com
Thu Aug 24 08:00:00 PDT 2017


Hello, I have a simple Bundle (for testing) that calls a simple .bat file.
(I'm trying to enable IIS, for which I have a much more elaborated Custom Action, but that I can not get to work, for now I'm trying to just get it to work in the most basic way possible)
If I manually run the .bat it works just fine. If I add the same task from a setup project and create an msi it runs too, it just doesn't from a bundle.

I have really tried to find out why, and I honestly having been able to.
I'm ready to give up...
Any help is appreciated.

Best.


***************************************************************
IIS.bat
***************************************************************
echo off
dism.exe /enable-feature /online /featureName:IIS-WebServerRole /featureName:IIS-WebServer /featureName:IIS-DefaultDocument /featureName:IIS-DirectoryBrowsing /featureName:IIS-HttpErrors /featureName:IIS-StaticContent /featureName:IIS-HttpLogging /featureName:IIS-RequestFiltering /featureName:IIS-ManagementConsole

***************************************************************
Bundle
***************************************************************

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"<http://schemas.microsoft.com/wix/2006/wi%22>
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"<http://schemas.microsoft.com/wix/BalExtension%22>
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"><http://schemas.microsoft.com/wix/UtilExtension%22%3E>

  <Bundle Name="MY_Bootstrapper"
          Version="1.0.0.0"
          Manufacturer="ABC"
          UpgradeCode="*">

    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>

     <PackageGroupRef Id='IIS' />
    </Chain>

  </Bundle>

  <Fragment>

    <PackageGroup Id="IIS">
      <ExePackage Id="IIS" Compressed="yes" SourceFile="$(var.ProjectDir)\Lib\IIS.bat" PerMachine="yes" />
    </PackageGroup>
  </Fragment>

</Wix>

************************************************************************
LOG
************************************************************************
[0A84:086C][2017-08-23T16:47:13]i001: Burn v3.11.0.1701, Windows v6.3 (Build 9600: Service Pack 0), path: C:\Users\User\AppData\Local\Temp\2\{C6FD4771-5A94-47CB-93D4-DF4003766A8A}\.cr\My_Bootstrapper.exe
[0A84:086C][2017-08-23T16:47:13]i009: Command Line: '-burn.clean.room=C:\Users\User\Desktop\My_Bootstrapper.exe -burn.filehandle.attached=304 -burn.filehandle.self=312'
[0A84:086C][2017-08-23T16:47:13]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\User\Desktop\My_Bootstrapper.exe'
[0A84:086C][2017-08-23T16:47:13]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\User\Desktop\'
[0A84:086C][2017-08-23T16:47:13]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\User\AppData\Local\Temp\My_Bootstrapper_20170823164713.log'
[0A84:086C][2017-08-23T16:47:13]i000: Setting string variable 'WixBundleName' to value 'My_Bootstrapper'
[0A84:086C][2017-08-23T16:47:13]i000: Setting string variable 'WixBundleManufacturer' to value 'ABC'
[0A84:08EC][2017-08-23T16:47:13]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[0A84:08EC][2017-08-23T16:47:13]i000: Setting version variable 'WixBundleFileVersion' to value '1.0.0.0'
[0A84:086C][2017-08-23T16:47:13]i100: Detect begin, 1 packages
[0A84:086C][2017-08-23T16:47:13]i101: Detected package: IIS, state: Absent, cached: None
[0A84:086C][2017-08-23T16:47:13]i199: Detect complete, result: 0x0
[0A84:08EC][2017-08-23T16:47:15]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[0A84:086C][2017-08-23T16:47:15]i200: Plan begin, 1 packages, action: Install
[0A84:086C][2017-08-23T16:47:15]w321: Skipping dependency registration on package with no dependency providers: IIS
[0A84:086C][2017-08-23T16:47:15]i000: Setting string variable 'WixBundleLog_IIS' to value 'C:\Users\User\AppData\Local\Temp\My_Bootstrapper_20170823164713_000_IIS.log'
[0A84:086C][2017-08-23T16:47:15]i000: Setting string variable 'WixBundleRollbackLog_IIS' to value 'C:\Users\User\AppData\Local\Temp\My_Bootstrapper_20170823164713_000_IIS_rollback.log'
[0A84:086C][2017-08-23T16:47:15]i201: Planned package: IIS, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
[0A84:086C][2017-08-23T16:47:15]i299: Plan complete, result: 0x0
[0A84:086C][2017-08-23T16:47:15]i300: Apply begin
[0A84:086C][2017-08-23T16:47:15]i010: Launching elevated engine process.
[0A84:086C][2017-08-23T16:47:15]i011: Launched elevated engine process.
[0A84:086C][2017-08-23T16:47:15]i012: Connected to elevated engine.
[0544:0710][2017-08-23T16:47:15]i358: Pausing automatic updates.
[0544:0710][2017-08-23T16:47:15]i359: Paused automatic updates.
[0544:0710][2017-08-23T16:47:15]i360: Creating a system restore point.
[0544:0710][2017-08-23T16:47:15]i362: System restore disabled, system restore point not created.
[0544:0710][2017-08-23T16:47:15]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{95b001ff-c23a-482d-944d-b08c32fe9693}, options: 0x7, disable resume: No
[0544:0710][2017-08-23T16:47:15]i000: Caching bundle from: 'C:\Users\User\AppData\Local\Temp\2\{D08697F2-D3AF-44F9-BE01-450B39098852}\.be\My_Bootstrapper.exe' to: 'C:\ProgramData\Package Cache\{95b001ff-c23a-482d-944d-b08c32fe9693}\My_Bootstrapper.exe'
[0544:0710][2017-08-23T16:47:15]i320: Registering bundle dependency provider: {95b001ff-c23a-482d-944d-b08c32fe9693}, version: 1.0.0.0
[0544:0710][2017-08-23T16:47:15]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{95b001ff-c23a-482d-944d-b08c32fe9693}, resume: Active, restart initiated: No, disable resume: No
[0544:0970][2017-08-23T16:47:15]i305: Verified acquired payload: IIS at path: C:\ProgramData\Package Cache\.unverified\IIS, moving to: C:\ProgramData\Package Cache\AB777ACD15C661BAEA224EE19F7DF8F228622060\IIS.bat.
[0544:0710][2017-08-23T16:47:15]i301: Applying execute package: IIS, action: Install, path: C:\ProgramData\Package Cache\AB777ACD15C661BAEA224EE19F7DF8F228622060\IIS.bat, arguments: '"C:\ProgramData\Package Cache\AB777ACD15C661BAEA224EE19F7DF8F228622060\IIS.bat"'
[0544:0710][2017-08-23T16:47:15]e000: Error 0x8007000b: Process returned error: 0xb
[0544:0710][2017-08-23T16:47:15]e000: Error 0x8007000b: Failed to execute EXE package.
[0A84:086C][2017-08-23T16:47:15]e000: Error 0x8007000b: Failed to configure per-machine EXE package.
[0A84:086C][2017-08-23T16:47:15]i319: Applied execute package: IIS, result: 0x8007000b, restart: None
[0A84:086C][2017-08-23T16:47:15]e000: Error 0x8007000b: Failed to execute EXE package.
[0544:0710][2017-08-23T16:47:15]i351: Removing cached package: IIS, from path: C:\ProgramData\Package Cache\AB777ACD15C661BAEA224EE19F7DF8F228622060\
[0544:0710][2017-08-23T16:47:15]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{95b001ff-c23a-482d-944d-b08c32fe9693}, resume: None, restart: None, disable resume: No
[0544:0710][2017-08-23T16:47:15]i330: Removed bundle dependency provider: {95b001ff-c23a-482d-944d-b08c32fe9693}
[0544:0710][2017-08-23T16:47:15]i352: Removing cached bundle: {95b001ff-c23a-482d-944d-b08c32fe9693}, from path: C:\ProgramData\Package Cache\{95b001ff-c23a-482d-944d-b08c32fe9693}\
[0544:0710][2017-08-23T16:47:15]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{95b001ff-c23a-482d-944d-b08c32fe9693}, resume: None, restart initiated: No, disable resume: No
[0A84:086C][2017-08-23T16:47:16]i399: Apply complete, result: 0x8007000b, restart: None, ba requested restart:  No
[0A84:086C][2017-08-23T16:47:17]i500: Shutting down, exit code: 0xb
[0A84:086C][2017-08-23T16:47:17]i410: Variable: EulaAcceptCheckbox = 1
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleAction = 5
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleElevated = 1
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleFileVersion = 1.0.0.0
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleInstalled = 0
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleLog = C:\Users\User\AppData\Local\Temp\My_Bootstrapper_20170823164713.log
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleLog_IIS = C:\Users\User\AppData\Local\Temp\My_Bootstrapper_20170823164713_000_IIS.log
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleManufacturer = ABC
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleName = My_Bootstrapper
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleOriginalSource = C:\Users\User\Desktop\My_Bootstrapper.exe
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleOriginalSourceFolder = C:\Users\User\Desktop\
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleProviderKey = {95b001ff-c23a-482d-944d-b08c32fe9693}
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleRollbackLog_IIS = C:\Users\User\AppData\Local\Temp\My_Bootstrapper_20170823164713_000_IIS_rollback.log
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleSourceProcessFolder = C:\Users\User\Desktop\
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleSourceProcessPath = C:\Users\User\Desktop\My_Bootstrapper.exe
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleTag =
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleUILevel = 4
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixBundleVersion = 1.0.0.0
[0A84:086C][2017-08-23T16:47:17]i410: Variable: WixStdBALanguageId = 1033
[0A84:086C][2017-08-23T16:47:17]i007: Exit code: 0xb, restarting: No


More information about the wix-users mailing list