Help - Search - Members - Calendar
Full Version: Autorun.inf Only In Bartpe Possible?
The CD Forum > Bart's PE Builder > General
bean5618
Hello,
first thanks to Bart for his great work.

I have created an recovery cd with BartPE and it works fine, the only problem
is the autorun.inf. Everytime i insert the cd the nu2 shell starts.
Now my question, it is possible to start the shell only in BartPE?
For example check enviroment for BartPE/WinPE and start shell.
I could create an batch file and replace nu2 shell with the batch file and let it
check for BartPE/ WinPE but doing it in autorun.inf would be nicer.

Thanks.
nosferatu
Hi,

it is easy to modificate!
build an "inf" File in the typical use of Bart-PE and
use this code:
e.g.:

CODE
[Setup.AddReg]
0x1, "Setup", "CmdLine", "\I386\System32\cmd.exe"


and you will start with the Commandline

smile.gif
bean5618
Thanks, but that isnīt what i mean.
For example, if insert the cd under XP the autorun.inf is executed and starts
the nu2 shell and i want to stop this. It should only start under BartPE, so
i can use my tools without closing the nu2 shell (under normal OS).

Sorry, for my bad description.

Thanks
Flash!
Autorun.inf only controls what happens when the CD is inserted into an already-running OS, it shouldn't have anything to do with the way BartPE boots. If you want it to run another program on the CD, you could just modify the open= line in autorun.inf which you can find in the Nu2menu plugin folder. If you don't want it to run anything when you insert the CD, you could delete it entirely I imagine, but you would also have to remove the line from nu2menu.inf that copies it to the CD.
Jo-Jo
If I understand you right, you dont want the NU2 menu to start when you insert the CD while you are still in windows...Just hold down the shift key as you insert the CD and wait a little bit, this prevents anything on a CD from auto starting...
bean5618
Thanks, for the tips. The shift trick should work.

Thanks again.
nosferatu
@bean5618

this is the typical nu2menu.inf
CODE
; PE Builder v3 plug-in INF file for Nu2Menu
; Created by Bart Lagerweij
; http://www.nu2.nu/pebuilder/

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Nu2Menu"
Enable=1
Help="Nu2menu.htm"

[WinntDirectories]
a="Programs\Nu2Menu",2

[SourceDisksFiles]
; To have your own "go" button:
; create a file called "nu2go.bmp"
nu2go.bmp=a,,6; copy when exists...
nu2menu.exe=a,,3
nu2menu.lic=a,,3
nu2menu.xml=a,,3
setres.exe=a,,3
autorun.inf=30000,,3; dir id 30000 is the target "root"
;
main.cpl=2;system32
timedate.cpl=2;system32
access.cpl=2;system32

[SetupReg.AddReg]
; Install nu2menu.exe as shell
0x1, "Setup", "CmdLine", "\Programs\Nu2Menu\nu2menu.exe"

just put a "; " beyond the line
CODE
autorun.inf=30000,,3; dir id 30000 is the target "root"

and your Autorun Problem on every System is history....
nosferatu
Now the codeline is:
CODE
;autorun.inf=30000,,3; dir id 30000 is the target "root"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.