Paraglider BartPE Plugins

SetTargetRoot Plugin

Plugin for the SetTargetRoot program. It searches all drives for boot.ini files and extracts the directory associated with the default entry assuming it is on the same drive as the boot.ini file. If no windows installations are found then it will show a browse dialog allowing the windows installation to be selected. If multiple windows installations are found then a dialog will be shown allowing one to be chosen.

Whichever windows installation is found will be set into the TARGET_ROOT environment variable.

A setting change message will be broadcast to indicate the global environment variables have been updated.

In addition it searches the running processes to find if nu2menu is running. If it is found then nu2menumsg will be run to call @SetEnvVar(TARGET_ROOT,...)@Reload. It will look in the windows system directory and in programs\nu2menu on the current drive to locate the nu2menumsg program.

The following file(s) must be put into the SetTargetRoot plugin folder:

SetTargetRoot.inf
SetTargetRoot.html
SetTargetRoot.xml
files\SetTargetRoot.exe

by extracting the contents of the SetTargetRoot cab file into the SetTargetRoot plugin folder being careful to preserve the directory structure in the cab file when extracting the files. The source code for the various language specific resource files is also included in the cab file - It is not copied to the output directories when the pebuilder is run.

The program is called as follows:

SetTargetRoot {/en} {/f} {/n} {/v} {/w} {/s} {/h} {<Program> <Program Parameters>}

where:

if the optional parameter /en is specified then the program will exit without setting the environment variable and without showing any browse dialogs if no windows installations are found.

If /f is specified then scan all root directories on all drives looking for windows installations.

If /s is specified then the program specified in the command line will be run after setting the TARGET_ROOT environment variable.

If /n is specified then the current shell will not be notified of the setting change.

If /v is specified then use bcdedit.exe to scan vista boot manager files for windows installations.

If /w and /s is specified then SetTargetRoot will wait for the target command to finish before exiting.

If /h and /s is specified then the program run will be run hidden.

To run from BartPE, click on:
Start/Go Programs System Tools SetTargetRoot