Thanks to David.

I am sorry that I didn't read your last reply for my question. But I read your 
link and tried it today. 

The example code in your link is very helpful. I modified a little bit. And it 
works!

Thanks a lot!


Chunyan



-----Ursprüngliche Nachricht-----
Von: David Watson [mailto:dwat...@sdl.com] 
Gesendet: Montag, 24. August 2009 18:47
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to start an executable without showingcommandline 
window



http://n2.nabble.com/How-to-run-exe-in-CA-without-flashing-the-command-l
ine-window-td3423431.html#a3424497 



-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com]
Sent: 24 August 2009 17:11
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to start an executable without showing commandline 
window

You can't set the Property element to a formatted value ([APPLICATIONFOLDER] in 
your case) you either need another custom action to set it or I think you can 
use SetProperty if you arrange for your CustomAction/@Id value to match.

Neil

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com]
Sent: 24 August 2009 16:18
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to start an executable without showing command line 
window

Hi Wix-users,
 
I want to call one executable in custom action. But I don't like the command 
line window flashing when calling executable. So I tried to use CAQuietExec. My 
code is as below:
 
<Property Id="QtExecCmdLine" Value="'tao_imr.exe' -ORBInitRef 
ImplRepoService=file://[APPLICATIONFOLDER]/VPCommon/Locator.ior shutdown 
VPWEBSERVER"/>

<CustomAction Id='UpgradeStopServices1' BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="immediate" Return='ignore' />

However, when I run the .msi, the custom action doesn't work. In the 
installation log file, I found:

MSI (s) (BC:98) [17:09:50:140]: Doing action: UpgradeStopServices1 Action 
17:09:50: UpgradeStopServices1. 
Action start 17:09:50: UpgradeStopServices1.
MSI (s) (BC:00) [17:09:50:155]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI80C.tmp, Entrypoint: CAQuietExec MSI (s) (BC:50)
[17:09:50:155]: Generating random cookie.
MSI (s) (BC:50) [17:09:50:171]: Created Custom Action Server with PID 5520 
(0x1590).
MSI (s) (BC:B4) [17:09:50:296]: Running as a service.
MSI (s) (BC:B4) [17:09:50:296]: Hello, I'm your 32bit Impersonated custom 
action server.
MSI (s) (BC!D0) [17:09:50:311]: PROPERTY CHANGE: Deleting QtExecCmdLine 
property. Its current value is ''tao_imr.exe' -ORBInitRef 
ImplRepoService=file://[APPLICATIONFOLDER]/VPCommon/Locator.ior shutdown 
VPWEBSERVER'.
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
17:09:50: UpgradeStopServices1. Return value 1.


There are errors for CAQuietExec. What's wrong with the property value?
If I set the custom action as normal:

<CustomAction Id='UpgradeStopServices1' FileKey='tao_imr.exe'
ExeCommand='tao_imr.exe -ORBInitRef
ImplRepoService=file://[APPLICATIONFOLDER]/VPCommon/Locator.ior shutdown 
VPWEBSERVER' Execute="immediate" Return='ignore' />

Then everything works fine, except the command line window flashing.

 

Could some one help me how to resolve this problem?

 

Best regards,

 

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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to