MSFN Forum: Batch File And Registry Help - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch File And Registry Help Rate Topic: -----

#1 User is offline   war59312 

  • Will's Blog
  • PipPipPipPipPip
  • Group: Members
  • Posts: 922
  • Joined: 07-June 02

Posted 09 August 2004 - 07:55 PM

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:

Posted Image

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


#2 User is offline   jrzycrim 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 769
  • Joined: 17-March 04

Posted 09 August 2004 - 08:05 PM

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?

#3 User is offline   war59312 

  • Will's Blog
  • PipPipPipPipPip
  • Group: Members
  • Posts: 922
  • Joined: 07-June 02

Posted 09 August 2004 - 08:19 PM

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$

#4 User is offline   jrzycrim 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 769
  • Joined: 17-March 04

Posted 09 August 2004 - 08:22 PM

Quote

[Unattended]UnattendMode=FullUnattended
FileSystem=*
OemSkipEula=Yes
OemPreinstall=No


That should be OemPreinstall=Yes.

That would explain why your files are not being copied over.

#5 User is offline   war59312 

  • Will's Blog
  • PipPipPipPipPip
  • Group: Members
  • Posts: 922
  • Joined: 07-June 02

Posted 09 August 2004 - 08:25 PM

oh whoops...

Thanks a lot.

Should add a reminder to:

http://unattended.ms...ch_commands.htm

#6 User is offline   jrzycrim 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 769
  • Joined: 17-March 04

Posted 09 August 2004 - 08:29 PM

No problem. Feel free to post any other questions.

Good Luck

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy