MSFN Forum: SOLVED: drivers from CD - MSFN Forum

Jump to content



  • 24 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • 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

#51 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 21 May 2004 - 02:43 AM

edmoncu, on May 21 2004, 10:33 AM, said:

thanks Alanoll. :)

btw, just a note, sfx-winrar archive doesnt work at being uncompressed at this part of the installation. though sfx-winrar (compressed using windows console mode) will work, as well as sfx-zip archive compressed via 7zip.

Do you need any switches to extract a 7zip sfx archive? I guess no?


#52 User is offline   edmoncu 

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

Posted 21 May 2004 - 03:17 AM

btw, just to be sure, i had to supply the switches when extracting the 7zip-based sfx archive. (calling it -- the extraction from the presetup.cmd file). btw, this approach worked though :)

however, in the case of the winrar-sfx (wincon-mode) archive, no additional switches were required.

#53 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 21 May 2004 - 03:29 AM

edmoncu, on May 21 2004, 11:17 AM, said:

btw, just to be sure, i had to supply the switches when extracting the 7zip-based sfx archive. (calling it -- the extraction from the presetup.cmd file). btw, this approach worked though :)

however, in the case of the winrar-sfx (wincon-mode) archive, no additional switches were required.

I'm asking WHAT switches you used...

#54 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 21 May 2004 - 06:26 AM

How does one tell a 7zip SFX archive to extract automatically to a specific directory? It compressed my drivers folder 3MB smaller than a WinRAR SFX, but I can't see any of the advanced SFX options WinRAR has.

#55 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 21 May 2004 - 07:29 AM

RyanVM, on May 21 2004, 02:26 PM, said:

How does one tell a 7zip SFX archive to extract automatically to a specific directory?  It compressed my drivers folder 3MB smaller than a WinRAR SFX, but I can't see any of the advanced SFX options WinRAR has.

I'm having the same problem :'(

#56 User is offline   edmoncu 

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

Posted 21 May 2004 - 07:46 AM

@Bâshrat the Sneaky:
ooops im sorry, i didnt get your first post. anyway, i used the following switches when i extract the 7zip-sfx archive:
-y /q /r:n

anyway, here's how my presetup.cmd looked like:
%systemdrive%

cd %systemdrive%\drivers
start /wait drivers.exe -y /q /r:n

cd %windir%\system32

REM Scanning for driverdirectories
%systemdrive%\SetDevicePath.exe %systemdrive%\drivers

REM Enable installation of unsigned drivers
start %systemdrive%\WatchDriverSigningPolicy.exe


anyway, as for the destination directory, i have no much information yet to declare within a 7zip-sfx archive the destination folder, its assumed that extraction has to take place to the default working directory.

in order to make sure it extracted at the proper place, i had to manually invoke a CD = change directory command before the extraction of the sfx-archive. i assigned the default working directory to %systemroot%\Drivers folder. i also placed a wait flag to the start command so that it fully finishes extraction first before proceeding with the next set of commands in the CMD file.

#57 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 21 May 2004 - 08:09 AM

Interesting, I'll have to play with that idea. And it doesn't surprise me that the Windows GUI version of the WinRAR SFX module doesn't work since the GUI isn't even loaded yet when it launches :). It does work OK if you run it as the DetachedProgram, though.

#58 User is offline   edmoncu 

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

Posted 21 May 2004 - 08:37 AM

yup. even if executed via the DetachedProgram method, the criteria for the sfx archive remains the same, it either has to be rar-sfx-compressed using the windows console module or if you want a more appealing (or more uniform) presentation, then compress it via 7zip... which i also think compresses better than winrar's. :) btw, in my observation, i think sfx decompression is also faster when 7zip is used to compress it which is a plus plus! :rolleyes:

#59 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 21 May 2004 - 08:59 AM

edmoncu, on May 21 2004, 10:37 AM, said:

yup. even if executed via the DetachedProgram method, the criteria for the sfx archive remains the same, it either has to be rar-sfx-compressed using the windows console module or if you want a more appealing (or more uniform) presentation, then compress it via 7zip... which i also think compresses better than winrar's. :) btw, in my observation, i think sfx decompression is also faster when 7zip is used to compress it which is a plus plus! :rolleyes:

I still maintain that you're incorrect on that matter. I'll create and ISO and take screenshots in VirtualPC a bit later on today to back that up.

EDIT: But I too am convinced that 7zip does give better compression that RAR. Like I said before, it takes over 3MB off my drivers archive.

#60 User is offline   edmoncu 

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

Posted 21 May 2004 - 10:36 AM

oh, may i know which part am i incorrect? :)
/me suddenly feels to worry about my work.

#61 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 21 May 2004 - 10:39 AM

WinRAR SFX Windows GUI module extracting at the T39 mark prior to device detection running as the DetachedProgram in winnt.sif.

Attached File(s)



#62 User is offline   edmoncu 

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

Posted 21 May 2004 - 11:26 AM

oh i see... i stand myself corrected then. :)

#63 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 22 May 2004 - 03:01 AM

RyanVM, on May 21 2004, 06:39 PM, said:

WinRAR SFX Windows GUI module extracting at the T39 mark prior to device detection running as the DetachedProgram in winnt.sif.

And you didn't use any switches??? I can't get it to work with the normal GUI :'(

#64 User is offline   edmoncu 

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

Posted 22 May 2004 - 06:06 AM

same here... that is when i use the detachedprogram method (as well as via presetup.cmd). :)

anyway, i tried complimenting the execution of the sfx-rar archive with /S on the arguments.

[GuiUnattended]
    AdminPassword=*
    EncryptedAdminPassword=NO
    OEMSkipRegional=1
    TimeZone=215
    OemSkipWelcome=1
    DetachedProgram="%systemdrive%\others\drivers.exe"
    Arguments="/s"


#65 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 22 May 2004 - 09:18 AM

edmoncu, on May 22 2004, 02:06 PM, said:

same here... that is when i use the detachedprogram method (as well as via presetup.cmd). :)

anyway, i tried complimenting the execution of the sfx-rar archive with /S on the arguments.

[GuiUnattended]
    AdminPassword=*
    EncryptedAdminPassword=NO
    OEMSkipRegional=1
    TimeZone=215
    OemSkipWelcome=1
    DetachedProgram="%systemdrive%\others\drivers.exe"
    Arguments="/s"

I tried it too like that, with normal GUI.

What module did you use and did it work with the /S switch?

#66 User is offline   edmoncu 

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

Posted 22 May 2004 - 10:10 AM

i tried the Default.sfx module. although when i tried running it using the WinCon.sfx module, i got no problem decompressing it at any situation... though i have lesser control over it than Default.sfx.

#67 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 22 May 2004 - 11:03 AM

RyanVM, on May 7 2004, 09:25 AM, said:

For those using WinRAR to achieve this, this is my method for creating an SFX archive that worked.  RAR up the subdirectories within your Drivers folder (I personally do it with the best compression and as a solid archive and it got a 5:1 compression ratio).  Make it self extracting, but don't worry about any SFX options for the time being.  Once the archive is created, add a comment to the archive (a shortcut to this is Alt+M) with this info in it:
;The comment below contains SFX script commands

Path=%systemdrive%\Drivers
SavePath
Silent=2
Overwrite=1
That will tell it to extract to Drivers on root (in other words, generally C:\Drivers).  It will show an extraction progress dialog (so you can verify that it is indeed working.  Change Silent=2 to 1 if you want it to be completely hidden.  Overwrite=1 tells it to overwrite any files it comes across (not that it'll be an issue if you're doing a clean install).

So now you should have an exe (mine's called Drivers.exe and I'll be using it as an example) with the above comment in it (you can test its functionality too by double clicking and verifying that it extracts how you want it to).  Place it in your $1 folder inside $OEM$.  In the [GUIUnattended] section of winnt.sif, add the following line:
DetachedProgram="%systemdrive%\Drivers.exe"
Leave your OEMPnPDriversPath settings in winnt.sif the same as if the files were uncompressed on the CD.  They will be extracted prior to PnP device detection, so this will not be a problem.

This is exactly how I made it.

#68 User is offline   Denney 

  • *shrug*
  • PipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 11-September 03

Posted 26 June 2004 - 03:42 AM

Hmm... don't know quite what's wrong here... wondering if someone could help me (this is my first attempt at using DetachedProgram)...

WINNT.SIF:
[GuiUnattended]
 OemSkipWelcome=1
 TimeZone=260
 DetachedProgram="%systemdrive%\MSA\DriverSetup.cmd"

DriverSetup.cmd:
@echo off

if exist D:\WIN51IP.SP2 D:\OEM\utilities\setenv -m CDROM D:
if exist E:\WIN51IP.SP2 E:\OEM\utilities\setenv -m CDROM E:
if exist F:\WIN51IP.SP2 F:\OEM\utilities\setenv -m CDROM F:
if exist G:\WIN51IP.SP2 G:\OEM\utilities\setenv -m CDROM G:
if exist H:\WIN51IP.SP2 H:\OEM\utilities\setenv -m CDROM H:
if exist I:\WIN51IP.SP2 I:\OEM\utilities\setenv -m CDROM I:
if exist J:\WIN51IP.SP2 J:\OEM\utilities\setenv -m CDROM J:
if exist K:\WIN51IP.SP2 K:\OEM\utilities\setenv -m CDROM K:
if exist L:\WIN51IP.SP2 L:\OEM\utilities\setenv -m CDROM L:

%CDROM%\OEM\utilities\cmdow @ /HID

start /wait %systemdrive%\MSA\drivers.exe

%CDROM%\OEM\utilities\setdevicepath.exe %systemdrive%\MSA\drivers

exit

For some reason that doesn't work. Can I use .cmd files from DetachedProgram?

#69 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 26 June 2004 - 04:27 AM

CMD is not available at that stage. You've got to use it in a special way, which I don't know anymore... :) Someone who remembers it?

#70 User is offline   Denney 

  • *shrug*
  • PipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 11-September 03

Posted 26 June 2004 - 05:08 AM

FIXED IT! Never actually thought, change it from a .cmd file to a .bat file!! It works!! So simple.

It took me so long to figure that out. :)

.cmd is a "Windows NT Command Script" whereas .bat is an "MS-DOS Batch File".

Share this topic:


  • 24 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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