Jump to content

Files aren't copying to C drive from OEM folder.


Recommended Posts

I'm new to this, but I have most of the unattended install working. I've got all the basic like serial key, computer name, formatting/converting to NTFS, things like that. However, if I want to run a batch file after installing and copy files to the computer and make registry tweaks these don't work. BTW, I'm using MS Virutal PC 2004 to test my iso's. I have OemPreinstall set to yes. My directory structure is like so...\I386\$OEM$\C\firstrun. Inside the firstrun folder I have the batch file and registry file as well as a couple of folders containing files I want copied over. Am I missing something obvious somewhere in my sif file?

Here is the winnt.sif code:

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

[Unattended]
   UnattendMode=FullUnattended
   Repartition=Yes
   FileSystem=ConvertNTFS
   OemSkipEula=Yes
   OemPreinstall=Yes
   UnattendSwitch=Yes
   TargetPath=\WINDOWS

[GuiUnattended]
   AdminPassword=<removed>
   EncryptedAdminPassword=Yes
   OEMSkipRegional=1
   TimeZone=20
   OemSkipWelcome=1
   AutoLogon=Yes
   AutoLogonCount=1

[UserData]
   ProductKey=<removed>
   FullName="xxxxx"
   OrgName="xxxxx"
   ComputerName=xxxxx

[Components]
   msnexplr=Off
   zonegames=Off
   OEAccess=Off

[URL]
   Home_Page=xxxxx

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=No

[RegionalSettings]
   LanguageGroup=1
   Language=00000409

[IEPopupBlocker]
   AllowedSites=xxxxx

[Branding]
   BrandIEUsingUnattended=Yes

[Proxy]
   Proxy_Enable=0
   Use_Same_Proxy=0

[NetAdapters]
   Adapter1=params.Adapter1

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]
   DNS=No
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=Yes
   DNSServerSearchOrder=<removed>
   WINS=No
   NetBIOSOptions=0

[params.Adapter1]
   INFID=*

[GuiRunOnce]
   %systemdrive%\firstrun\firstrun2.bat

When I run this, it doesn't appear to ever logon one time, because as soon as I manually logon it gives me an error saying it can run the batch file because it isn't there. It isn't there, because the files were not copied over.

Thanks for the help.

Link to comment
Share on other sites


Hey Welcome to MSFN :hello:

Your winnt.sif is okay

When you install from a CD, your $OEM$ has to be parallel to your i386 folder.

When you install by using winnt.exe or winnt32.exe your $OEM$ for has to be inside the i386 folder (like you have now)

EDIT:

a tip:

You are using $OEM$\C\firstrun

Using $OEM$\C is only intersting if you want to copy specific things to specific drives, like for instance: $OEM$\C\firstrun and $OEM$\D\Other_crap. Instead of $OEM$\C you could also use $OEM$\$1 because $1 will copy everything inside to the drive where windows is installed

Edited by erik_demon
Link to comment
Share on other sites

Ah, I see. Thanks for the help. BTW, I got your PM earlier and it was extremely helpful. Sorry for never responding. As you can see, I'm still figuring out some bugs before I get to the custom winnt.sif floppy creation point. :)

Edit:

Thanks for the tip. I actually had $1 to begin with, but then tried C after $1 didn't appear to work. Now that I know the problem I'll go back to that. I probably would have just left it at C so thanks for the reminder.

Edited by zxfiles
Link to comment
Share on other sites

Glad I was able to help :)

about the winnt.sif creation thing,

I updated my method so that it now creats a (simple) winnt.sif

Check it out here

If you want it to work on a floppy disc, select from line 142 to 195, and replace all %CDROM% to A:\

EDIT:

line 142 should be

ECHO;SetupMgrTag >>%CDROM%WINNT.SIF

and line 195 should be

SET answerfile_name=winnt.sif

Edited by erik_demon
Link to comment
Share on other sites

Ok, I wanted to report back with my new findings. Thanks to the information erik_demon provided I was able to get the files to copy over without problem. Great!

However, my batch file doesn't seem to run, but I am inclined to think something else is going on, because I don't think the install is logging on one time like I specified in the sif file. The sif file remains unchanged from the original post above. Here is the contents of the registry file:

regedit /s regtweaks.reg > regtweaks.txt

Something simple. The reg file is located in the same directory as the batch file. As you can see I also had it create a logfile so I can see the result, if it runs.

I can confirm these files get copied during the install, but it doesn't run. Did I mess up somewhere with the automatic logon?

Thanks for the help.

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