http://msdn.microsoft.com/en-us/library/windows/hardware/ff553484(v=vs.8
5).aspx

I see two issues, the first being you are using / instead of -, though I
am not sure if it matters. The second being that you didn't read the
fine print, " Note  After you change the TESTSIGNING boot configuration
option, restart the computer for the change to take effect. "

Why not just turn the flag on for your test machine and leave it on?
This sort of change should not be used in a production environment.


-----Original Message-----
From: victorwhiskey [mailto:victorhwhis...@yahoo.com] 
Sent: Friday, May 11, 2012 3:08 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Does wix support calling bcdedit?

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.ex
e"
/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-s
upport-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

Reply via email to