Jump to content

batch files not running?


Recommended Posts

Ok, I spent two days reading before i made this post. None of my batch files run after windows completes its install and reboots into windows. I am assuming this is where they should begin to run? They did copy over to this directory C:\Install from the cd. So they are on the hard drive. The are .cmd and not .cmd.txt. When i double click them from the hard drive msdos flashes and then goes away and nothing happens. Here is what my winnt.swf file looks like:

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

Unattendmode = FullUnattended

OemSkipEula=Yes

OemPreinstall = Yes

UnattendSwitch="no"

TargetPath = *

Filesystem = LeaveAlone

OemSkipEula = YES

FactoryMode = YES

WaitForReboot="No"

DriverSigningPolicy = Ignore

OEMPnPDriversPath = "PnPDrvrs\NIC;PnPDrvrs\audio"

[GuiUnattended]

TimeZone = "020"

AdminPassword = *

AutoLogon = Yes

OEMSkipRegional = 1

OEMSkipWelcome = 1

[userData]

FullName = "Your User Name"

OrgName = "Your Company Name"

ComputerName = *

ProductKey=removed

[LicenseFilePrintData]

AutoMode = "PerServer"

AutoUsers = "5"

[Display]

BitsPerPel = 32

XResolution = 1024

YResolution = 768

VRefresh = 85

[branding]

BrandIEUsingUnattended = Yes

IEBrandingFile = install.ins

[Networking]

[identification]

JoinWorkgroup = Workgroup

Home_Page=http://www.squareplanet.com

[Components]

msmsgs=off

msnexplr=off

[GuiRunOnce]

%systemdrive%\install\main_batch.cmd

%systemdrive%\install\hotfixes.cmd

%systemdrive%\install\applications.cmd

This is what my main_batch.cmd looks like:

CLS

@echo off

ECHO.

ECHO Over the next few minutes you will see automated installations

ECHO of various sofware applications, windows updates, and registry

ECHO hacks being implemented. The computer will restart automatically

ECHO once the whole process has finished!

ECHO.

ECHO Installing MSN Messenger 6.1.0144 Final

ECHO Please wait...

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

ECHO.

ECHO Installing DirectX 9.0b

ECHO Please wait...

start /wait %systemdrive%\install\DirectX9b\dx9NTopk.exe

ECHO.

ECHO Installing Windows Media Player 9

ECHO Please wait...

start /wait %systemdrive%\install\WMP9\WMP9_MM2_ENU.exe

ECHO.

ECHO Installing PowerToys

ECHO Please wait...

start /wait %systemdrive%\install\PowerToys\PowertoySetup.exe /s /v/qn

ECHO.

ECHO Installing Microsoft JavaVM - Build 3810

ECHO Please wait...

start /wait %systemdrive%\install\JavaVM\msjavwu.exe /Q:A /R:N

ECHO.

EXIT

What am i doing wrong? I have another issue with resealing the install but i will deal with that after i get this working. I was using winpe and installing across the network but i thought this might be easier. But i am having no luck. Please Help. Thanks In advance. Brian

Link to comment
Share on other sites


Thanks for the quick reply, My unattend file is named winnt.sif. not sure what i was thinking there. And as for the product key i straight up forgot. Thanks for removing it. So any ideas anyone why none of my batch files are running?

Link to comment
Share on other sites

This might have something to do with it:

FactoryMode = YES

I've never heard of this command.

As for when you tested your batch scripts and the window disappeared quickly - this could be because the paths specified in the batch files don't exist.

Link to comment
Share on other sites

This is what ref.chm says about the factorymode line.

[Factory] Installs Windows from a specified configuration set. Required.

Well i took the factorymode line out and this time instead of going straight into windows after the install it came to the welcome screen and ask for my username and if i wanted to register. Anyone got any more ideas. Need help soon. Working on a project. Thanks Brian

Link to comment
Share on other sites

STill no luck. When i get on the computer and go to a cmd promt and run the batch commands i get this message:

C:\INSTALL>¨„C

' ¨„C' is not recognized as an internal or external command, operable program or batch file. Does this help? Please someon help.

Link to comment
Share on other sites

Some help would be great. The files copy over to the computers c: directory, but the batches never run. Here is my current winnt.sif:

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

Unattendmode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

UnattendSwitch=Yes

TargetPath=\WINDOWS

OemSkipEula=YES

WaitForReboot="No"

DriverSigningPolicy=Ignore

OEMPnPDriversPath="PnPDrvrs\NIC;PnPDrvrs\audio"

[GuiUnattended]

TimeZone="020"

AdminPassword=*

OEMSkipRegional=1

OEMSkipWelcome=1

[userData]

FullName="Your User Name"

OrgName="Your Company Name"

ComputerName=*

ProductKey=nope

[Display]

BitsPerPel=32

XResolution=1024

YResolution=768

VRefresh=85

[branding]

BrandIEUsingUnattended=Yes

[Networking]

InstallDefaultComponents=Yes

[identification]

JoinWorkgroup=Workgroup

Home_Page=http://www.squareplanet.com

[Components]

msmsgs=off

msnexplr=off

[GuiRunOnce]

%systemdrive%\install\main_batch.cmd

%systemdrive%\install\hotfixes.cmd

%systemdrive%\install\applications.cmd

Here is my current main_batch.cmd

CLS

@echo off

ECHO.

ECHO Over the next few minutes you will see automated installations

ECHO of various sofware applications, windows updates, and registry

ECHO hacks being implemented. The computer will restart automatically

ECHO once the whole process has finished!

ECHO.

ECHO Installing MSN Messenger 6.1.0144 Final

ECHO Please wait...

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

ECHO.

ECHO Installing DirectX 9.0b

ECHO Please wait...

start /wait %systemdrive%\install\DirectX9b\dx9NTopk.exe

ECHO.

ECHO Installing Windows Media Player 9

ECHO Please wait...

start /wait %systemdrive%\install\WMP9\WMP9_MM2_ENU.exe

ECHO.

ECHO Installing PowerToys

ECHO Please wait...

start /wait %systemdrive%\install\PowerToys\PowertoySetup.exe /s /v/qn

ECHO.

ECHO Installing Microsoft JavaVM - Build 3810

ECHO Please wait...

start /wait %systemdrive%\install\JavaVM\msjavwu.exe /Q:A /R:N

ECHO.

EXIT

SOMEONE PLEASE HELP I HAVE BEEN MESSING WITH THIS FOR A WEEK NOW. Thanks in advance.... B

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