That error means the file could not be found. Those custom actions are immediate, and they look like they depend on files that have been installed, but immediate custom actions are called before files have been installed.
In any case, trying to run cmd or bat files is just too unreliable. Code would be preferable, as suggested. Phil Wilson On Wed, Aug 21, 2013 at 11:04 AM, Nicolás Alvarez <nicolas.alva...@gmail.com > wrote: > Even if you could, you *definitely* can't do file redirection with > > without explicitly invoking 'cmd'. > > Either way that looks kinda fragile. Did you consider writing a proper > native-code CA? > > -- > Nicolás > > 2013/8/20 Neil Sleightholm <n...@x2systems.com>: > > You can't run "echo" with invoking the command processor. Try "cmd /c > echo blah...". > > > > Neil > > > > -----Original Message----- > > From: Dusan Plavak [mailto:dusan.pla...@avitech-ag.com] > > Sent: 20 August 2013 08:49 > > To: wix-users@lists.sourceforge.net > > Subject: [WiX-users] CAQuietExec: Error 0x80070002: CAQuietExec Failed > > > > Hi there, > > > > I have a problem like a lot of people before me, but don`t know why > their solutions aren`t working to me... > > > > I found this topic: > > > http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg55613.html > > > > I have CA like in his solution but still not working... > > > > I have custom actions: > > > > > > > > <CustomAction Id="ca_configuration_locationUCF_CMDOPTION" > > Execute="immediate" Property="ca_configuration_locationUCF_CMD" > > Value='"echo" CONFIG_DIR = [INSTALLDIR] > > [INSTALLDIR]configuration_location.ucf' /> > > > > <CustomAction Id="ca_Configuration_UseServerBAT_CMDOPTION" > > Execute="immediate" Property="ca_Configuration_UseServerBAT_CMD" > > Value='"echo" CONFIG_DIR = [INSTALLDIR] > configuration_location.ucf > > [INSTALLDIR]Configuration_UseServer.bat' /> > > > > <CustomAction Id="ca_Configuration_UseLocalBAT_CMDOPTION" > > Execute="immediate" Property="ca_Configuration_UseLocalBAT_CMD" > > Value='"echo" CONFIG_DIR = [INSTALLDIR]CONFIG.LOCAL/ ^> > configuration_location.ucf > [INSTALLDIR]Configuration_UseLocal.bat' /> > > > > > > > > <CustomAction Id="ca_configuration_locationUCF_CMD" BinaryKey="WixCA" > > DllEntry="CAQuietExec" Execute="deferred" Return="check" > Impersonate="no"/> > > > > <CustomAction Id="ca_Configuration_UseServerBAT_CMD" BinaryKey="WixCA" > > DllEntry="CAQuietExec" Execute="deferred" Return="check" > Impersonate="no"/> > > > > <CustomAction Id="ca_Configuration_UseLocalBAT_CMD" BinaryKey="WixCA" > > DllEntry="CAQuietExec" Execute="deferred" Return="check" > Impersonate="no"/> > > > > > > > > . > > > > . > > > > . > > > > > > > > <InstallExecuteSequence> > > > > <Custom Action='ca_configuration_locationUCF_CMDOPTION' > > After='CostFinalize'>NOT REMOVE ~= "ALL"</Custom> > > > > <Custom Action='ca_configuration_locationUCF_CMD' > > After='InstallInitialize'>NOT REMOVE ~= "ALL"</Custom> > > > > > > > > <Custom Action='ca_Configuration_UseServerBAT_CMDOPTION' > > After='ca_configuration_locationUCF_CMD'>NOT REMOVE ~= "ALL"</Custom> > > > > <Custom Action='ca_Configuration_UseServerBAT_CMD' > > After='ca_Configuration_UseServerBAT_CMDOPTION'>NOT REMOVE ~= > "ALL"</Custom> > > > > > > > > <Custom Action='ca_Configuration_UseLocalBAT_CMDOPTION' > > After='ca_Configuration_UseServerBAT_CMD'>NOT REMOVE ~= "ALL"</Custom> > > > > <Custom Action='ca_Configuration_UseLocalBAT_CMD' > > After='ca_Configuration_UseLocalBAT_CMDOPTION'>NOT REMOVE ~= > "ALL"</Custom> > > > > </InstallExecuteSequence> > > > > > > > > > > > > > > > > And finally log: > > > > > > > > Action 9:36:18: InstallFinalize. > > > > Action start 9:36:18: InstallFinalize. > > > > MSI (s) (14:A8) [09:36:18:867]: Running Script: > > C:\Windows\Installer\MSI2390.tmp > > > > MSI (s) (14:A8) [09:36:18:867]: PROPERTY CHANGE: Adding UpdateStarted > property. Its value is '1'. > > > > MSI (s) (14:A8) [09:36:18:868]: Machine policy value 'DisableRollback' > is 0 > > > > MSI (s) (14:A8) [09:36:18:870]: Note: 1: 1402 2: > > > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollb > > ack\Scripts 3: 2 > > > > MSI (s) (14:A8) [09:36:18:872]: Executing op: > > > Header(Signature=1397708873,Version=500,Timestamp=1125403786,LangId=1033,Pla > > > tform=0,ScriptType=1,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttrib > > utes=0) > > > > MSI (s) (14:A8) [09:36:18:873]: Executing op: > > > ProductInfo(ProductKey={FEC5421C-0A65-4AB2-AA14-6E3FC7E5FB94},ProductName=eM > > AP.wiz@rd > ,PackageName=eMap.msi,Language=1033,Version=16908288,Assignment=0,O > > > bsoleteArg=0,,,PackageCode={D2F28507-5D55-4FEB-A1C0-0579B460A153},,,Instance > > Type=0,LUASetting=0,RemoteURTInstalls=0,ProductDeploymentFlags=3) > > > > MSI (s) (14:A8) [09:36:18:875]: SHELL32::SHGetFolderPath returned: > > C:\Users\dusan.plavak\AppData\Roaming > > > > MSI (s) (14:A8) [09:36:18:875]: Executing op: > > DialogInfo(Type=0,Argument=1033) > > > > MSI (s) (14:A8) [09:36:18:876]: Executing op: > > DialogInfo(Type=1,Argument=eMAP.wiz@rd) > > > > MSI (s) (14:A8) [09:36:18:876]: Executing op: > > RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back > action:,RollbackTemplate=[1],CleanupAction=RollbackCleanup,CleanupDescriptio > > n=Removing backup files,CleanupTemplate=File: [1]) > > > > MSI (s) (14:A8) [09:36:18:876]: Executing op: SetBaseline(Baseline=0,) > > > > MSI (s) (14:A8) [09:36:18:876]: Executing op: SetBaseline(Baseline=1,) > > > > MSI (s) (14:A8) [09:36:18:876]: Executing op: > > ActionStart(Name=ca_configuration_locationUCF_CMD,,) > > > > Action 9:36:18: ca_configuration_locationUCF_CMD. > > > > MSI (s) (14:A8) [09:36:18:877]: Executing op: > > > CustomActionSchedule(Action=ca_configuration_locationUCF_CMD,ActionType=3073 > > ,Source=BinaryData,Target=CAQuietExec,CustomActionData="echo" > > eMAP_CONFIG_DIR = C:\Program Files (x86)\Avitech\eMAP.wiz@rd\ > > C:\Program Files (x86)\Avitech\eMAP.wiz@rd\configuration_location.ucf) > > > > MSI (s) (14:18) [09:36:18:879]: Invoking remote custom action. DLL: > > C:\Windows\Installer\MSI23FF.tmp, Entrypoint: CAQuietExec > > > > MSI (s) (14:C4) [09:36:18:881]: Generating random cookie. > > > > MSI (s) (14:C4) [09:36:18:916]: Created Custom Action Server with PID > 1492 (0x5D4). > > > > MSI (s) (14:4C) [09:36:18:957]: Running as a service. > > > > MSI (s) (14:4C) [09:36:18:959]: Hello, I'm your 32bit Impersonated > custom action server. > > > > CAQuietExec: Error 0x80070002: Command failed to execute. > > > > CAQuietExec: Error 0x80070002: CAQuietExec Failed > > > > CustomAction ca_configuration_locationUCF_CMD returned actual error code > > 1603 (note this may not be 100% accurate if translation happened inside > > sandbox) > > > > Action ended 9:36:19: InstallFinalize. Return value 3. > > > > > > > > > > > > > > > > Thanks so much for any help.... > > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users