Hi,
I added QtExec after calling my Custom Action as:
<Custom Action="UpgradeStopServices1"
Before="InstallFinalize">PREVIOUSFOUND</Custom>
<Custom Action="QtExec" After="UpgradeStopServices1">PREVIOUSFOUND</Custom>
When I run .msi, the command window still flashed. The following is the log
file:
MSI (s) (54:4C) [16:29:46:498]: Doing action: UpgradeStopServices1
Action 16:29:46: UpgradeStopServices1.
Action start 16:29:46: UpgradeStopServices1.
Action ended 16:29:47: UpgradeStopServices1. Return value 1.
MSI (s) (54:4C) [16:29:47:310]: Doing action: QtExec
Action 16:29:47: QtExec.
Action start 16:29:47: QtExec.
MSI (s) (54:30) [16:29:47:325]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI10AB.tmp, Entrypoint: CAQuietExec
MSI (s) (54:D0) [16:29:47:325]: Generating random cookie.
MSI (s) (54:D0) [16:29:47:325]: Created Custom Action Server with PID 116
(0x74).
MSI (s) (54:0C) [16:29:47:357]: Running as a service.
MSI (s) (54:0C) [16:29:47:357]: Hello, I'm your 32bit Impersonated custom
action server.
MSI (s) (54!3C) [16:29:47:372]: PROPERTY CHANGE: Deleting QtExecCmdLine
property. Its current value is 'command line to run'.
CAQuietExec: Command string must begin with quoted application name.
CAQuietExec: Error 0x80070057: invalid command line property value
CAQuietExec: Error 0x80070057: failed to get Command Line
Action ended 16:29:47: QtExec. Return value 3.
I defined the custom action as:
<CustomAction Id='UpgradeStopServices1' FileKey='tao_imr.exe'
ExeCommand='tao_imr.exe -ORBInitRef
ImplRepoService=file://[APPLICATIONFOLDER]/VPCommon/Locator.ior shutdown
VPWEBSERVER' Execute="immediate" Return='ignore' />
I think that the command string already begins with application name. Why there
are such ACQuietExec errors?
Regards
Chunyan
-----Ursprüngliche Nachricht-----
Von: Jiang, Chunyan (GE Healthcare)
Gesendet: Dienstag, 11. August 2009 15:38
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to run exe in
CAwithoutflashingthecommand-linewindow
Thanks Pally.
I added WixUtilExtension to the project references.
But how to define the Custom Action? The exe won't be quiet only by adding
WixUtilExtension.
Regards,
Chunyan
-----Ursprüngliche Nachricht-----
Von: Pally Sandher [mailto:[email protected]]
Gesendet: Dienstag, 11. August 2009 15:20
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to run exe in CA
withoutflashingthecommand-linewindow
Add WiXUtilExtension to the WiX project references.
Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>** Integrated
Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered
Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email
Disclaimer
-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[email protected]]
Sent: 11 August 2009 13:54
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to run exe in CA without
flashingthecommand-linewindow
Thanks Pally.
I read the link and modified my Custom Action as:
<CustomAction Id='UpgradeStopServices1' FileKey='tao_imr.exe' ExeCommand='
-ORBInitRef ImplRepoService=file://[APPLICATIONFOLDER]/VPCommon/Locator.ior
shutdown VPWEBSERVER' DllEntry="CAQuietExec" Execute="immediate"
Return='ignore' />
However, I got the compiler error:
D:\Project\ViewPoint6\Data Files\Setup\VP6Wix\InstallDirDlg.wxs(50,0): error
CNDL0023: The CustomAction/@DllEntry attribute cannot coexist with a previously
specified attribute on this element. The CustomAction element may only have
one of the following target attributes specified at a time: DllEntry, Error,
ExeCommand, JScriptCall, Script, Value, or VBScriptCall.
It sounds that I should not add DllEntry="CAQuietExec". How can I use QtExec?
Furthermore, I don't know how to add -ext WixUtilExtension.dll To project
property in Visual Studio.
Do you have some experences how to use QtExec?
Regards,
Chunyan
-----Ursprüngliche Nachricht-----
Von: Pally Sandher [mailto:[email protected]]
Gesendet: Dienstag, 11. August 2009 14:09
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to run exe in CA without flashing
thecommand-linewindow
http://wix.sourceforge.net/manual-wix3/qtexec.htm
Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>** Integrated
Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20
0SP Email Disclaimer
-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[email protected]]
Sent: 11 August 2009 12:57
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to run exe in CA without flashing the
command-linewindow
Hi wix-users,
I have one Custom Action, which runs an executable. It works fine.
However, the command-line window will flash shortly. If I run several such
Custom Actions, there will be several command-line windows flashing. It is very
annoying. How to run the executable without flashing?
My custom Action is defined as:
<CustomAction Id='UpgradeStopServices1' FileKey='tao_imr.exe'
ExeCommand=' -ORBInitRef
ImplRepoService=file://[APPLICATIONFOLDER]/VPCommon/Locator.ior shutdown
VPWEBSERVER' Execute="deferred" Return='ignore' />
Thanks in advance!
Chunyan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users