Jump to content

[Help] How to ignore cmdlines.txt ?


Recommended Posts

Hello all,

Like i explained it in this thread i'm trying to make a dual boot with only one OS, XP+SP2, in two modes : regular install and unattended one. I've followed the method explained there.

The second one seems to work for now (only tested in VMware though, not in real with RAID drivers and stuff). However the regular one makes troubles ...

It doesn't copy the contents of $OEM$\$1 (apps and drivers) since i specified the following lines in the winnt.sif :

[unattended]

Unattendmode = DefaultHide

OemPreinstall = NO

Actually i thought i could force in this way not to consider the OEM but that didn't work (the absence of winnt.sif neither by the way). The contents of $OEM$\ (cmdlines.txt, cmdlines.reg and a few BATCH files) got executed though during the installation. But i do not want it for that regular installation ...

How can i do ? Is there any way not to consider the OEM process at all with this dual boot method ?

Thank you :)

Link to comment
Share on other sites


he doesn't want multiple winnt.sif, but just not to use cmdlines.txt in one of his installs.

What you could do, is have CMDLINES.TXT call a batch file that then runs the other batch files. The batch file CMDLINES.TXT runs just checks to see if a file is present (ie $OEM$\$1\oem.txt was copied over, it would check for that file). If present, it runs the other batches, if not, it exits and setup continues.

Link to comment
Share on other sites

Thank you.

I used your method Alanoll.

However i merged my batch files in one not to get lot of window opening during the install (i couldn't use cmdow because it won't copy on the regular install).

Here are my files :

cmdlines.txt

[Commands]"cmdlines.bat"

cmdlines.bat

@echo off

if exist "%systemdrive%\Apps\dotnet\install.exe" goto filefound

goto end

:filefound

echo Installation de Microsoft .NET Framework 1.1

start /wait %systemdrive%\Apps\dotnet\install.exe /q

echo Termine

echo.

echo Installation de Sun Java Runtime Environment 1.4.2.04

start /wait %systemdrive%\Apps\Sun_JRE\j2re.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"

echo Termine

echo.

echo Installation de K-Lite Codec Pack 2.27

start /wait %systemdrive%\Apps\klite\klcodec.exe /verysilent /COMPONENTS="divxdec,divx,divxmpeg4,xviddec,xvid,3ivxdec,3ivx,wmv,vp3,vp6dec,vp6,dvd,huffyuv,msmpeg4,mpeg2el

,mp3audio,wmaaudio,ac3audio,ac3acm,oggvorbis,aac,musepack,voxware,ape,mp3lame"

echo Termine

echo.

echo Installation de WinRAR 3.30

start /wait %systemdrive%\Apps\winrar\wrar330fr.exe /s

start /wait regedit.exe /s "%systemdrive%\Apps\winrar\Settings.reg"

echo Termine

echo.

echo Installation d'Adobe Acrobat Reader 6.01

start /wait %systemdrive%\Apps\acrobat\acrobat.exe -p"-s /v\"/qn\""

start /wait regedit.exe /s "%systemdrive%\Apps\acrobat\Settings.reg"

echo Termine

echo.

echo Personnalisation de Windows

start /wait regedit.exe /s cmdlines.reg

del /f /s /a "%allusersprofile%\Menudm~1\Windows Update.lnk"

del /f /s /a "%allusersprofile%\Menudm~1\Config~1.lnk"

del /f /s /a "%allusersprofile%\Menudm~1\Catalogue Windows.lnk"

del /f /s /a "%allusersprofile%\Menudm~1\Programmes\MSN Explorer.lnk"

del /f /s /a "%allusersprofile%\Menudm~1\Programmes\Windows Messenger.lnk"

RD /S /Q "%allusersprofile%\Menudm~1\Programmes\Java Web Start"

RD /S /Q "%allusersprofile%\Menudm~1\Programmes\K-Lite Codec Pack"

RD /S /Q "%allusersprofile%\Menudm~1\Programmes\PrintMe Internet Printing"

del /f /s /a "%allusersprofile%\Bureau\*.lnk"

del /f /s /a C:\Docume~1\Defaul~1\Menudm~1\Progra~1\assist*.lnk

echo Termine

echo.

goto end

:end

exit

Link to comment
Share on other sites

However i merged my batch files in one not to get lot of window opening during the install (i couldn't use cmdow because it won't copy on the regular install).

Not entirely accurate. You can modify txtsetup.sif to have Windows Setup copy it over like any other XP file, but then you'd have to edit files....and could get complicated.

Atleast your got it working the way you want :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...