Jump to content

Batch File And Registry Help


Recommended Posts

Hey,

Well this is my first time doing this.

I created the \$OEM$ folder and added cmdlines.cmd and regtweaks.reg in that folder. Within $OEM$ is $1 and within $1 is install which has apply_reg_tweaks.cmd and RegTweaks.reg. Also under install is my NetFramework folder with .net 1.1.

WINNT.sif has:

[GuiRunOnce]

%systemdrive%\install\apply_reg_tweaks.cmd

Here is my cmdlines.cmd:

[COMMANDS]

"REGEDIT /S regtweaks.reg"

Here is my apply_reg_tweaks.cmd:

@echo off

TITLE Applying Tweaks And Appz

ECHO.

ECHO Applying Registry Tweaks

REGEDIT /S %systemdrive%\install\RegTweaks.reg

ECHO.

ECHO Installing .NET FrameWork 1.1

ECHO.

ECHO Please Wait

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

ECHO.

ECHO Done Applying Tweaks And Appz

ECHO.

PAUSE

EXIT

Well after windows is installed and login for the first time I get this error:

damn1.png

I look in c: which is were windows is installed. Only partion and hard drive mind you. And there is no install folder at all. So not copying.

So whats the problem? Any help would be great.

Thanks a lot,

Will

Link to comment
Share on other sites


Hello, war59312,

First, post your entire winnt.sif. Use code tags when you post it; makes it easier to read:

[code]
text here
[ /code]

Don't put the space in the end code tag.

Second, cmdlines.cmd should be cmdlines.txt

Third, where exactly did you place your $OEM$ folder?

Link to comment
Share on other sites

Hey,

Thanks for your help. Will do.

WINNT.SIF

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"
   AutomaticUpdates="Yes"

[Unattended]
   UnattendMode=FullUnattended
   FileSystem=*
   OemSkipEula=Yes
   OemPreinstall=No
   UnattendSwitch=yes
   TargetPath=\WINNT
   Repartition=No
   WaitForReboot=No

[GuiUnattended]
   AdminPassword=
   EncryptedAdminPassword=Yes
   OEMSkipRegional=1
   TimeZone=35
   OemSkipWelcome=1
   AutoLogon=Yes
   AutoLogonCount=1

[UserData]
   ProductID=
   FullName=""
   OrgName=""
   ComputerName=*

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=85

[TapiLocation]
   CountryCode=1
   AreaCode=

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

[Components]
   msmsgs=off
   msnexplr=off
   zonegames=off

[Shell]
   CustomDefaultThemeFile = "%WinDir%\Resources\Themes\Windows Classic.theme"
   DefaultStartPanelOff = Yes
   DefaultThemesOff = Yes

[WindowsFirewall]
   Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
   Mode = 0

[IEPopupBlocker]
   AllowedSites=
   BlockPopups=No
   FilterLevel=Medium
   ShowInformationBar=Yes

[GuiRunOnce]
   %systemdrive%\install\apply_reg_tweaks.cmd

cmdlines.txt

[COMMANDS]
"REGEDIT /S regtweaks.reg"

apply_reg_tweaks.cmd

@echo off
TITLE Applying Tweaks And Appz

ECHO.
ECHO Applying Registry Tweaks
REGEDIT /S %systemdrive%\install\RegTweaks.reg
ECHO.
ECHO Installing .NET FrameWork 1.1
ECHO.
ECHO Please Wait
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb
ECHO.
ECHO Done Applying Tweaks And Appz
ECHO.

PAUSE
EXIT

And yea I ment cmdlines.txt. Did not mean to say .cmd.

The $OEM$ is like F:\$OEM$

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