Thank you so much Maksim!!! That fixed it. Thanks, Animesh
-----Original Message----- From: maksim.vazhe...@emc.com [mailto:maksim.vazhe...@emc.com] Sent: Monday, July 25, 2011 3:41 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] QuietExec in CA The problem in your code is : QuietExec((LPWSTR)(cmdToEx.c_str()),1000);. You can't transform char* to LPWSTR this way. -Maksim -----Original Message----- From: Anand, Animesh [mailto:animesh.an...@igatepatni.com] Sent: Monday, July 25, 2011 1:58 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] QuietExec in CA Thanks a lot Maksim for your help. This really helps. Thank You, Animesh Anand -----Original Message----- From: maksim.vazhe...@emc.com [mailto:maksim.vazhe...@emc.com] Sent: Monday, July 25, 2011 3:23 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] QuietExec in CA Instead of MessageBox it's better to use WcaLog(LOGMSG_VERBOSE, "Your message"). Here is a working example of using QuiteExec(): LPWSTR pwzCommand = NULL; LPWSTR pwzSystemFolder = NULL; hr = WcaInitialize(hInstall, "MyCA"); ExitOnFailure(hr, "failed to initialize"); hr = WcaGetProperty(L"SystemFolder", &pwzSystemFolder); ExitOnFailure(hr, "Failed to get property"); hr = StrAllocFormatted(&pwzCommand, L"\"%sPkgMgr.exe\"", pwzSystemFolder); ExitOnFailure(hr, "Failed to allocate command line."); hr = QuietExec(pwzCommand, 60000); ExitOnFailure(hr, "QuietExec Failed"); -Maksim -----Original Message----- From: Anand, Animesh [mailto:animesh.an...@igatepatni.com] Sent: Monday, July 25, 2011 1:26 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] QuietExec in CA Thank You for your reply David. This is what I am doing. cmdToEx="\"C:\\WINDOWS\\system32\\calc.exe\""; MessageBox(NULL,cmdToEx.c_str(),NULL,NULL);(I see the calc.exe path in quotes in the MessageBox) hr1=QuietExec((LPWSTR)(cmdToEx.c_str()),1000); Where cmdToEx is a string object. I have also tired to read the "QtExecCmdLine" property and use its value. Which otherwise executes fine when I call it from a Wix CA which in turn uses BinaryKey="WixCA" and DllEntry="CAQuietExec". I don't understand what I am missing here. I tied verbose logging as suggested by Maksim,But that did not help too. :-( -----Original Message----- From: David Watson [mailto:dwat...@sdl.com] Sent: Monday, July 25, 2011 2:48 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] QuietExec in CA Are you passing "C:\Windows\system32\calc.exe" and not "C:\\Windows\\system32\\calc.exe". Just a guess. -----Original Message----- From: Anand, Animesh [mailto:animesh.an...@igatepatni.com] Sent: 25 July 2011 09:44 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] QuietExec in CA Thank a lot Maksim. I'll do this. -----Original Message----- From: maksim.vazhe...@emc.com [mailto:maksim.vazhe...@emc.com] Sent: Monday, July 25, 2011 2:10 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] QuietExec in CA Error code 80070002 means "The system cannot find the file specified". With "LOGVERBOSE=1" you will see the command line which QuiteExec runs (this is not the same as just specifying /v flag for .msi). QuiteExec works fine from a C++ CA. -Maksim -----Original Message----- From: Anand, Animesh [mailto:animesh.an...@igatepatni.com] Sent: Monday, July 25, 2011 12:24 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] QuietExec in CA Hi Maksim, Thank You for your response. The verbose logging gave me the error I mentioned in the mail. I have tried to do this for exe's I know whose paths are valid.Eg:-calc.exe or notepad.exe under C:\windows\system32 just to see if I can actually get them to launch. I pass these with quotes. (eg:"C:\Windows\system32\calc.exe"). Is there something I am missing in the usage?Does QuietExec work from a C++ CA or it's only tested and used in a normal Wix CA? Thank You, Animesh Anand -----Original Message----- From: maksim.vazhe...@emc.com [mailto:maksim.vazhe...@emc.com] Sent: Monday, July 25, 2011 12:19 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] QuietExec in CA Try to set "LOGVERBOSE=1" property to see the verbose logging of QuietExec. Try to print the full path of the executed binary before calling QuietExec, probably the path is incorrect. -Maksim -----Original Message----- From: Anand, Animesh [mailto:animesh.an...@igatepatni.com] Sent: Monday, July 25, 2011 9:47 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] QuietExec in CA Hi, I am passing the exe I need to execute in quotes, with its complete path. In the msi log I see: CallQEx: Initialized. CallQEx: Error 0x80070002: Command failed to execute. Action ended 10:07:13: CallQEx. Return value 1. Where CallQEx is the C++ CA from where I call QuietExec. Has anyone of us used QuietExec in C++ CA and can point out what I might be missing here? Any help will be highly appreciated. Thank You, Animesh Anand -----Original Message----- From: animesh_an [mailto:an.anim...@gmail.com] Sent: Saturday, July 23, 2011 12:04 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] QuietExec in CA Hi, I have been wanting to use QuietExec in a C++ CA.Want I am doing is using QuietExec as QuietExec(cmdINeedToUse,1000).Where cmdINeedToUse is "\"C:\\windows\\system32\\calc.exe\"" for example.The return i got from the call is some -ve value(-213456 something).The Calculator application does not launch. I have searched the net for the usage of the call.But,i keep coming across this very post of the Wix bug. Can some one please help with the example usage. Thanks in advance. Animesh -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/QuietExec-in-CA -tp5339782p6613004.html Sent from the wix-users mailing list archive at Nabble.com. ----------------------------------------------------------------------------- - Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailad...@igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a re! sult of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com. ----------------------------------------------------------------------------- - Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ----------------------------------------------------------------------------- - Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailad...@igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a re! sult of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com. ----------------------------------------------------------------------------- - Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ----------------------------------------------------------------------------- - Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailad...@igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com. ----------------------------------------------------------------------------- - Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ 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. ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailad...@igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a re! sult of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com. ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailad...@igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a re! sult of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com. ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailad...@igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com. ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users