MSFN Forum: SOLVED: drivers from CD - MSFN Forum

Jump to content


  • 24 Pages +
  • « First
  • 8
  • 9
  • 10
  • 11
  • 12
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

SOLVED: drivers from CD possible even without winnt.sif! Rate Topic: ***** 1 Votes

#181 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 19 September 2004 - 02:08 PM

my files, according to pyrons updated instructions are as follows...
setup.exe gets renamed to setupold.exe, setuporg.exe gets renamed to setup.exe - both exist in system32, so i take it the rename worked...from your reply, i take it you are not using the updated files.


#182 User is offline   bitmonster 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 29-March 04

Posted 19 September 2004 - 02:12 PM

evilvoice, on Sep 19 2004, 02:08 PM, said:

my files, according to pyrons updated instructions are as follows...
setup.exe gets renamed to setupold.exe, setuporg.exe gets renamed to setup.exe - both exist in system32, so i take it the rename worked...from your reply, i take it you are not using the updated files.

No. I use the new one (from the updated guide). Eventhough I don't think Pyron has changed them in the last pair of days, I will try an install in the next pair of hours with the files I can currently download.

#183 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 19 September 2004 - 02:16 PM

should the file be renamed to setup.old? also, i know i do this, but are you using the new presetup.cmd or one that you have customized, id hate to think that it has something to do with the cmd file, but thatd be the easiest fix.

#184 User is offline   bitmonster 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 29-March 04

Posted 19 September 2004 - 06:19 PM

I just re-tested it with new downloaded files from page 1 and everything still works.

Yes, I have modified my presetup.cmd and the renaming should lead to a setupold.exe and not a setup.old (was just a typo).

Here is my presetup.cmd, but keep in mind I also use some modified pathes and do other things there.
REM +=======================================================+
REM | Finding CDROM driveletter                             |
REM +=======================================================+
set tagfile=\WIN51
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:


REM +=======================================================+
REM | We should be already in system32, this is just to be  |
REM | sure                                                  |
REM +=======================================================+
%SystemDrive%
CD %SystemRoot%\system32


REM +=======================================================+
REM | Trick Windows into identifying the original setup.exe |
REM | deleting the setup.exe will not work, just rename it  |
REM +=======================================================+
if exist setup.exe ren setup.exe setupold.exe
if exist setupORG.exe ren setupORG.exe setup.exe


REM +=======================================================+
REM | Unpack the drivers                                    |
REM +=======================================================+
MKDIR "%SystemDrive%\Install\Drivers"
FOR %%I IN (%CDDRIVE%\$OEM$\Drivers\*.7z) DO "%CDDRIVE%\$OEM$\Bin\7za.exe" x "%%I" -y -aoa -o"%SystemDrive%\Install\Drivers"


REM +=======================================================+
REM | Copy uncompressed driver-dirs                         |
REM +=======================================================+
FOR /D %%I IN (%CDDRIVE%\$OEM$\Drivers\*) DO XCOPY "%%I" "%SystemDrive%\Install\Drivers\%%~nxI" /S /I /E /C /H /R /Y


REM +=======================================================+
REM | Scanning for driverdirectories                        |
REM +=======================================================+
%CDDRIVE%\$OEM$\Bin\SetDevicePath.exe %SystemDrive%\Install\Drivers


REM +=======================================================+
REM | Enable installation of unsigned drivers               |
REM +=======================================================+
start %CDDRIVE%\$OEM$\Bin\WatchDriverSigningPolicy.exe


REM +=======================================================+
REM | Finally start the installation with the originally    |
REM | given parameters                                      |
REM +=======================================================+
start /WAIT setup.exe %1 %2 %3 %4

But the general approach is the same as Pyron's original presetup.cmd.

I don't think, I'm the only person where everythings works fine. Why are no other people reporting errors or success stories? This thing is so neat and fine that everybody should use it.

I hope this is not limited to the german XP (as Pyron and I are most likely only using a german version).

So it might be helpful if other people also try it out and report their findings.

#185 User is offline   edmoncu 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 28-April 04

Posted 19 September 2004 - 07:14 PM

anyway, im using pyron's method as well, plus a combination of bashrat's (notably mass storage drivers). i've recompressed all the drivers (even all bashrat's collections) under the $OEM$ to an SFX-compressed 7Zip archive. it works fine so far. all drivers were installed as expected.

#186 User is offline   DisabledTrucker 

  • The truck or you is disabled?
  • PipPip
  • Group: Members
  • Posts: 274
  • Joined: 02-July 04

  Posted 19 September 2004 - 11:59 PM

Not sure if this is the correct place to ask this but this seems to be the closest to what my question pertains to, so here goes.

I have in my UXPCD folder structure as:
$OEM$\Install

In this install folder, I compressed the entire Plus! for XP cd to PLUS!.7z.

I want to extract it during RunOnceEx.cmd which I am calling from WinNT.sif under:
[GuiRunOnce]
Command0=RunOnceEx.cmd

also in my WinNT.sif I have:
[GuiUnattended]
DetachedProgram="%SystemDrive%\PLUS!\MICROSOFT PLUS! FOR WINDOWS XP.MSI"

In my RunOnceEx.cmd I have this:
cmdow @ /HID
@echo off

set tagfile=\WIN51
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 CDROM=%%i:

SET OEMPATH=%CDROM%\$OEM$
SET OEMINSTALL=%CDROM%\$OEM$\$1\Install

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "7-Zip" /f
REG ADD %KEY%\001 /V 1 /D "%OEMINSTALL%\7Zip.exe -y /q:n /r:n" /f

REG ADD %KEY%\002 /VE /D "PLUS!" /f
REG ADD %KEY%\002 /V 1 /D "7za x -y -aoa -o%systemdrive%\Plus! %OEMINSTALL%\Plus!.7z" /f
REG ADD %KEY%\002 /V 2 /D "%SystemDrive%\Plus!\MICROSOFT PLUS! FOR WINDOWS XP.MSI /qb" /f

My question is will this work to extract the Plus!.exe to C:\Plus! and install it from there?
I should also mention that I have also put the 7za.exe in my i386 folder and txtsetup.inf entries in as well to extract it so it will be ready when I need it, though I have considered just taking the one I have in my \Program Files\7zip folder and placing that one directly into $OEM$\$$\System32 for sake of simplicity. Which is the best way to do this?
Also, one last question, I am curious if I still need to do all the other instructions listed here for this to work or not, since I am just wanting to call all of these instructions from my RunOnceEx.cmd file? This last question is becuase I don't fully understand what to do here as it's not really all to clear to me, my single brain cell is frying as I type this.
I ask this because I have yet to test it, and want to be sure I have the syntax correct before I add other programs to the list. FWIW, I am also including the RunOnceEx.cmd file for reference below.

*EDITED Typos and an addition below*

I forgot to mention, I also added this to my TXTSETUP.SIF file, but I am unsure about the Drvz.exe = 1,,,,,,,2,0,0 because I don't have this file or know where to obtain it.
[SourceDisksFiles]
7za.exe = 1,,,,,,,2,0,0
Drvz.exe = 1,,,,,,,2,0,0
DevPath.exe = 1,,,,,,,2,0,0

Do I need anything else in here as well?

Attached File(s)


This post has been edited by DisabledTrucker: 20 September 2004 - 01:00 AM


#187 User is offline   Pyron 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 04-December 03

Posted 20 September 2004 - 02:16 AM

@DisabledTrucker:
This thread is mainly about unattended driver installations, if you just want to extract the 7z-archive with your RunonceEx.cmd, you don't need anything from this thread, it should work like you described it. The Drvz.exe is from another thread about unattended driver installation, again not needed if you just want to extract that archive. (you can leave DevPath.exe out as well)

@all:
I am now into investigating that svcpack.inf issue. (Still having problems getting that stuff to work with an unmodified XP CD though... ;))

--
Pyron

#188 User is offline   millennium_bug 

  • Group: Members
  • Posts: 2
  • Joined: 19-September 04

Posted 20 September 2004 - 02:24 AM

Anyone try to do it this way?

(step 1) compress the new driver .infs in the i386 directory so they are ".in_" and extract to the Windows\inf folder via txtsetup.sif...

(step2) and then compress the rest of the files into cabs (maybe multiple cabs cause some of the filenames are the same w/ different filesizes...) and then have those cabs copy to the Windows\Driver Cache\i386

I noticed that with service pack 2, Microsoft created a file called sp2.cab that resides in the Windows\Driver Cache\i386 (where the big drivers.cab is). I searched in the registry for sp2.cab, but it didn't find anything...What I think is that Windows automatically searches through the Driver Cache\i386 for all cabs and plucks the files for the drivers...




Take the mass storage drivers as an example...

Get all the .inf's and use compress.exe to turn them into ".in_".......place those in the i386 install folder and then add those .in_/.inf names to the txtsetup.sif so they extract to the %systemroot%\inf folder.

Then take the remaining files (.sys, .hlp, .exe, .dll, .cat, etc) and add them to a .cab like MassStorage.cab and then use txtsetup.sif to copy it to the %systemroot%\Driver Cache\i386 folder.

What I "hope" happens is Windows will find the inf for the driver in the Windows\inf and then consult EVERYTHING in the Windows\Driver Cache\i386 and then pluck the files it needs.



I haven't done this yet, but hopefully it works :) -- btw, if it does, it might be better than the other methods of integrating the drivers :)

One thing someone can do, is analyze how they added the drivers in the service pack 2 by looking at that 266mb network install file to see how it was done...I'm not sure, but I think my method might work...

#189 User is offline   DisabledTrucker 

  • The truck or you is disabled?
  • PipPip
  • Group: Members
  • Posts: 274
  • Joined: 02-July 04

Posted 20 September 2004 - 04:35 AM

Pyron, on Sep 20 2004, 04:16 AM, said:

@DisabledTrucker:
This thread is mainly about unattended driver installations, if you just want to extract the 7z-archive with your RunonceEx.cmd, you don't need anything from this thread, it should work like you described it. The Drvz.exe is from another thread about unattended driver installation, again not needed if you just want to extract that archive. (you can leave DevPath.exe out as well)
*edited*

I realize it was about unattended drivers, but it also kinda fit what I was looking for as well, mostly because I will be using this same thing to install some of my drivers with, which was the reasoning behind my going with the file which give me the most headache. I was just trying to figure out if I was doing it all right or not, and if not what I needed to change so it will work correctly. I plan on using a couple of Bâshrat the Sneaky's driver packs into this as well.

#190 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 20 September 2004 - 06:32 AM

@Pyron, thanks for looking into it...I normally know what I am doing, but there is that chance that something gets overlooked...like I had a svcpack issue, and it was ALL because I didnt update dosnet.inf...but that was before sp2 came out, now I have steps I go through...so thanks again for looking at it...

#191 User is offline   DisabledTrucker 

  • The truck or you is disabled?
  • PipPip
  • Group: Members
  • Posts: 274
  • Joined: 02-July 04

Posted 20 September 2004 - 11:13 PM

millennium_bug, on Sep 20 2004, 04:24 AM, said:

Anyone try to do it this way?

(step 1) compress the new driver .infs in the i386 directory so they are ".in_" and extract to the Windows\inf folder via txtsetup.sif...

(step2) and then compress the rest of the files into cabs (maybe multiple cabs cause some of the filenames are the same w/ different filesizes...) and then have those cabs copy to the Windows\Driver Cache\i386

I noticed that with service pack 2, Microsoft created a file called sp2.cab that resides in the Windows\Driver Cache\i386 (where the big drivers.cab is).  I searched in the registry for sp2.cab, but it didn't find anything...What I think is that Windows automatically searches through the Driver Cache\i386 for all cabs and plucks the files for the drivers...

*Edited For Content*

I haven't done this yet, but hopefully it works :) -- btw, if it does, it might be better than the other methods of integrating the drivers :)

One thing someone can do, is analyze how they added the drivers in the service pack 2 by looking at that 266mb network install file to see how it was done...I'm not sure, but I think my method might work...

I have been working on that way for a while now, but I don't seem to be having any luck with doing it that way, when I get it done, I hope to make it universal so anyone can use it, in a XML file or something which will work to incoporate all the drivers into the cabs and put them in i386 with all the required information placed in the inf's, registry, etc.
The problem I am having is being able to find all the correct places to call for everything when it's needed to be installed. It will leave the folder structure of the CD alone, with everything incorporated into the i386 folder just as M$ does everything. But would add any updates to the O/S there as well.

Once I figure out where everything is being called from, I will be able to takle this better, right now, with my seizure disorder and what's left of my single brain cell, I am having problems with concentrating on what I am doing long enough to get this working in a more timely fashion. I hope to have this working 100% by the time "Longhorn" is released at the latest. I realize that XPCreate comes close to what this will acomplish, but what I want to do goes beyond what is being done in XPCreate, because there wont be more than two or three extra folders to hold svcpack, txtmode, and hotfixes. Plus you will be able to .cab all your pic files for use as wallpapers, theme your desktop, and do basically everything that people want to be able to do here, all within the i386 folder structure which is already available. Such as add programs, drivers, etc Right now I have 160GB of HDD space being used to decypher all of this as I am trying to get through about 20 different methods of doing each thing.

Yea, it's easy to add wallpaper, all you need to do is cab your pic files place them into i386 and add their entries in txtsetup.inf as they are done with say bliss.jpg for example, then add the entries in the other file as well, which will rename them to their correct names, (cant remember if this is also done in txtsetup.inf or what file it's actually done in, but it's done in one of the files I was looking at in the i386 folder.) (Such as REDMOON ==> Red Moon Desert.) This is also the way I do my theme files as well.

Anyway, I have hogged this thread long enough on this subject, but those are some of what I have been working on.

#192 User is offline   bilemke 

  • Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 08-December 03

Posted 20 September 2004 - 11:22 PM

All the infs would need to be modifed to look for the files in the corect place similair to the ones ms includes in the inf folder. The ones most commonly downloaded from any manufacturer tend to refer to their own source file locations.

#193 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

Posted 21 September 2004 - 09:37 AM

@DisabledTrucker

here is the link for the new guide...
the DRVZ.EXE doesn't working im so SORRY for that...
but im sure this new guide works 100%... :thumbup

heres the link


-=[serialzs]=-

#194 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 23 September 2004 - 06:51 AM

ok, think i solved the svcpack issue...you must use setup.exe -newsetup %1 %2 %3 %4 (or whatever) and svcpack.inf will run...or at least it runs my cmd file right now...gonna test with all the hotfixes in a minute.

EDIT: Verified...in presetup.cmd make sure you add -newsetup after setup.exe and svcpack.inf will run...maybe pyron will autoupdate his presetup.cmd for all those who will download it in the future...

#195 User is offline   bitmonster 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 29-March 04

Posted 23 September 2004 - 09:45 AM

I just verified, that the presetup.cmd from Pyron already gets the "-newsetup" parameter correctly. So we should find out, why evilvoice's batch is not working, before someone calls setup.exe with a "-newsetup -newsetup" parameter.

One easy way to find out if the batch receives the parameters correctly is to write them to a file like this:
echo %0>c:\test.txt
echo %1>>c:\test.txt
echo %2>>c:\test.txt
echo %3>>c:\test.txt
echo %4>>c:\test.txt
echo %5>>c:\test.txt
echo %6>>c:\test.txt
echo %7>>c:\test.txt
echo %8>>c:\test.txt
echo %9>>c:\test.txt

Just put these lines at the beginning of the presetup.cmd and inspect the C:\test.txt file after the installation.

#196 User is offline   Pyron 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 04-December 03

Posted 23 September 2004 - 10:06 AM

Ok, now I am officially confused.

One of the new additions to my setup.exe was that the parameters given to it are carried over to the presetup.cmd script, therefore that
setup.exe %1 %2 %3 %4
line.
Some of you may remember that I use two scripts in my own setup. I start cmdlines.cmd on the CD for easier testing in a VM and forgot that the parameters are not automatically carried over to the next script, therefore I had to change my last line in presetup.cmd to
call cmdlines.cmd %1 %2 %3 %4
instead of just
call cmdlines.cmd

@evilvoice: Are you, by coincidence, using two scripts? (or maybe even an older setup.exe which doesn't get the parameters?) If in doubt, try bitmonster's method to determine if setup.exe gets the right parameters (directly in presetup.cmd).

--
Pyron

#197 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 23 September 2004 - 12:00 PM

no 2 scripts...and after being told by bitmonster that it works on his, I redownloaded setup.ex_...is there a fileversion I can get to compare and make sure? Date modified is the same from the setup.ex_ that I just downloaded and the one Ive been running.

EDIT: ok, using bitmonsters post about how to test setup.exe, this is my test.txt output...

presetup.cmd
-newsetup
ECHO is OFF
ECHO is OFF
ECHO is OFF
ECHO is OFF
ECHO is OFF
ECHO is OFF
ECHO is OFF
ECHO is OFF


ya know, looking at this code...I have a question...presetup.cmd shouldnt be the first variable...-newsetup shouldbe...the way its doing it now is this

setup.exe is set with %1 %2 %3 %4

so setup.exe would run like this..."setup.exe presetup.cmd -newsetup" so maybe we should instead of starting at %1, maybe start at %2,..moreover, this makes me wonder how the hell do you guys have it working on yours?

#198 User is offline   Pyron 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 04-December 03

Posted 23 September 2004 - 03:46 PM

I have never had this before.... "presetup.cmd" as first parameter is definately wrong here and looking at the source I have simply no explanation for that effect. But I changed some string operations, maybe some hidden bug there. I attached the new version, please try it.

--
Pyron

Attached File(s)

  • Attached File  setup.ex_ (1.72K)
    Number of downloads: 36


#199 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 23 September 2004 - 03:50 PM

hmm, ya know, in rethinking...%0 is presetup.cmd, not %1, %1 is -newsetup...I have no idea why its not passing to setup.exe...is it getting lost in my presetup.cmd...I combined this method with serialzs updated guide for compressed drivers...

#200 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 23 September 2004 - 04:55 PM

tested new setup.ex_ and from what I can see, it installs in vm...so I have no idea what it was...might have been a bad iso i was working with...

Share this topic:


  • 24 Pages +
  • « First
  • 8
  • 9
  • 10
  • 11
  • 12
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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