Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Multi-Boot winnt32.exe install started from inside Windows

- - - - -

  • Please log in to reply
13 replies to this topic

#1
gummy2

gummy2

    Newbie

  • Member
  • 23 posts
  • Joined 17-June 04
I have made a Multi-Boot dvd and allso put a autorun on with AutoPlay Media Studio , but when i try to install one of the os from the autorun it makes a new $WIN_NT$.~BT boot folder so its pointing to the wrong place. As my boot folders are PRO1 , PRO2 and PRO3 and SETUP\XP\Professional\
In AutoPlay Media Studio
File.Run("setup\\XP\\Professional\\I386\\WINNT32.EXE", "", "", SW_SHOWNORMAL, false);

I get this error just after it asks where to install to.
Setup was unable to verify drive c:. Your computer may not have enough memory to examine the drives, or your windows XP CD may contain some corrupted files.

Edited by gummy2, 14 April 2006 - 06:48 AM.



How to remove advertisement from MSFN

#2
The008

The008

    MSFN Curious

  • Member
  • PipPip
  • 124 posts
  • Joined 18-July 05
maybe your forgot to edit one file (SETUPTXT.SIF) to point to the correct install folder.

Posted Image


#3
gummy2

gummy2

    Newbie

  • Member
  • 23 posts
  • Joined 17-June 04
they all work when i boot from cd shell , its when i try and install from my custom Autorun menu made with AutoPlay Media Studio

In AutoPlay Media Studio
File.Run("setup\\XP\\Professional\\I386\\WINNT32.EXE", "", "", SW_SHOWNORMAL, false);

Edited by gummy2, 14 April 2006 - 07:16 AM.


#4
The008

The008

    MSFN Curious

  • Member
  • PipPip
  • 124 posts
  • Joined 18-July 05
ok, maybe the problem is in your autorun, but have you tried install from this winnt32.exe in windows mode? Maybe you'll find the same problem. Try installing from winnt on windows and tell me if the problem still happens

Posted Image


#5
gummy2

gummy2

    Newbie

  • Member
  • 23 posts
  • Joined 17-June 04
Now i have put this in AutoPlay Media Studio this seem to work.
result = File.Run("AutoPlay\\Docs\\pro1.CMD", "", "", SW_SHOWNORMAL, false);
and in the pro1.CMD
CMDOW @ /HID
@echo off
REM +===========================================================+
REM | Finding CDROM driveletter.				|
REM |-----------------------------------------------------------|
SET TAGFILE=\OEM
FOR %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) DO IF EXIST "%%i:%TAGFILE%" set CDDRIVE=%%i:
%CDDRIVE%\setup\XP\Professional\I386\WINNT32.EXE /unattend30:d:\setup\XP\Professional\I386\ANSWER_FILE.TXT
REM +===========================================================+
REM | Copying over txtsetup.sif to set the paths right.		|
REM |-----------------------------------------------------------|
XCOPY /E /I /Q /Y /R %CDDRIVE%\PRO1\TXTSETUP.SIF %SYSTEMDRIVE%\$WIN_NT$.~BT
XCOPY /E /I /Q /Y /R %CDDRIVE%\PRO1\TXTSETUP.SIF %SYSTEMDRIVE%\
RD /S /Q "%SYSTEMDRIVE%\SYSTEM32"
EXIT
I was thinking something like this but i am unsure if it would work
%CDDRIVE%\setup\XP\Professional\I386\WINNT32.EXE /m:d:\PRO1 /unattend:d:\setup\XP\Professional\I386\ANSWER_FILE.TXT

Edited by gummy2, 14 April 2006 - 07:04 AM.


#6
The008

The008

    MSFN Curious

  • Member
  • PipPip
  • 124 posts
  • Joined 18-July 05
No, if you rename your ANSWER_FILE.TXT to WINNT.SIF in the same i386 directory, it would solve your problem. The autorun problem maybe already solved, but I still want to know if you tested installing from winnt32.exe in another Windows OS, 'cause if that old problem still remains, you have ONLY to change a little thing in your TXTSETUP.SIF and you can use directly your winnt32 or boot sector to install Windows, with no problem nor needing to use BAT files.

I usually change the TXTSETUP.SIF to point to the correct i386 folder:

SetupSourcePath = "\ROOT\XPPC\"

>>I'm telling setup to look for an i386 folder inside the %CD%\ROOT\XPPC folder, then I don't need to use any BAT file. And my Answer file is named WINNT.SIF, so I can just click in winnt32.exe and install the windows unattended, or I can boot and it would install unattended too.

Posted Image


#7
gummy2

gummy2

    Newbie

  • Member
  • 23 posts
  • Joined 17-June 04
On my autorun I have options to make a ISO of each os on my Multi dvd
so for this to work i need to keep the TXTSETUP.SIF to SetupSourcePath = "\" in setup\XP\Professional\I386
so when it makes the iso of the os its pointing to the right place

but in my boot sector pro1 my TXTSETUP.SIF SetupSourcePath = "\SETUP\XP\Professional\"

Now when i install from with in windows useing winnt32.exe it makes a new $WIN_NT$.~BT
thats why i made the bat file to copy over my TXTSETUP.SIF from my boot sector pro1 so it points to the right paths

Edited by gummy2, 14 April 2006 - 02:35 PM.


#8
The008

The008

    MSFN Curious

  • Member
  • PipPip
  • 124 posts
  • Joined 18-July 05
ah, Ok, now I understood why you wanted to keep the TXTSETUP.SIF original. I didn't know this function in your autorun. I had some problems with my CD 'cause I only changed the TXTSETUP in the boot folder, so when I tried to install from Windows I got Copy errors, so I thought your problem should be the same. Ok, I think your bat file is the soluction, but you may check the WINNT.SIF, 'cause you don't need to use the command-line to select the ANSWER_FILE.TXT if you can only copy the WINNT.SIF to the correct folder.
There's a AutoIT script-based tool (I think it's SetupXP) that prepares a Windows Installation from WinPE: it copies the files to the C: (I think it creates the $WIN_NT$ folders) and start the installation. You may take a look at this tool. It's interesting.

Posted Image


#9
The008

The008

    MSFN Curious

  • Member
  • PipPip
  • 124 posts
  • Joined 18-July 05
hey, can you tell how did you make your Autorun to create ISO images directly from CD? There's a guy asking this in http://www.msfn.org/...showtopic=72488

Posted Image


#10
qwerty009

qwerty009

    Newbie

  • Member
  • 12 posts
  • Joined 18-December 04
Hi i'm having the exact same problem here and i'm going to try your cmd file but there is a line i dont understand: /unattend30:d:\setup\XP\Professional\I386\ANSWER_FILE.TXT

Whats it for? and what is ANSWER_FILE.TXT?
Hope you can help me out.

#11
gummy2

gummy2

    Newbie

  • Member
  • 23 posts
  • Joined 17-June 04
ANSWER_FILE.TXT is just like the winnt.sif so your install can be unattended

This line is the argument/Switch: /unattend30:d:\setup\XP\Professional\I386\ANSWER_FILE.TXT

/unattend, no user input is required

30:is the number of seconds between the time that Setup finishes copying the files and when it restarts your computer

where ANSWER_FILE.TXT is d:\setup\XP\Professional\I386\ANSWER_FILE.TXT

#12
qwerty009

qwerty009

    Newbie

  • Member
  • 12 posts
  • Joined 18-December 04
Can there be anything like %CDROM% used besides d:\ ? I'st just d: aint cdrom drive in any PC.

#13
minutka15

minutka15

    Newbie

  • Member
  • 11 posts
  • Joined 16-May 08

ANSWER_FILE.TXT is just like the winnt.sif so your install can be unattended

This line is the argument/Switch: /unattend30:d:\setup\XP\Professional\I386\ANSWER_FILE.TXT

/unattend, no user input is required

30:is the number of seconds between the time that Setup finishes copying the files and when it restarts your computer

where ANSWER_FILE.TXT is d:\setup\XP\Professional\I386\ANSWER_FILE.TXT

try this one in ams, it's work

function appPathOriginal() 
 
	local cdPath = ""; 
 	local findMarker = "SFXSOURCE:"; 
 	local cmdArgs = ""; 
 
 	if (Table.Count(_CommandLineArgs) > 0) then 
 		for i = 1, Table.Count(_CommandLineArgs) do 
 			if (String.Find(_CommandLineArgs[i], findMarker) > 0) then 
 				cmdArgs = _CommandLineArgs[i]; 
 				break; 
 			end 
 		end 
 	end 
 
 	if (cmdArgs ~= "") then 
 		if (String.Find(cmdArgs, findMarker) == 1) then 
 			local fullPath = String.Replace(cmdArgs, findMarker, "", true); 
 			local tblFullPath = String.SplitPath(fullPath); 
 			cd_Path = tblFullPath.Drive .. tblFullPath.Folder; 
 		end 
 	else 
 		cd_Path = _SourceFolder .. "\\"; 
 	end 
 	return cd_Path; 
 end
 
sPath = appPathOriginal();
File.Run(sPath.."\\I386\\WINNT32.EXE", "", "", SW_SHOWNORMAL, false);


#14
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,802 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
Nice way to revive a 5.5 year old thread!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN