VBScripting in the FBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to run a VB Script in the first boot agent? so far i've come up out of luck.
I'm trying to execute a program with it and use sendkeys to walk through it.
 
Hi,

This topic was discussed under "VBScript not a valid win32 application".

Regards,
Günter
 
mart,

Yes, you can.

1. Make sure that "Windows Script Engines" (or better "Windows Script Engines - Hotfix Q824704") is in your image. For you custom
component it is better to set a dependency on the "Windows Script Engines - Hotfix Q824704".

2. Make sure you properly call your script (right command like "wscript.exe //B ...") from "Generic FBA Command" and the FBA phase
should be set to a value that is bigger than the FBA Phase value of "Windows Script Engines - Hotfix Q824704" component resources
(4500, AFAIK).

3. There is a registry bug of the wscript component which may not be relevant to your problem now. However, search this NG archive
for more info.
 
Mart,

I have an example of running VB scripts during FBA in Chapter 15 of my book.
Use FBA Generic comand to run the script. Set File path to wscript.exe and
arguments to the path of the VB script file.

Regards,

Sean Liming
XP Embedded Manager
A7 Engineering (www.a7eng.com)
Author: Windows XP Embedded Advanced and Windows NT Embedded Step-by-Step

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Back
Top