Jump to content

Problem with winnt32.exe from Bartpe


krismark

Recommended Posts

Hi,

I am having Trouble when I run run My install.bat

Here's the setup

Boot from Bart PE

login to image server

map \\computername\share as I:

from run command i:\Partpe.bat which contains:-

DISKPART /s diskpartcfg.txt

FORMAT C: /fs:ntfs /q /v:Winxp /y

FORMAT D: /fs:fat32 /q /v:Data /y

diskpartcfg.txt

select disk 0

clean

create partition primary size=60000

select partition 1

assign letter=c

active

create partition extended

create partition logical

assign letter=d

exit

This works fine.

Then I run unattend.bat

@echo off

cls

:: Set environmental variables

set AnswerFile=i:\unattend.txt

set SetupFiles=i:\i386

%SetupFiles%\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /syspart:c: /tempdrive:d:

and get the error message:-

The specified script file (I:\unattend.txt) is inaccessible or invalid

I have double checked all paths, the unattend.txt works from a network boot floppy.

Have I got the winnt.exe syntax wrong ?

Any Help Appreciated

Regards

Krismark

Link to comment
Share on other sites


In order to fix this issue you need to re do the unattended file, the problem the problem is in the variables used in the guiRunOnce or which ever you use. So what you cold try is to copy the batch files specified to the B: ramdrive, and run them from there. hth

Link to comment
Share on other sites

No, If you use winnt32.exe from inside PE it will pass that phase as for the RamDisk, So you could use it to copy all the batches to a drive after running diskpart. I had so much trouble with this I decided to do a straight clean install and jsut copy the files over. What you need to do is research when the sections of the Unattended.txt get copied over...

Link to comment
Share on other sites

the problem is sure from the command0 : systemDrive is not understood : you've to set c:\install\run.cmd instead of %systemDrive%\Install\Run.cmd !

another probleme is that in fact winnt32 don't copy the $oem$ folder ???!!!

---argggggh :]

Link to comment
Share on other sites

@!krismark

This problem is because you use incorrect settings for the /tempdrive parameter. The drive used with tempdrive must match that used with syspart, so your script should look like this:

@echo off
cls
:: Set environmental variables
set AnswerFile=i:\unattend.txt
set SetupFiles=i:\i386
%SetupFiles%\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /syspart:c: /tempdrive:c:

piro

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