我有一个Wix Bootstrapper,它有条件地安装了各种组件,除非发送命令行参数,否则这些组件默认不安装。这在初始安装时工作正常,但是当我尝试执行升级时,似乎没有读取命令行参数。
[1614:2434][2014-06-25T10:20:47]i001: Burn v3.9.526.0, Windows v6.3 (Build 9600: Service Pack 0), path: C:\ProgramData\Package Cache\{be649f4c-6ffd-49d3-a3c8-8afd4204cb47}\CW6Installer.exe, cmdline: '-uninstall -quiet -burn.related.upgrade -burn.ancestors={717281ba-5728-475a-b875-28bd3845630a} -burn.embedded BurnPipe.{C82D65E7-7381-4B4C-878D-568115066990} {66F62C30-1C12-430C-906C-AC38DFB24EEF} 12292 -burn.unelevated BurnPipe.{158F71C5-4458-44CA-8B92-A6DB7D6BAA3F} {2F432B3C-DE4A-40FD-B18E-36D8A9C9A703} 888'
[1614:2434][2014-06-25T10:20:47]i003: This bundle is being run by a related bundle as type 'Upgrade'.
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'INSTALLCW6' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'INSTALLSQL' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'INSTALLMSMQ' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'INSTALLCRYSTAL' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'ORC' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'JOBS' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'ROUTE' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'ACTG' to value '1'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'DONOTMSMQ' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'CUSTCODE' to value 'DSDE'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'SERVER' to value 'DellServer'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'DBNAME' to value 'DSDETRAN'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'USEINTEGRATEDSECURITY' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing numeric variable 'APPENDWILDCARD' to value '0'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'INSTALLFOLDER' to value 'C:\'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'UPDATEDATE' to value '04/01/1991'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'INSTALLTYPE' to value 'update'
[1614:2434][2014-06-25T10:20:47]i000: Initializing string variable 'LaunchTarget' to value '[INSTALLFOLDER]\PD6\EXE\CW6.exe'
[1614:2434][2014-06-25T10:20:47]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\nickd\AppData\Local\Temp\CompuWeigh_20140625102047.log'
[1614:12E4][2014-06-25T10:20:48]i000: Setting version variable 'WixBundleFileVersion' to value '6.0.4.0'
[1614:2434][2014-06-25T10:20:48]i100: Detect begin, 5 packages
[1614:2434][2014-06-25T10:20:48]i102: Detected related bundle: {717281ba-5728-475a-b875-28bd3845630a}, type: Upgrade, scope: PerMachine, version: 6.0.5.0, operation: None
[1614:2434][2014-06-25T10:20:48]i103: Detected related package: {70D98F12-F7B1-4E37-8335-872C1B059C70}, scope: PerMachine, version: 6.0.3.0, language: 0 operation: Downgrade
[1614:2434][2014-06-25T10:20:48]i101: Detected package: MessageQueuing, state: Absent, cached: None
[1614:2434][2014-06-25T10:20:48]i101: Detected package: CrystalRuntime2011, state: Present, cached: Complete
[1614:2434][2014-06-25T10:20:48]i101: Detected package: SQLSERVER64, state: Absent, cached: None
[1614:2434][2014-06-25T10:20:48]i101: Detected package: SQLSERVER32, state: Absent, cached: None
[1614:2434][2014-06-25T10:20:48]i101: Detected package: Compuweigh, state: Obsolete, cached: None
[1614:2434][2014-06-25T10:20:48]i052: Condition 'VersionNT > v5.2' evaluates to true.
[1614:2434][2014-06-25T10:20:48]i199: Detect complete, result: 0x0
[1614:2434][2014-06-25T10:20:48]i200: Plan begin, 5 packages, action: Uninstall
[1614:2434][2014-06-25T10:20:48]i214: Plan skipped related bundle: {717281ba-5728-475a-b875-28bd3845630a}, type: Upgrade, because it was previously scheduled.
[1614:2434][2014-06-25T10:20:48]w321: Skipping dependency registration on package with no dependency providers: SQLSERVER32
[1614:2434][2014-06-25T10:20:48]w321: Skipping dependency registration on package with no dependency providers: SQLSERVER64
[1614:2434][2014-06-25T10:20:48]i207: Planned related bundle: {717281ba-5728-475a-b875-28bd3845630a}, type: Upgrade, default requested: None, ba requested: None, execute: None, rollback: None, dependency: None
[1614:2434][2014-06-25T10:20:48]i201: Planned package: Compuweigh, state: Obsolete, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[1614:2434][2014-06-25T10:20:48]i201: Planned package: SQLSERVER32, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1614:2434][2014-06-25T10:20:48]i201: Planned package: SQLSERVER64, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1614:2434][2014-06-25T10:20:48]i201: Planned package: CrystalRuntime2011, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[1614:2434][2014-06-25T10:20:48]i201: Planned package: MessageQueuing, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[1614:2434][2014-06-25T10:20:48]i299: Plan complete, result: 0x0
[1614:2434][2014-06-25T10:20:48]i300: Apply begin
[0378:2FEC][2014-06-25T10:20:48]i326: Removed dependency: {be649f4c-6ffd-49d3-a3c8-8afd4204cb47} on package provider: {FBAB5DC0-657B-424F-BE58-07DEFF68917C}, package CrystalRuntime2011
[0378:2FEC][2014-06-25T10:20:48]i329: Removed package dependency provider: {FBAB5DC0-657B-424F-BE58-07DEFF68917C}, package: CrystalRuntime2011
[0378:2FEC][2014-06-25T10:20:48]i329: Removed package dependency provider: {B6BF9BEA-9E42-47C4-B5A4-EC9CC4CDA8B3}, package: MessageQueuing
[0378:2FEC][2014-06-25T10:20:48]i330: Removed bundle dependency provider: {be649f4c-6ffd-49d3-a3c8-8afd4204cb47}
[0378:2FEC][2014-06-25T10:20:48]i352: Removing cached bundle: {be649f4c-6ffd-49d3-a3c8-8afd4204cb47}, from path: C:\ProgramData\Package Cache\{be649f4c-6ffd-49d3-a3c8-8afd4204cb47}\
[1614:2434][2014-06-25T10:20:48]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
[1614:2434][2014-06-25T10:20:48]i500: Shutting down, exit code: 0x0
[1614:2434][2014-06-25T10:20:48]i000: The prerequisites were already installed. The bootstrapper application will not be reloaded to prevent an infinite loop.
[1614:2434][2014-06-25T10:20:48]i410: Variable: ACTG = 1
[1614:2434][2014-06-25T10:20:48]i410: Variable: APPENDWILDCARD = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: CUSTCODE = DSDE
[1614:2434][2014-06-25T10:20:48]i410: Variable: DBNAME = DSDETRAN
[1614:2434][2014-06-25T10:20:48]i410: Variable: DONOTMSMQ = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: INSTALLCRYSTAL = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: INSTALLCW6 = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: INSTALLFOLDER = C:\
[1614:2434][2014-06-25T10:20:48]i410: Variable: INSTALLMSMQ = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: INSTALLSQL = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: INSTALLTYPE = update
[1614:2434][2014-06-25T10:20:48]i410: Variable: JOBS = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: LaunchTarget = C:\\PD6\EXE\CW6.exe
[1614:2434][2014-06-25T10:20:48]i410: Variable: ORC = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: ROUTE = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: SERVER = DellServer
[1614:2434][2014-06-25T10:20:48]i410: Variable: UPDATEDATE = 04/01/1991
[1614:2434][2014-06-25T10:20:48]i410: Variable: USEINTEGRATEDSECURITY = 0
[1614:2434][2014-06-25T10:20:48]i410: Variable: VersionNT = 6.3.0.0
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleAction = 3
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleElevated = 1
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleFileVersion = 6.0.4.0
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleInstalled = 1
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleLog = C:\Users\nickd\AppData\Local\Temp\CompuWeigh_20140625102047.log
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleManufacturer = Paradigm Software LLC
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleName = CompuWeigh
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleOriginalSource = C:\Users\nickd\Desktop\WixTestingInstall\CW6\CW6Installer.exe
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleOriginalSourceFolder = C:\Users\nickd\Desktop\WixTestingInstall\CW6\
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleProviderKey = {be649f4c-6ffd-49d3-a3c8-8afd4204cb47}
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleTag =
[1614:2434][2014-06-25T10:20:48]i410: Variable: WixBundleVersion = 6.0.4.0
[1614:2434][2014-06-25T10:20:48]i007: Exit code: 0x0, restarting: No
上面的代码是"升级"的日志文件。这不起作用。我正在尝试升级Compuweigh包。我将参数INSTALLCW6 = 1传递给包,这是运行MSI的条件,但无济于事。我的命令行参数都没有通过。请帮忙!