Jump to content

A Newbie Needs Help


OliverMaltby

Recommended Posts

I've been using nLite and have successfully slipstreamed service pack 2 over my 2002 copy of Windows XP, however I don't seem to be as successful when trying to do the same with various apps. I've created all the necessary folders (e.g. $OEM$) which I got the info from http://unattended.msfn.org/xp/gettingstarted.htm and followed the various guides on the site to try and silent install apps when Windows is installing although this isn't working as I'm only getting copies of the files on my HD when Windows has been fully installed (e.g. C:\Install\MSN\bootstrap.exe and MsnMsgs.msi). My batch file is called "cmdlines.cmd" and contains the following text:

CLS

@echo off

TITLE Windows XP SP2 - Unattended Installation

ECHO.

ECHO Over the next few minutes you will see automated installations

ECHO of various sofware applications, windows updates, and registry

ECHO tweaks being implemented. The computer will restart automatically

ECHO once the whole process has finished!

ECHO Installing .NET Framework v1.1

ECHO Please wait...

start /wait %systemdrive%\install\NetFramework\netfx.msi /qb

ECHO.

ECHO Installing MSN Messenger 6.0.0602 Final

ECHO Please wait...

start /wait %systemdrive%\install\MSN\MsnMsgs.msi /QB

ECHO.

ECHO Installing Windows Media Player 10

ECHO Please wait...

start /wait %systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"

ECHO.

ECHO Installing WinRAR 3.42

ECHO Please wait...

start /wait %systemdrive%\install\Applications\WinRAR\wrar342.exe /s

ECHO.

ECHO Restarting the PC in 1 minute...

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\Drivers

RD /S /Q %systemdrive%\install

EXIT

I'd assume my batch file is at fault but can't seem to work out where I've gone wrong, if someone could help it would be much appreciated.

Thanks - Oliver.

Link to comment
Share on other sites


Could it be a matter of "ECHO" ´s :w00t:

Here is a piece of my main_batch.cmd

CLS
@echo off
ECHO.

ECHO Installing IrfanView 3.95
ECHO Please wait...
start /wait %systemdrive%\Install\IrfanView\Iview395.exe /silent /folder="c:\program\irfanview" /desktop=0 /group=1 /allusers=0 /assoc=1
ECHO.

ECHO Installing IrfanView Plugins
ECHO Please wait...
start /wait %systemdrive%\Install\IrfanView\plugins395.exe /silent
ECHO.

ECHO Installing WinRAR 3.42
ECHO Please wait...
start /wait %systemdrive%\install\WinRAR\winrar342.exe /s
ECHO.

EXIT

And the main_batch.cmd is called from the winnt.sif like this

[GUIRunOnce]
   %systemdrive%\Install\main_batch.cmd

/ SwedenXP B)

Link to comment
Share on other sites

It looks like your install files are getting copied correctly, just that the install processes are not running.

Please post your winnt.sif (MINUS THE PRODUCT KEY!!!!), so that we can see from where your cmdlines.cmd file is being called.

Are you calling it from your winnt.sif? If so, make sure you have the path to cmdlines.cmd correct (i.e. C:\Install\cmdlines.cmd )

Link to comment
Share on other sites

Do you actually call the cmd file, in the winnt.sif script?

I've never touched nor heard of the winnit.sif script so I'd assume not. Could you tell me the location of the file and how I could "call the cmd file"?

Thanks - Oliver.

soooo, we have gotten somewhere.

Ok, for an unattended install you must have a winnt.sif script on the cd, for windows to install....

The winnt.sif file is located in the i386 folder of your windows cd.

You can then call the cmd file from that script.. below is teh code.

[Guirunonce]
%systemdrive%\install\batch.cmd <-- you should have placed your cmd file here

you can refer to the msfn unattended site for info.

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...