MSFN Forum: SOLVED: drivers from CD - MSFN Forum

Jump to content


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

#81 User is offline   Pyron 

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

Posted 29 July 2004 - 01:59 AM

@bilemke:
As far as I know, textmode-setup writes all neccessary information to a file called $winnt$.inf. I fiddled with it a bit, but lost interest, although it looks alot like winnt.sif.
I'll attach a zip with two of these files, one of unattended mode, one normal. Maybe it helps.

--
Pyron

Attached File(s)




#82 User is offline   bilemke 

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

Posted 30 July 2004 - 01:29 AM

Thanks for the info Pyron.. It has been a while since I looked in to the files made after the text based portion of setup that the gui portion uses. I suppose there is a chance we could have a batch file (with echo and find string, if they would function correctly so early in setup) change $winnt$.inf to match the needs of each person. This way we could make it seem to windows setup that it was an unattended setup for text setup portion (so f6 can be used if desired, without error) and then still gain the benefits of unattended install (mainly key/serial integration).

#83 User is offline   bilemke 

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

Posted 30 July 2004 - 01:37 AM

BTW.. googling for $winnt$.sif.. already found something usefull.

here

Got me to thinking, I foregot the file is left in isntall folder after install is done.

Here is mine

[Proxy]
Proxy_Enable=0
Use_Same_Proxy=0

[URL]
Home_Page=http://www.google.com

[Branding]
BrandIEUsingUnattended=Yes

[Components]
msmsgs=Off
msnexplr=Off

[Display]
BitsPerPel=16
Xresolution=1024
YResolution=768

[Networking]
InstallDefaultComponents=Yes

[Identification]
JoinWorkgroup="WORKGROUP"

[GuiUnattended]
TimeZone=20
OemSkipWelcome=1

[UserData]
ProductID=
FullName=""
OrgName=""
productkey=

[Unattended]
UnattendMode=ProvideDefault
OemPreinstall=Yes
OemPnPDriversPath=Drivers\006_storage;Drivers\006_storage\3ware;Drivers\006_storage\3ware\6000;Drivers\006_storage\3ware\7k&8k;Drivers\006_storage\acard;Drivers\006_storage\acard\6280;Drivers\006_storage\acard\6290;Drivers\006_storage\acard\67160;Drivers\006_storage\acard\671x;Drivers\006_storage\acard\6880;Drivers\006_storage\acard\6890;Drivers\006_storage\acard\68x5;Drivers\006_storage\adaptec;Drivers\006_storage\adaptec\aac;Drivers\006_storage\adaptec\aar1210;Drivers\006_storage\adaptec\i2o;Drivers\006_storage\adaptec\u160;Drivers\006_storage\adaptec\u320;Drivers\006_storage\adaptec\u320r;Drivers\006_storage\ali;Drivers\006_storage\amd;Drivers\006_storage\highpoint;Drivers\006_storage\highpoint\hpt366;Drivers\006_storage\highpoint\hpt371;Drivers\006_storage\highpoint\hpt374;Drivers\006_storage\highpoint\hpt3xx;Drivers\006_storage\highpoint\rr182x;Drivers\006_storage\intel;Drivers\006_storage\intel\eide;Drivers\006_storage\intel\sataraid;Drivers\006_storage\intel\u320r;Drivers\006_storage\ite;Drivers\006_storage\lsilogic;Drivers\006_storage\lsilogic\megaide;Drivers\006_storage\lsilogic\mraid35x;Drivers\006_storage\lsilogic\mylex;Drivers\006_storage\lsilogic\symmpi;Drivers\006_storage\nvidia;Drivers\006_storage\nvidia\eide;Drivers\006_storage\nvidia\raid;Drivers\006_storage\promise;Drivers\006_storage\promise\fasttrak;Drivers\006_storage\promise\fasttx2k;Drivers\006_storage\promise\sx4000;Drivers\006_storage\promise\sx6000;Drivers\006_storage\promise\ulsata;Drivers\006_storage\promise\ultra;Drivers\006_storage\qlogic;Drivers\006_storage\qlogic\12160;Drivers\006_storage\siimage;Drivers\006_storage\siimage\3112;Drivers\006_storage\siimage\3112r;Drivers\006_storage\siimage\3114;Drivers\006_storage\siimage\3114r;Drivers\006_storage\siimage\3124;Drivers\006_storage\siimage\3124r;Drivers\006_storage\siimage\649r;Drivers\006_storage\siimage\680;Drivers\006_storage\siimage\680r;Drivers\006_storage\sis;Drivers\006_storage\sis\eide;Drivers\006_storage\sis\raid;Drivers\006_storage\via;Drivers\006_storage\via\eide;Drivers\006_storage\via\ideraid;Drivers\006_storage\via\miniport;Drivers\006_storage\via\sataraid;
TargetPath=\WINDOWS
Repartition=No
UnattendSwitch=no
DriverSigningPolicy=Ignore

[Data]
floppylessbootpath=no
producttype=winnt
standardserverupgrade=no
winntupgrade=no
win9xupgrade=no
win31upgrade=no
sourcepath=\device\cdrom0\
MsDosInitiated=0
UnattendedInstall=yes
AutoPartition=0
dospath=F:\


Note the lack of product id info.. Setup must strip this out at the end of setup process. Depending if we can use commands like echo and something to replace strings in the file (and when exactly setup reads info from this file) it should work... Do you know if echo works that early in setup?

#84 User is offline   ovilla2001 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 09-October 03

Posted 04 August 2004 - 01:23 AM

Did someone already test this solution with SP2?
When I tried this solution (that solved lots of problems) I found out that in T-8 Windows detect that setup.exe has a bad signature and try to recover the right file.
Of course that is not possible and Windows just give up after 20 minutes.....

Could be possible the following workarounds:
1- in the HD, swap setup.exe and setuporg.exe before t-8 (maybe in t-12 or changing setup.exe)?
2- change the progrm name that is run in startup (setupchanged.exe)?

Is the source code of setup.exe (the changed file) available? :)

Thanks
OVilla

#85 User is offline   Pyron 

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

Posted 04 August 2004 - 01:49 AM

1 - You probably cannot change the setup.exe during installation, because it is in use by that time
2 - Renaming the program won't help, because that is the key to the whole thing. Windows Setup starts "setup.exe" and I don't think we can change that.

I slipstreamed SP2RC2 yesterday and did not have such a problem. I have to check it again, maybe SFC is turned off in my unattended CD.

BTW: I don't have the original sourcecode anymore, I changed it around a bit since I wrote my little guide. Here is my current version:
#include "windows.h"
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow )
{

	SHELLEXECUTEINFO mySHELLEXECUTEINFO;

	mySHELLEXECUTEINFO.cbSize=sizeof(SHELLEXECUTEINFO);
	mySHELLEXECUTEINFO.fMask=SEE_MASK_NOCLOSEPROCESS;
	mySHELLEXECUTEINFO.hwnd=NULL;
	mySHELLEXECUTEINFO.lpVerb="Open";
	mySHELLEXECUTEINFO.lpFile="cmd.exe";
	mySHELLEXECUTEINFO.lpParameters="/C setup.cmd";
	mySHELLEXECUTEINFO.lpDirectory=".";
	mySHELLEXECUTEINFO.nShow=NULL; // or SW_SHOW;

	ShellExecuteEx(&mySHELLEXECUTEINFO);
	WaitForSingleObject(mySHELLEXECUTEINFO.hProcess,INFINITE);

	return 0;
}

The main difference is that I don't start setupORG.exe directly anymore but from the setup.cmd (formerly presetup.cmd). That gives me a bit more flexibility and helps in producing silent installation packages.

I use mingw for my small compiling needs:
gcc -mwindows -Os -s -o setup.exe setup.cpp


That's it.
--
Pyron

#86 User is offline   ovilla2001 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 09-October 03

Posted 04 August 2004 - 03:21 AM

well....I working since 3AM.

The last "solution" that I tried was in presetup.cmd delete setup.exe, rename setuporg.exe and reset de system (setup.exe is loaded in memory but I can delete the file.... weird... but worked fine).

In the next boot system will run the original setup.exe and in t-9, t-8.... (seems that some kind of timeout is acting in this point) donīt will take so long to conclude (and event viewer donīt show that setup.exe has a bad signature and windows canīt restore the original file).

Of course I am working with the OPK RC2 (build 2163).
The things can change in the final release....

Thanks
OVilla :)

#87 User is offline   bilemke 

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

Posted 04 August 2004 - 02:13 PM

Perhaps.. can we change what setup.exe loads sooner.. That way we can leave the original setup.exe as setup.exe and have Pyron's work be called something besides setup.exe and just make the boot process start it instead?

I am looking for what calls setup.exe to begin with.. to see if we can change it to a difference file name..

Anyone have any insight on this?

#88 User is offline   ovilla2001 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 09-October 03

Posted 04 August 2004 - 04:26 PM

That is what I was trying to suggest with my poor english Bilemke.
But, for awhile, I could to implement the following solution:

1-Run the new setup.exe
2- Setup. exe starts presetup.cmd
3- I run what I need (in fact, I am running an app asking for a 2nd. CD where I have lots of drivers)
4- in the CMD I run:

ren setup.exe setup1.exe (I canīt delete the file but I can rename... very weird)
ren setuporg.exe setup.exe
start /wait setup.exe (that is the original setup)
exit

After that, everything is working fine!

But I am not using the final release version.......
Who knows what more the Microsoft guys will change.

O. Villa :)

#89 User is offline   bilemke 

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

Posted 04 August 2004 - 06:19 PM

@ovilla2001

Sounds close, renaming the exe will nearly be impossible.. Once it is loaded in to memory renaming or moving it will be impossible. If it could tell you at this point. it would say something like "File in use".

I am looking for what makes the call to setup.exe... The special something that would normally call the stock setup.exe, and make it run a different file name. That way we never have to rename setup.exe to begin with.

#90 User is offline   ovilla2001 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 09-October 03

Posted 04 August 2004 - 06:38 PM

Yes Bilimke, I know that... but believe me... the rename command worked (and I really donīt know why I can to do that). When I try to execute delete command I got a denied access error message but it accept the rename operation. I AM NOT CRAZY! :)

I agreed with you that a better solution is find who is calling setup.exe and where (and how) I can change that. But.... if I know Microsoft... thats can be wrotten in code amd not in a inf/ini/sif file.

OVilla

#91 User is offline   bilemke 

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

Posted 05 August 2004 - 01:43 AM

@ovilla2001

ah-ha
No harm intended.. Rename command worked.... :) weird... After sp2 is release for xp in the coming days (i hope) I will finish digging into this. I am currently trying to get setup to see a product key using Pyron's little gift by tracking down where the key gets stored (if anyware beyond winnt.sif/$winnt$.sif). My primary goal is to get away from using a unnattended .sif file all together but still have drivers and such. The prodcut key is the only one I can see being a problem without putting it in a unattended setup file. Everything else can be accomplished using the other key moments int he setup time line.

#92 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 09 August 2004 - 08:21 AM

ovilla2001, on Aug 4 2004, 05:26 PM, said:

That is what I was trying to suggest with my poor english Bilemke.
But, for awhile, I could to implement the following solution:

1-Run the new setup.exe
2- Setup. exe starts presetup.cmd
3- I run what I need (in fact, I am running an app asking for a 2nd. CD where I have lots of drivers)
4- in the CMD I run:

ren setup.exe setup1.exe (I canīt delete the file but I can rename... very weird)
ren setuporg.exe setup.exe
start /wait setup.exe (that is the original setup)
exit

After that, everything is working fine!

But I am not using the final release version.......
Who knows what more the Microsoft guys will change.

O. Villa  :)

just curious why you didn't just copy setuporg.exe instead of copying and then calling?

#93 User is offline   ovilla2001 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 09-October 03

Posted 09 August 2004 - 08:38 AM

Alanoll

Well, how I worte before, in T-8 (or sometime close), my OPK build 2163 seems be checking for Windows XP signatures (maybe trying to avoid hacks). If Windows XP doensīt find the original SETUP.EXE in the HD, it takes almost 20 minutes trying to recover the original SETUP.EXE. After that, I have lots of events in the event log regarding the bad signature and sigverif also indicate a bad signature.

Renaming the file before, Windows will think that everything is right....

Is it clear? Maybe the final release will have another behavior.



OVILLA

#94 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 09 August 2004 - 10:06 AM

no no, I understand the renaming (i believe I'm running into that problem as well) but I didn't understand why you then executed the new SETUP.EXE?

You rename setuporg.exe to setup.exe, and then execute. It kinda of redundant as teh original setup.exe (from this thread, no fromCD) will call setuporg.exe after presetup.cmd has finished. So wouldn't just copying over setup.exe be enough?

#95 User is offline   Pyron 

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

Posted 10 August 2004 - 05:42 AM

After renaming setupORG.exe to setup.exe it cannot be started anymore, as its name is not setupORG.exe anymore...yes it is confusing...
Maybe he is using the code I posted a page ago.
I think I will update the guide when I get home. (EDIT: Probably later. A nice little box just arrived for me. It is labeled "DOOM3"... :) )

--
Pyron

#96 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 10 August 2004 - 08:33 AM

it may be neccesary. Atleast for me....
I still haven't gotten it working.

When i try the renaming thing, and then calling start /wait setup.exe, I get error saying "Go to Control Panel to add/remove components". When I make a copy of it, setup still hangs.

#97 User is offline   Pyron 

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

Posted 10 August 2004 - 09:06 AM

BTW: It has to be started like this:
setup.exe -newsetup

Maybe you missed the parameter?

--
Pyron

#98 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 10 August 2004 - 09:41 AM

I shall add that..... :)
And yes I did miss that. Atleast, untill I read it this morning at 10am here. I was just reading the previous renaming thing, and didn't think to look back at the first post :rolleyes: I did see it (-newsetup) in the logs this morning and was going to try it. Thanks Pyron.

#99 User is offline   Pyron 

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

Posted 11 August 2004 - 01:34 AM

I attach the exetutable I am currently using.
It is still called setup.exe, it still runs presetup.cmd, you just have to include the call to the original setupORG.exe yourself.

It would work like this:
presetup.cmd
%systemdrive%
cd %systemroot%\system32
if exist setup.exe ren setup.exe setupold.exe
if exist setupORG.exe ren setupORG.exe setup.exe
start /WAIT setup.exe -newsetup


--
Pyron

Attached File(s)

  • Attached File  setup.zip (2.62K)
    Number of downloads: 399


#100 User is offline   sezz 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 23-April 04

Posted 11 August 2004 - 02:13 AM

does it work with sp2 (final) now?

Share this topic:


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

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



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