Re: [WiX-users] Does wix support calling bcdedit?

2012-05-14 Thread Castro, Edwin G. (Hillsboro)
The log you sent did not show this command line (with the quotes) as the 
command that executed. If you did in fact change your MSI to remote the extra 
quotes and you can see in the log that they are no longer there and it still 
didn't work then you have an interesting issue to resolve. In that case, my 
next guess might be to check whether perhaps the MSI package is getting marked 
as 32-bit and getting installed on a 64-bit system and bcdedit.exe doesn't 
actually exist in the 32-bit location for [SystemFolder] (just a guess, I have 
no real idea). Or perhaps the target system simply doesn't have the file?

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: victorwhiskey [mailto:victorhwhis...@yahoo.com]
> Sent: Monday, May 14, 2012 7:40 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Does wix support calling bcdedit?
> 
> I forgot to put down that
> 
> 
> "C:\Windows\system32\\bcdedit.exe" /set testsigning on - worked on a
> command line that was "run as administrator"
> 
> but not in the quiet custom action during the install.
> 
> --
> View this message in context: http://windows-installer-xml-wix-
> toolset.687559.n2.nabble.com/Does-wix-support-calling-bcdedit-
> tp7551749p7556546.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


Re: [WiX-users] Does wix support calling bcdedit?

2012-05-14 Thread victorwhiskey
I forgot to put down that 


"C:\Windows\system32\\bcdedit.exe" /set testsigning on - worked on a command
line that was "run as administrator" 

but not in the quiet custom action during the install.

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Does-wix-support-calling-bcdedit-tp7551749p7556546.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


Re: [WiX-users] Does wix support calling bcdedit?

2012-05-13 Thread victorwhiskey
Yes I ran both, 

"C:\Windows\system32\\bcdedit.exe" /set testsigning on - worked on a command
line that was "run as administrator"


"C:\Windows\system32\\bcdedit.exe" /set "testsigning on" - this did not
work, my mistake

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Does-wix-support-calling-bcdedit-tp7551749p7555665.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


Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Castro, Edwin G. (Hillsboro)
References on the web suggest that you have too many quotes (and you didn't run 
the command as I copied it).

Did you run the following:

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

Instead of what I asked you to execute:

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

All the examples I see online suggest that the one without quotes should work. 
I haven't tried either because this seems like a bad idea but I have a feeling 
you ran the command without quotes.

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 4:40 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Does wix support calling bcdedit?
> 
> 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  wrote:
> 
> From: Wilson, Phil 
> Subject: Re: [WiX-users] Does wix support calling bcdedit?
> To: "General discussion for Windows Installer XML toolset."  us...@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
> >
> >  >   Property="SetInstallCmd"
> >           Value='"[System64Folder]\bcdedit.exe" /set
> > "testsigning on"' />
> >      >   BinaryKey="WixCA"
> >   DllEntry="CAQuietExec"
> >   Return="ignore"
> >   Execute="deferred"
> >   Impersonate="no"/>
> >
> > --- On Fri, 5/11/12, victorwhiskey  wrote:
> >
> > From: victorwhiskey 
> > 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 &

Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Vincent Wong
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  wrote:

From: Wilson, Phil 
Subject: Re: [WiX-users] Does wix support calling bcdedit?
To: "General discussion for Windows Installer XML toolset." 

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
> 
>    Property="SetInstallCmd"
>   Value='"[System64Folder]\bcdedit.exe" /set 
> "testsigning on"' />
>        BinaryKey="WixCA"
>   DllEntry="CAQuietExec"
>           Return="ignore"
>   Execute="deferred"
>   Impersonate="no"/>
> 
> --- On Fri, 5/11/12, victorwhiskey  wrote:
> 
> From: victorwhiskey 
> 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 0x

Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Wilson, Phil
...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
> 
>    Property="SetInstallCmd"
>   Value='"[System64Folder]\bcdedit.exe" /set 
> "testsigning on"' />
>        BinaryKey="WixCA"
>   DllEntry="CAQuietExec"
>   Return="ignore"
>           Execute="deferred"
>   Impersonate="no"/>
> 
> --- On Fri, 5/11/12, victorwhiskey  wrote:
> 
> From: victorwhiskey 
> 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]:
> Closin

Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Castro, Edwin G. (Hillsboro)
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
> 
>    Property="SetInstallCmd"
>   Value='"[System64Folder]\bcdedit.exe" /set "testsigning 
> on"' />
>        BinaryKey="WixCA"
>   DllEntry="CAQuietExec"
>   Return="ignore"
>               Execute="deferred"
>   Impersonate="no"/>
> 
> --- On Fri, 5/11/12, victorwhiskey  wrote:
> 
> From: victorwhiskey 
> 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 ",) MSI (s) (B8:74)
> [11:25:49:514]: Executing op:
> CustomActionSchedule(Action=InstallAHCI64,ActionType=3138,Source=BinaryD
> ata,Target=/F
> /PATH "C:\Program Files\\\",)
> CustomAction Install

Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Wilson, Phil
Windows Installer folder properties include a backslash.  Try:

'"[System64Folder]bcdedit.exe"

Phil W 

-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


    

--- On Fri, 5/11/12, victorwhiskey  wrote:

From: victorwhiskey 
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=BinaryData,Target=CAQuietExec,CustomActionData="C:\Windows\system32\\bcdedit.exe"
/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 ",) MSI (s) (B8:74) 
[11:25:49:514]: Executing op:
CustomActionSchedule(Action=InstallAHCI64,ActionType=3138,Source=BinaryData,Target=/F
/PATH "C:\Program Files\\\",)
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


*** Confidentiality Notice: This e-mail, including any associ

Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Hoover, Jacob
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 ",) MSI (s)
(B8:74) [11:25:49:514]: Executing op:
CustomActionSchedule(Action=InstallAHCI64,ActionType=3138,Source=BinaryD
ata,Target=/F
/PATH "C:\Program Files\\\",)
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


Re: [WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread Vincent Wong
Sorry,

Here's the CA codes and I'm running elevated as perMachine install


    

--- On Fri, 5/11/12, victorwhiskey  wrote:

From: victorwhiskey 
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=BinaryData,Target=CAQuietExec,CustomActionData="C:\Windows\system32\\bcdedit.exe"
/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 ",)
MSI (s) (B8:74) [11:25:49:514]: Executing op:
CustomActionSchedule(Action=InstallAHCI64,ActionType=3138,Source=BinaryData,Target=/F
/PATH "C:\Program Files\\\",)
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


[WiX-users] Does wix support calling bcdedit?

2012-05-11 Thread victorwhiskey
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=BinaryData,Target=CAQuietExec,CustomActionData="C:\Windows\system32\\bcdedit.exe"
/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 ",)
MSI (s) (B8:74) [11:25:49:514]: Executing op:
CustomActionSchedule(Action=InstallAHCI64,ActionType=3138,Source=BinaryData,Target=/F
/PATH "C:\Program Files\\\",)
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