Thanks Phil and Edwin,

I tried out my command and I know it works, but it works when I right click on 
command prompt and select "run as administrator".  I thought with perMachine 
mode, install privileges="elevated" and deferred custom action would cover, but 
I'm still getting the same error.



--- On Fri, 5/11/12, Wilson, Phil <phil.wil...@invensys.com> wrote:

From: Wilson, Phil <phil.wil...@invensys.com>
Subject: Re: [WiX-users] Does wix support calling bcdedit?
To: "General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>
Date: Friday, May 11, 2012, 9:44 PM

...which is why I suggested deleting that extra "\" as something to try.  

-----Original Message-----
From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] 
Sent: Friday, May 11, 2012 2:37 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Does wix support calling bcdedit?

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
P 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=Binar
> yD 
> 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=Binar
> yD
> 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


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).

------------------------------------------------------------------------------
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