when to reboot system after executing a command?

G

Guest

I made a component to run an executable to install some windrivers

I put the *.sys files, *.inf files in proper directoires, then define a FBA general command in this component as Resource to run the executable that install these drivers. Here is the definitions

arguments: wdreg instal
filepath: %11%cmd.ex
phase 100
reboot: tru

The image blue screened. I checked the FBALOG file and find the following
0:49:53 AM - [FBASetProgressText] Setting PNP Flag...
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBASetProgressText] Initializing...
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitialize
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe]
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag...
0:50:54 AM - [FBARemoveRestart] Updated BootExecute!
0:50:54 AM - [FBASetProgressText] Replacing System Hives...
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag...
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded!
0:51:20 AM - [FBADoReboot] Sleeping...
0:51:30 AM - [FBADoReboot] Exiting process...

I suspect the following:
the phase is too low (1000) o
should not reboot, o
the path is wrong

Anyone can confirm or advise otherwise

Thanks

Sherry
 
K

KM

sherry,

Something strange you are doing or I simply don't understand what "wdreg" does for you.
Anyway.. my comments inline:
I made a component to run an executable to install some windrivers.

I put the *.sys files, *.inf files in proper directoires, then define a FBA general command in this component as Resource to run
the executable that install these drivers. Here is the definitions:
arguments: wdreg install

[KM] /K switch?
filepath: %11%cmd.exe


[KM] %11%\cmd.exe (slash)
phase 1000
reboot: true

The image blue screened. I checked the FBALOG file and find the following:
0:49:53 AM - [FBASetProgressText] Setting PNP Flag...
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBASetProgressText] Initializing...
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitialize
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe]


[KM] Where this come from? Any custom FBA Dll Registeration?
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag...
0:50:54 AM - [FBARemoveRestart] Updated BootExecute!
0:50:54 AM - [FBASetProgressText] Replacing System Hives...
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag...
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded!
0:51:20 AM - [FBADoReboot] Sleeping...
0:51:30 AM - [FBADoReboot] Exiting process...

I suspect the following:
the phase is too low (1000) or

Does your driver(s) depend on anything else? (e.g. network stack, etc.)
should not reboot, or

The reboot should not hurt.
 
G

Guest

Thanks, I corrected the path. more comments below

----- KM wrote: ----

sherry

Something strange you are doing or I simply don't understand what "wdreg" does for you
It installs a third party windriver

Anyway.. my comments inline
I made a component to run an executable to install some windrivers

[KM] /K switch
filepath: %11%cmd.ex


[KM] %11%\cmd.exe (slash
phase 100
reboot: tru
The image blue screened. I checked the FBALOG file and find the following
0:49:53 AM - [FBASetProgressText] Setting PNP Flag..
0:50:49 AM - [FBASetProgressText] Installing Components..
0:50:49 AM - [FBASetProgressText] Initializing..
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitializ
0:50:49 AM - [FBASetProgressText] Installing Components..
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe


[KM] Where this come from? Any custom FBA Dll Registeration
no
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag..
0:50:54 AM - [FBARemoveRestart] Updated BootExecute
0:50:54 AM - [FBASetProgressText] Replacing System Hives..
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag..
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded
0:51:20 AM - [FBADoReboot] Sleeping..
0:51:30 AM - [FBADoReboot] Exiting process..
I suspect the following
the phase is too low (1000) o

Does your driver(s) depend on anything else? (e.g. network stack, etc.
n
should not reboot, o

The reboot should not hurt
 
G

Guest

Is this the right way to install custom drivers
We use other companies drivers in our project. The third party company provided an executable to install their drivers. I'm trying to define a component, specify the file locations, then use FBA general command to run their installation program. Is this the way or I got it all wrong

sherr

----- KM wrote: ----

sherry

Something strange you are doing or I simply don't understand what "wdreg" does for you
Anyway.. my comments inline
I made a component to run an executable to install some windrivers

[KM] /K switch
filepath: %11%cmd.ex


[KM] %11%\cmd.exe (slash
phase 100
reboot: tru
The image blue screened. I checked the FBALOG file and find the following
0:49:53 AM - [FBASetProgressText] Setting PNP Flag..
0:50:49 AM - [FBASetProgressText] Installing Components..
0:50:49 AM - [FBASetProgressText] Initializing..
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitializ
0:50:49 AM - [FBASetProgressText] Installing Components..
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe


[KM] Where this come from? Any custom FBA Dll Registeration
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag..
0:50:54 AM - [FBARemoveRestart] Updated BootExecute
0:50:54 AM - [FBASetProgressText] Replacing System Hives..
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag..
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded
0:51:20 AM - [FBADoReboot] Sleeping..
0:51:30 AM - [FBADoReboot] Exiting process..
I suspect the following
the phase is too low (1000) o

Does your driver(s) depend on anything else? (e.g. network stack, etc.
should not reboot, o

The reboot should not hurt
 
S

Slobodan Brcin \(eMVP\)

sherry,

The best way would be to extract all files from exe file, or to find them in
your regular Windows XP.
And in most cases (depending on type of driver) you can just copy all
required files to their folders and PnP will install them.

You can use google to find more info about this and any other related topic.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=microsoft.
public.windowsxp.embedded

Regards,
Slobodan

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

sherry said:
Is this the right way to install custom drivers?
We use other companies drivers in our project. The third party company
provided an executable to install their drivers. I'm trying to define a
component, specify the file locations, then use FBA general command to run
their installation program. Is this the way or I got it all wrong?
sherry

----- KM wrote: -----

sherry,

Something strange you are doing or I simply don't understand what "wdreg" does for you.
Anyway.. my comments inline:
define a FBA general command in this component as Resource to run
the executable that install these drivers. Here is the definitions:
[KM] /K switch?
filepath: %11%cmd.exe


[KM] %11%\cmd.exe (slash)
phase 1000
reboot: true
The image blue screened. I checked the FBALOG file and find the
following:
0:49:53 AM - [FBASetProgressText] Setting PNP Flag...
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBASetProgressText] Initializing...
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitialize
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path:
[C:\WINDOWS\C:\WINDOWS\system32cmd.exe]


[KM] Where this come from? Any custom FBA Dll Registeration?
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag...
0:50:54 AM - [FBARemoveRestart] Updated BootExecute!
0:50:54 AM - [FBASetProgressText] Replacing System Hives...
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag...
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded!
0:51:20 AM - [FBADoReboot] Sleeping...
0:51:30 AM - [FBADoReboot] Exiting process...
I suspect the following:
the phase is too low (1000) or

Does your driver(s) depend on anything else? (e.g. network stack, etc.)
should not reboot, or

The reboot should not hurt.
the path is wrong.
Definetely.

Anyone can confirm or advise otherwise?
 
K

KM

sherry,

You corrected the paths and? Did it help?
Also, check "Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe]" FBA log line. This is weird, isn't it? Check out your
components.

This statement from you is a bit confusing: "I put the *.sys files, *.inf files in proper directoires, then define a FBA general
command in this component as Resource to run the executable that install these drivers".

If you put all the files in proper directories, why do you need to install it (wdreg)? Is it PnP driver or not? If PnP one, you
don't need to do anything else. If not, you should install it on XP Pro machine capturing the entries it puts in registry. Then you
add the entries to your custom component.

--
KM,
BSquare Corporation
Thanks, I corrected the path. more comments below:

----- KM wrote: -----

sherry,

Something strange you are doing or I simply don't understand what "wdreg" does for you.
It installs a third party windriver.

Anyway.. my comments inline:
I made a component to run an executable to install some windrivers.
to run
the executable that install these drivers. Here is the definitions:
[KM] /K switch?
filepath: %11%cmd.exe


[KM] %11%\cmd.exe (slash)
phase 1000
reboot: true
The image blue screened. I checked the FBALOG file and find the following:
0:49:53 AM - [FBASetProgressText] Setting PNP Flag...
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBASetProgressText] Initializing...
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitialize
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe]


[KM] Where this come from? Any custom FBA Dll Registeration?
no.
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag...
0:50:54 AM - [FBARemoveRestart] Updated BootExecute!
0:50:54 AM - [FBASetProgressText] Replacing System Hives...
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag...
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded!
0:51:20 AM - [FBADoReboot] Sleeping...
0:51:30 AM - [FBADoReboot] Exiting process...
I suspect the following:
the phase is too low (1000) or

Does your driver(s) depend on anything else? (e.g. network stack, etc.)
no
should not reboot, or

The reboot should not hurt.
the path is wrong.
Definetely.

Anyone can confirm or advise otherwise?
 
K

KM

sherry,

Unless you are sure you got all the driver's dependencies in your image, I would say it is better to componentize the driver
package.
http://msdn.microsoft.com/library/en-us/dnxpembed/html/customxpecomp.asp

--
KM,
BSquare Corporation
Is this the right way to install custom drivers?
We use other companies drivers in our project. The third party company provided an executable to install their drivers. I'm trying
to define a component, specify the file locations, then use FBA general command to run their installation program. Is this the way
or I got it all wrong?
sherry

----- KM wrote: -----

sherry,

Something strange you are doing or I simply don't understand what "wdreg" does for you.
Anyway.. my comments inline:
I made a component to run an executable to install some windrivers.
to run
the executable that install these drivers. Here is the definitions:
[KM] /K switch?
filepath: %11%cmd.exe


[KM] %11%\cmd.exe (slash)
phase 1000
reboot: true
The image blue screened. I checked the FBALOG file and find the following:
0:49:53 AM - [FBASetProgressText] Setting PNP Flag...
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBASetProgressText] Initializing...
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitialize
0:50:49 AM - [FBASetProgressText] Installing Components...
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe]


[KM] Where this come from? Any custom FBA Dll Registeration?
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag...
0:50:54 AM - [FBARemoveRestart] Updated BootExecute!
0:50:54 AM - [FBASetProgressText] Replacing System Hives...
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag...
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded!
0:51:20 AM - [FBADoReboot] Sleeping...
0:51:30 AM - [FBADoReboot] Exiting process...
I suspect the following:
the phase is too low (1000) or

Does your driver(s) depend on anything else? (e.g. network stack, etc.)
should not reboot, or

The reboot should not hurt.
the path is wrong.
Definetely.

Anyone can confirm or advise otherwise?
 
G

Guest

I'm trying it now after corrected the path. It takes about 40minutes to boot after a new image

The driver is an un-PnP device. The component I made will put files in proper place. I just tried to run wdreg.exe from dos windor (the incorrect path version, so FBA general command failed to run it). It installed the driver correctly. So I know if I get wdreg.exe run properly I probably can get the driver installed automatically

wdreg.exe is provided by 3rd party. It sets bunch of registries, and maybe others to install the driver. I tried earlier to capture (regmon) and find it is hard to make everything right by putting the registry data. So I thought why don't I just run their install program in the component. This way I know the drivers will install properly

sherr

----- KM wrote: ----

sherry

You corrected the paths and? Did it help
Also, check "Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe]" FBA log line. This is weird, isn't it? Check out you
components

This statement from you is a bit confusing: "I put the *.sys files, *.inf files in proper directoires, then define a FBA genera
command in this component as Resource to run the executable that install these drivers"

If you put all the files in proper directories, why do you need to install it (wdreg)? Is it PnP driver or not? If PnP one, yo
don't need to do anything else. If not, you should install it on XP Pro machine capturing the entries it puts in registry. Then yo
add the entries to your custom component

--
KM
BSquare Corporatio
Thanks, I corrected the path. more comments below
----- KM wrote: ----
sherry
Something strange you are doing or I simply don't understand what "wdreg" does for you
It installs a third party windriver
Anyway.. my comments inline
to ru
the executable that install these drivers. Here is the definitions
arguments: wdreg instal [KM] /K switch
filepath: %11%cmd.ex
[KM] %11%\cmd.exe (slash
phase 100 reboot: tru
The image blue screened. I checked the FBALOG file and find the following
0:49:53 AM - [FBASetProgressText] Setting PNP Flag..
0:50:49 AM - [FBASetProgressText] Installing Components..
0:50:49 AM - [FBASetProgressText] Initializing..
0:50:49 AM - [CallEntryPointThread] C:\WINDOWS\FBA\FBALIB.DLL, FBAInitializ
0:50:49 AM - [FBASetProgressText] Installing Components..
0:50:49 AM - [FBAProcessRegisterDLLs] 65536254 -> Invalid Path: [C:\WINDOWS\C:\WINDOWS\system32cmd.exe
[KM] Where this come from? Any custom FBA Dll Registeration no
0:50:49 AM - [FBASetProgressText] Resetting Setup Flag..
0:50:54 AM - [FBARemoveRestart] Updated BootExecute
0:50:54 AM - [FBASetProgressText] Replacing System Hives..
0:50:55 AM - [FBASetProgressText] Resetting Setup Flag..
0:51:20 AM - [FBAFlushFilesToDisk] FlushFileBuffers(C:\) succeeded
0:51:20 AM - [FBADoReboot] Sleeping..
0:51:30 AM - [FBADoReboot] Exiting process..
I suspect the following
the phase is too low (1000) o
Does your driver(s) depend on anything else? (e.g. network stack, etc. n
should not reboot, o The reboot should not hurt
the path is wrong Definetely
Anyone can confirm or advise otherwise
--
KM
BSquare Corporatio
 
G

Guest

Thanks, KM and Slobodan

After corrected the syntax, the FBA command works fine. The windriver is installed correctly

Sherry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top