Content Type
Profiles
Forums
Events
Everything posted by idle.newbie
-
Guide For Compressed Drivers Unattended Install
idle.newbie replied to serialzs's topic in Device Drivers
[GuiUnattended] DetachedProgram = ".\system32\cmd.exe" Arguments = "/Q /C FOR /F %I IN (%SystemRoot%\system32\$winnt$.inf) DO (FOR %J IN (%I$OEM$\DRV\*.exe) DO (IF EXIST %J (%J -y -o%SystemDrive%\DRV)))" Entries above extracts every 7zip sfx inside $OEM$\DRV into %SystemDrive%\DRV. No need to modify txtsetup.sif/dosnet.inf, no driver copy @textmode setup, even with OemPreinstall=No, it finds your cd source from $winnt$.inf. Just edit your OemPnPDriverPath(may do that with my another script), compress all your driver into 7zip sfx, and move it to $OEM$\DRV, that's all. -
Guide For Compressed Drivers Unattended Install
idle.newbie replied to serialzs's topic in Device Drivers
XP setup will not stop @T-39, but you can make it pause for a while. With OemPreinstall=Yes, OemSkipWelcome=0, setup will pause @T-39 before hardware detection. DetachedProgram = "system32\cmd.exe" Arguments = "/K START /WAIT PAUSE" Entries above will make a new cmd window and pause. Drvz.exe just extract driver sfx @T-39 then call SetDevicePath.exe, big_qie's MT39 is a better solution, Bilou_Gateux tried that for weeks, it's not working without a proper OemPnPDriversPath. -
So is it worth replacing WMP9 with 10 then?
idle.newbie replied to Marztabator's topic in Unattended Windows 2000/XP/2003
There's someone in China made another package called GreenMPC. By using MediaPlayerClassic's filter, that didn't need any REGSVR32 or install, just extract it that's all. No DirectShowFilter will be registered, totally transparent to system, it will not conflict with RealPlayer. As i know, it has XviD/DivX/RealMedia/QuickTime/VSFilter/VP6/VSSH/and more. Sounds perfect for unattended install, but i have to associate media file type to MPC by using MPC's UI, or play by Drag&Drop. -
.NET Framework 1.1 Service Pack
idle.newbie replied to OutTrendz's topic in Unattended Windows 2000/XP/2003
i've tried making a self-install 7z sfx(cant remember the app name), if that sfx install @T-12, after xp setup complete and my user logon, there's a new directory named MACHINENAME(or SYSTEM, can't sure, it's been 1 or 2 month ago) under "C:\Documents and Settings", but i didn't have that user. Then i view Properties of that folder, in Security page, owner of that folder is SYSTEM(built-in user SYSTEM not user named SYSTEM). i didn't try that furtherer, maybe the folder was created by app setup. Maybe someone can make another self-install 7z sfx for another app, to make sure that folder is created by app setup, or 7z setup sfx. At lease, i know default user @T-12 is built-in SYSTEM user. -
Fresh install... Apply that regTweak(or .js .cmd) after windows setup complete, user first time logon. If you apply that regTweak after OE first run, store root will change back to your profileDir. dont ask me why, i dunno too. On my xp disc, i create every user account i need @T-12, apply some common regTweak and place the .js into default user's startup, after xp setup complete, user first time logon and run my .js, everything done. OE mail store, WAB store, MSN received directory, some user shell folders, and some other regTweak have to apply after user logon.
-
.NET Framework 1.1 Service Pack
idle.newbie replied to OutTrendz's topic in Unattended Windows 2000/XP/2003
7zip has 3 different sfx, console sfx extracts to current directory by default(-o to specified directory), windows sfx will show a dialog (unless with -y argument) and default to current directory(-o overwrites), setup sfx will extract to temp(can't sure system temp or user temp) then execute some setup program. 7zip's setup sfx needs a config.txt in UTF-8 encoding, the 7zfm can't handle this kind of sfx, all manually, first make your archive, then config.txt, and last concate those 2 file with sfx module with: COPY /B 7zSD.sfx+config.txt+anyArchive.7z sfxName.exe 7-zip.chm, section Command Line Version for details. All 7-zip sfx module can be compress by upx, reduced size from 4xKb~7xKb, 7zC.sfx is the upxed version of 7z.sfx. Don't execute any 7zip setup sfx before xp setup reboot, or there will be some strange directory in ProfilesDir. I did this several times @T-12, it generates some directory like MACHINENAME(or SYSTEM), i think that's UserName(SYSTEM)/MachineName @T-12. so, execute 7zip setup sfx @RunOnceEx or after that. -
Dunno... .js & .cmd do the same regTweak, works everytime on my machine, fresh install.
-
OemPnPDriversPath.cmd @ECHO OFF IF "%1"=="" GOTO EOF IF NOT EXIST %1 GOTO EOF IF "%2"=="" GOTO EOF IF NOT EXIST %2 GOTO EOF SETLOCAL ENABLEDELAYEDEXPANSION SET OemPnPDriversPath=$ SET STDOUT=WINNT.SIF TYPE>%STDOUT% 2>NUL ::traverse drivers path CALL :TRAVERSAL %1 ECHO %OemPnPDriversPath:~2% ::recreate winnt.sif CALL :RECREATE %2 %STDOUT% Unattended OemPnPDriversPath "%OemPnPDriversPath:~2%" GOTO EOF :TRAVERSAL PUSHD %1 IF EXIST *.INF SET OemPnPDriversPath=!OemPnPDriversPath!;%CD:~3% FOR /F %%I IN ('DIR /AD /OGN /B') DO ( CALL :TRAVERSAL %CD%\%%I ) POPD GOTO EOF :RECREATE ::%1=Source, %2=Destination, %3=Section, %4=Key, %5=Value SET SECTION=NO SET KEY=NO FOR /F "usebackq tokens=1,2*" %%I IN ("%1") DO ( IF "%%J"=="=" ( IF /I "%%I"=="%4" ( ECHO %4 = %5>>%2 SET UPDATED=YES ) ELSE ( ECHO %%I %%J %%K>>%2 ) ) ELSE ( IF /I "%%I"=="[%3]" ( SET SECTION=YES ) ELSE ( IF NOT "%SECTION%"=="NO" ( IF "%KEY%"=="NO" ( ECHO %4 = %5>>%2 SET KEY=YES ) SET KEY=NO ) ) ECHO.>>%2 ECHO %%I>>%2 ) ) GOTO EOF :EOF It's a Pyron's SetDevicePath.exe clone in .cmd batch scripting, a modified version of my Detached.cmd. It scans every directories under where you specified, looking for *.inf, and write corresponding OemPnPDriverPath entry into WINNT.SIF. It needs two arguments, #1 full-path to your drivers' directory, #2 your WINNT.SIF. 1.copy/extract every drivers to where it should be. eg: XCOPY "C:\UWCD root\$OEM$\$1\Drivers" C:\Drivers or 7za x Drivers_MassStorage.7z -y -oC:\ 2.run the script. OemPnPDriversPath.cmd C:\Drivers "C:\UWCD root\i386\WINNT.SIF" note: 1.pretty your WINNT.SIF, make sure every "=" between key/value pair has space before/after it. eg: OemPreinstall = Yes You can do this with RegExp capable text editor like EmEditor, replace all "^(\s*;?\s*\w+)\s*=\s*" with "\1 = ". 2.do not run this .cmd inside i386, or your WINNT.SIF will be empty, 'cause output WINNT.SIF is on current directory.
-
Guide For Compressed Drivers Unattended Install
idle.newbie replied to serialzs's topic in Device Drivers
This really funny, i read this thread twice from a-z. i CAN'T find anyone make it really work without OemPnPDriversPath. Lucius Snow make it work with OemPnPDriverPath, or working system by click "update driver"(that means HKLM\...\DevicePath is correct by SetDevicePath.exe). turbomcp make it work with HIVE*.inf modified(before burning to disc). serialzs's test works on a LIVE WORKING SYSTEM, i don't think it will work on real setup, only prove DRVZ.exe extracts your driver into correct directory and SetDevicePath.exe writes correct registry. Pyron's method works because it's running before textmode setup(hacked setup), SetDevicePath.exe works great, but it's not for regTweak @T-39, it must done before GUI setup. The first thing we should do, prove SetDevicePath.exe works @T-39 without OemPnPDriversPath. Here's my testing scenario: 1.make sure your winnt.sif does NOT have OemPnPDriversPath, and HIVE*.inf unmodified. 2.other settings in winnt.sif [Unattended] DriverSigningPolicy = Ignore OemPreinstall = Yes [GuiUnattended] DetachedProgram = ".\system32\SetDevicePath.exe" Arguments = "C:\DriverZ" 3.put Pyron's SetDevicePath.exe to $OEM$\$$\system32\ 4.put your device drivers to $OEM$\$1\DriverZ\ 5.cdimage & burn 6.setup with REAL PC **faster testing: use VMWare, and put VMWare's video driver(or more) to $OEM$\$1\DriverZ. DON'T test on VirtualPC. 7.after xp setup, verify your drivers from DeviceManager If that works, we can say SetDevicePath.exe(DevicePath regTweak) works @T-39. Pyron's SetDevicePath.exe is a good tool, but it just does not work @T-39. It's not SetDevicePath's fault, xp setup does not read HKLM\...\DevicePath from registry. OemPnPDriversPath still rocks. use big_qie's MT39(search MSFN) to extract your drivers sfx. or Pyron's method, or turbomcp's hybrid method. if you don't mind batch script, you can try my script in MT39's thread. -
i don't know why it didn't work for you, .js works fine on my disc. Try edited .cmd again on fresh install. FOR is built-in command, FOR /? for detail.
-
code edited. 1.Put it under $OEM$\$Docs\Default User\Start Menu\Programs\Startup, every user will run it once(it kill itself). It maps your OE mailstore to D:\Home\%UserName%\Mail\Outlook Express\ 2.Windows Script 5.6 Documentation i got this document only. .cmd batch version OE_StoreRoot.cmd @ECHO OFF SET HOME=D:\Home MD "%HOME%\%USERNAME%\Mail\Outlook Express\" @REM Retrieve Identities for current user, then find out where OE's Strore Root, and set to HOME FOR /F "skip=4 tokens=5" %%I IN ('REG QUERY "HKCU\Identities" /v "Default User ID"') DO ( REG ADD "HKCU\Identities\%%I\Software\Microsoft\Outlook Express\5.0" /f /v "Store Root" /t REG_EXPAND_SZ /d "%HOME%\%%USERNAME%%\Mail\Outlook Express\" REG ADD "HKCU\Identities\%%I\Software\Microsoft\Outlook Express\5.0" /f /v "NoSplash" /t REG_DWORD /d "1" ) @REM kill itself DEL /F /Q %0
-
OE_MailStore.js var WshShell = WScript.CreateObject("WScript.Shell"); var home = WshShell.ExpandEnvironmentStrings("%HOME%"); if (home == "%HOME%") home="D:\\Home"; var identities = WshShell.regRead("HKCU\\Identities\\Default User ID"); var key = "HKCU\\Identities\\" + identities + "\\Software\\Microsoft\\Outlook Express\\5.0"; WshShell.regWrite(key+"\\Store Root", home + "\\%USERNAME%\\Mail\\Outlook Express\\", "REG_EXPAND_SZ"); WshShell.regWrite(key+"\\NoSplash", 1, "REG_DWORD"); //kill itself WScript.CreateObject("Scripting.FileSystemObject").deleteFile(WScript.ScriptFullName); Put it @startup after user logon.
-
Guide For Compressed Drivers Unattended Install
idle.newbie replied to serialzs's topic in Device Drivers
Driver Signing Compress apps may not that nice, most apps already been compressed, there's no much space to save(it could more worse), and more cost. You have to extract @T-39 or T-12(time & disk space), then setup extracts itself(another time & disk space) and do the setup. -
Guide For Compressed Drivers Unattended Install
idle.newbie replied to serialzs's topic in Device Drivers
i saw many ppl extract 7zip sfx with /Q /R:N, there's no such a argument for 7zip sfx, verify with any 7zip console sfx with any7zsfx.exe -?. @serialzs How you test your drvz? VPC? VMWare? or real box? Pyron's setDevicePath.exe works great on his guide, but it's different @T-39. The setup program didn't refer to HKLM\....\DevicePath, i don't know why, it's been confirmed about 2 weeks ago with my friend's script here - MT39 thread. Testing on VMware with VMWare's video driver, almost the same as turbomcp's post. The Detached.cmd script comes from zippy, it's a script version of setDevicePath.exe. It extracts drivers & $OEM$\$$ & $1 sfx, modifies the regTweak and $winnt$.inf(compiled from winnt.sif by setup). Anyone who interested can test that Detached.cmd, take a look at the resulting log file %SystemDrive%\Detached.log. OemPnPDriversPath still a must have. i still use that Detached.cmd on my disc, tho the OemPnPDriversPath still needed but it does no harm to include that script, i compress all my $OEM$\$$, $1, $Docs, $Progs and extract @T-39 even with OemPreinstall=No(no copy @textmode, everything on disc). -
How to add the int'l input in unattended xp cd?
idle.newbie replied to argon007's topic in Unattended Windows 2000/XP/2003
Ref.chm [RegionalSettings] InputLocale = xxxx:xxxxxxxx InputLocale_DefaultUser = xxxx:xxxxxxxx -
Some articles from Wayne Maples
-
New tool! Run multiple programs from winnt.sif
idle.newbie replied to big_gie's topic in Unattended Windows 2000/XP/2003
@Bilou_Gateux %CD% for current full path, it's built-in environment variable, SET /? for details. @big_qie i don't know why setup didn't refer to HKLM\....\DevicePath. resulting $winnt$.inf [Unattended] OemPnPDriversPath = "DRV;DRV\IntelINF;DRV\Raid" resulting HKLM\....\DevicePath DevicePath REG_EXPAND_SZ %SystemRoot%\INF;%SystemDrive%\DRV;%SystemDrive%\DRV\IntelINF;%SystemDrive%\DRV\Raid -
New tool! Run multiple programs from winnt.sif
idle.newbie replied to big_gie's topic in Unattended Windows 2000/XP/2003
I hate that too, but it's straightforward, edit with Notepad, that's all. If SetDevicePath.exe only manipulates registry, it should not work. Scripts above manipulates both registry & $winnt$.inf. Can't find anything related yet. -
New tool! Run multiple programs from winnt.sif
idle.newbie replied to big_gie's topic in Unattended Windows 2000/XP/2003
Modify $winnt$.inf @T-39 will not work for drivers. I've wrote myself a .cmd script to generate OemPnPDriversPath & DevicePath @T-39, the $winnt$.inf looks okay, and DevicePath looks good(REG_EXPAND_SZ %SystemRoot%\inf;%SystemDrive%\DRV;%SystemDrive%\DRV\IntelINF;%SystemDrive%\DRV\Raid), but setup still won't work with them. On my test, when I occasionally corrupted the $winnt$.inf @T-39, setup will popup a error message for it, I think that means setup rereads $winnt$.inf after T-39, but it still won't install the oem drivers with regTweak or $winnt$.inf modification. Got to find another way. My testing script: i386\WINNT.SIF: [GuiUnattended] DetachedProgram = ".\system32\cmd.exe" Arguments="/Q /C FOR /F %I IN (%SystemRoot%\system32\$winnt$.inf) DO (FOR %J IN (%I$OEM$\Detached.cmd) DO (IF EXIST %J (START /MIN %J)))" $OEM$\Detached.cmd: @ECHO OFF ::change CurrentDirectory to where script is CD /D "%~dp0" ::extracting $$ into SystemRoot .\$$.exe -y -o"%SystemRoot%" .\$1.exe -y -o"%SystemDrive%" ::extracting Intel INF .\DRV\IntelINF.exe -y -o"%SystemRoot%\INF" ::extracting RyanVM SATA/Raid drivers repacked .\DRV\RaidDRV.exe -y -o"%SystemDrive%\DRV" ::extracting drivers sfx .\DRV\DRV_SFX.exe -y -o"%SystemDrive%\DRV" SETLOCAL ENABLEDELAYEDEXPANSION SET STDLOG=%SystemDrive%\Detached.log SET PERCENT=%% SET DevPath=%PERCENT%SystemRoot%PERCENT%\inf SET OemPnPDriversPath=$ ::traverse drivers path CALL :TRAVERSAL %SystemDrive%\DRV ::update registry REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v "DevicePath" /t REG_EXPAND_SZ /d "%DevPath%" /f >NUL 2>>%STDLOG% ::backup original $winnt$.inf MOVE /Y %SystemRoot%\system32\$winnt$.inf %SystemDrive%\$winnt$.inf >NUL 2>>%STDLOG% ::recreate $winnt$.inf ECHO.>%SystemRoot%\system32\$winnt$.inf 2>>%STDLOG% CALL :RECREATE %SystemDrive%\$winnt$.inf %SystemRoot%\system32\$winnt$.inf ::make a dump REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v "DevicePath" >>%STDLOG% TYPE %SystemRoot%\system32\$winnt$.inf >>%STDLOG% EXIT GOTO EOF :TRAVERSAL PUSHD %1 ::FOR %%I IN ("%CD%") DO IF EXIST *.INF ECHO %%~pnI>>%STDLOG% FOR %%I IN ("%CD%") DO IF EXIST *.INF SET DevPath=!DevPath!;%PERCENT%SystemDrive%PERCENT%%%~pnI IF EXIST *.INF SET OemPnPDriversPath=!OemPnPDriversPath!;%CD:~3% FOR /F %%I IN ('DIR /AD /OGN /B') DO ( CALL :TRAVERSAL %CD%\%%I ) POPD GOTO EOF :RECREATE ::%1=Source %2=Destination SET FOUND=NO SET UPDATE=NO FOR /F "tokens=1,2*" %%I IN (%1) DO ( IF "%%J"=="=" ( IF /I "%%I"=="OemPnPDriversPath" ( ECHO OemPnPDriversPath = "%OemPnPDriversPath:~2%">>%2 SET UPDATE=YES ) ELSE ( ECHO %%I %%J %%K>>%2 ) ) ELSE ( IF /I "%%I"=="[Unattended]" ( SET FOUND=YES ) ELSE ( IF NOT "%FOUND%"=="NO" ( IF "%UPDATE%"=="NO" ( ECHO OemPnPDriversPath = "%OemPnPDriversPath:~2%">>%2 SET UPDATE=YES ) SET FOUND=NO ) ) ECHO %%I>>%2 ) ) GOTO EOF :EOF It generates %SystemDrive%\Detached.log, and %SystemDrive%\$winnt$.inf is the original $winnt$.inf inside system32 @T-39. Testing in VMWare with modified vmx_svga.inf, @800x600x32 with corresponding [Display] in winnt.sif, if OemPnPDriversPath/DevicePath works VM @800x600x32, or it will fall down to 640x480x32. -
Disable "Internet Gateway Device Discovery ..."
idle.newbie replied to JoshT's topic in Unattended Windows 2000/XP/2003
[Components] netoc=On [NetOptionalComponents] beacon=0 This will not install beacon. netoc=Off still install beacon. Check [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Oc Manager\Subcomponents] beacon. -
Import ready settings.reg (from WinRAR UI) before silent install, works fine on my box.
-
Right-click New Menu Location?
idle.newbie replied to Denney's topic in Unattended Windows 2000/XP/2003
It's convenient on W2K when I need a temporary text file, just press Alt-F, W, T inside explorer, then I got a scrapbook to copy-and-paste. It's done within a second, no need to hold my mouse still and cautiously click text file. -
$OEM$ directory (and subdirs) won't copy
idle.newbie replied to jslegers's topic in Unattended Windows 2000/XP/2003
Search OemFilesPath inside opk.chm, there's a page to make unattended mui, you can find a directory structure for OemFilesPath. But I cant get it work on unattended cd, maybe it only works on RIS. -
Put your self-destroy .cmd in $OEM$\$Docs\Default User\Start menu\Programs\Startup, and every user will get that tweak. Make sure the reboot timeout in cleanup.cmd is sufficient to load explorer after RunOnceEx. If you search i386\hive*.inf for SmallIcons, you will find the SmallIcons is a REG_DWORD type, tho SmallIcons REG_SZ "yes" works either. And you can use REG ADD inside your .cmd, lesser files. REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons" /v "SmallIcons" /t REG_DWORD /d 1 /f
-
Right-click New Menu Location?
idle.newbie replied to Denney's topic in Unattended Windows 2000/XP/2003
On which key? HKCR\.txt ? HKCR\txtfile? Anyone have a working reg export file?