Jump to content

runonce installs


Recommended Posts

I seem to be having a few problems with the runonce command.

I copied over my files into the $OEM$\1$\install$ directory and assumed both these files got copied over to

c:\install

during installation, so under runonce i had the command

[GuiRunOnce]

c:\install\batch_file.cmd

but on first boot i receive an error message saying unable to find batch_file.cmd.

did i read the documentation wrong and the files are not copied over?

im sure im missing something simple, help please!!!!!!

Link to comment
Share on other sites


the problem is the files are just not copied over [this is windows2000 btw]

i will try and go into more detail see if you guys can pick out the problem

my file structure is as follows

i386

$OEM$

$1

install -> batch_file.cmd, file.exe

my winnt.sif has the following line

[GuiRunOnce]

c:\install\batch_file.cmd

and my batch file is as follows

copy "c:\install\file.exe" "c:\documents and settings\all users\desktop"

now on first boot i receive the error "batch_file.cmd cannot be found" and it appears no files from my install directory are copied over to c:\install.

Link to comment
Share on other sites

indeed it is ill paste my full winnt.sif

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

[Unattended]
   UnattendMode=FullUnattended
   Repartition=Yes
   OemSkipEula=Yes
   OemPreinstall=Yes
   DriverSigningPolicy=Ignore
   KeyboardLayout="United Kingdom"

[GuiUnattended]
   AdminPassword=******************
   AutoLogon=Yes
   AutoLogonCount=1
   OEMSkipRegional=1
   TimeZone=85
   OemSkipWelcome=1

[UserData]
   FullName="Rossington All Saints"
   OrgName=RAS
   ComputerName=*
   ProductID="********************"

[TapiLocation]
   CountryCode=44

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

[GuiRunOnce]
   c:\install\batch_file.cmd

Link to comment
Share on other sites

Hey i'm not sure if this is true for you, but i realise for my case i need to name the batch file under a 8.3 format like XXXXXXXX.XXX instead of long XXXXXXXXXXXXXXXXXXXXXX.XXX. If i name the long way, windows can't find the file.

Link to comment
Share on other sites

  • 2 weeks later...

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