HRESULT 0x80070002 means ERROR_FILE_NOT_FOUND

See http://msdn.microsoft.com/en-us/library/windows/desktop/dd319335.aspx

Open up a cmd prompt and execute the following command (don't change the quotes 
or anything else):

"C:\Windows\system32\\bcdedit.exe" /set "testsigning on"

Verify whether the command above (exactly) succeeds or fails. The command above 
is the exact command that your custom action is attempting to execute. If it 
works, then you'll need to continue investigating. If it doesn't then there's 
something wrong in the way you set the SetInstallCmd property.

Edwin G. Castro
Software Developer - Staff
Digital Channels
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail


> -----Original Message-----
> From: Vincent Wong [mailto:victorhwhis...@yahoo.com]
> Sent: Friday, May 11, 2012 1:23 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Does wix support calling bcdedit?
> 
> Sorry,
> 
> Here's the CA codes and I'm running elevated as perMachine install
> 
> <CustomAction Id="SetInstallCmd_Cmd"
>                   Property="SetInstallCmd"
>                   Value='"[System64Folder]\bcdedit.exe" /set "testsigning 
> on"' />
>     <CustomAction Id="SetInstallCmd"
>                   BinaryKey="WixCA"
>                   DllEntry="CAQuietExec"
>                   Return="ignore"
>                   Execute="deferred"
>                   Impersonate="no"/>
> 
> --- On Fri, 5/11/12, victorwhiskey <victorhwhis...@yahoo.com> wrote:
> 
> From: victorwhiskey <victorhwhis...@yahoo.com>
> Subject: [WiX-users] Does wix support calling bcdedit?
> To: wix-users@lists.sourceforge.net
> Date: Friday, May 11, 2012, 8:07 PM
> 
> Hi,
> 
> I'm trying to call bcdedit from a deferred custom action to set the machine in
> test mode.  I'm trying to install unsigned drivers at the moment so I want to 
> put
> the machine in test mode with the command "bcdedit /set testsigning on".
> 
> I'm calling CAQuietExec byt I'm getting Error 0x80070002
> 
> These are snips of my log:
> 
> MSI (s) (B8:74) [11:25:49:046]: Note: 1: 2205 2:  3: PatchPackage Action ended
> 11:25:49: InstallFiles. Return value 1.
> MSI (s) (B8:74) [11:25:49:046]: Doing action: SetInstallCmd_Cmd Action start
> 11:25:49: SetInstallCmd_Cmd.
> MSI (s) (B8:74) [11:25:49:046]: PROPERTY CHANGE: Adding SetInstallCmd
> property. Its value is '"C:\Windows\system32\\bcdedit.exe" /set "testsigning
> on"'.
> Action ended 11:25:49: SetInstallCmd_Cmd. Return value 1.
> MSI (s) (B8:74) [11:25:49:046]: Doing action: SetInstallCmd Action start
> 11:25:49: SetInstallCmd.
> Action ended 11:25:49: SetInstallCmd. Return value 1.
> MSI (s) (B8:74) [11:25:49:062]: Doing action: InstallAHCI64
> 
> ...
> 
> MSI (s) (B8:74) [11:25:49:140]: Executing op:
> ActionStart(Name=SetInstallCmd,,)
> MSI (s) (B8:74) [11:25:49:140]: Executing op:
> CustomActionSchedule(Action=SetInstallCmd,ActionType=3137,Source=BinaryD
> ata,Target=CAQuietExec,CustomActionData="C:\Windows\system32\\bcdedit.e
> xe"
> /set "testsigning on")
> MSI (s) (B8:74) [11:25:49:140]: Creating MSIHANDLE (4) of type 790536 for
> thread 1908 MSI (s) (B8:D8) [11:25:49:140]: Invoking remote custom action.
> DLL:
> C:\Windows\Installer\MSIC31B.tmp, Entrypoint: CAQuietExec MSI (s) (B8:C4)
> [11:25:49:140]: Generating random cookie.
> MSI (s) (B8:C4) [11:25:49:140]: Created Custom Action Server with PID 1884
> (0x75C).
> MSI (s) (B8:48) [11:25:49:498]: Running as a service.
> MSI (s) (B8:48) [11:25:49:498]: Hello, I'm your 32bit Elevated custom action
> server.
> MSI (s) (B8!44) [11:25:49:514]: Creating MSIHANDLE (5) of type 790531 for
> thread 2628
> CAQuietExec:  Error 0x80070002: Command failed to execute.
> MSI (s) (B8!44) [11:25:49:514]: Closing MSIHANDLE (5) of type 790531 for
> thread 2628 MSI (s) (B8!44) [11:25:49:514]: Creating MSIHANDLE (6) of type
> 790531 for thread 2628
> CAQuietExec:  Error 0x80070002: CAQuietExec Failed MSI (s) (B8!44)
> [11:25:49:514]: Closing MSIHANDLE (6) of type 790531 for thread 2628
> CustomAction SetInstallCmd returned actual error code 1603 but will be
> translated to success due to continue marking MSI (s) (B8:D8) [11:25:49:514]:
> Closing MSIHANDLE (4) of type 790536 for thread 1908 MSI (s) (B8:74)
> [11:25:49:514]: Executing op:
> ActionStart(Name=InstallAHCI64,Description="Installing XXXX",) MSI (s) (B8:74)
> [11:25:49:514]: Executing op:
> CustomActionSchedule(Action=InstallAHCI64,ActionType=3138,Source=BinaryD
> ata,Target=/F
> /PATH "C:\Program Files\XXXX\\",)
> CustomAction InstallAHCI64 returned actual error code 1073741825 but will be
> translated to success due to continue marking
> 
> 
> Any ideas?
> 
> Thank you
> 
> 
> --
> View this message in context: http://windows-installer-xml-wix-
> toolset.687559.n2.nabble.com/Does-wix-support-calling-bcdedit-
> tp7551749.html
> Sent from the wix-users mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to