Jump to content











Photo
- - - - -

[script]Network support


  • Please log in to reply
74 replies to this topic

#51 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 14 January 2007 - 05:56 PM

Just to inform that network script of NIKZZZZ (member of forum.ru-board.com) worked for me perfectly! :P

Yes, net.script from NIKZZZZ works, but it cheats! :P
The needed inf files are not created, but included. :P

:P

#52 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 14 January 2007 - 06:38 PM

Yes, net.script from NIKZZZZ works, but it cheats! :P
The needed inf files are not created, but included. :P

Sorry, don't get you :P My network works, I can browse the Web and I don't care if needed INFs are created or included :P

PS Just tried network in my hotel where I had to enter IP, gateway and DNS - works! :P

:P

#53 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 14 January 2007 - 06:55 PM

... and I don't care if needed INFs are created or included :P


Maybe Jaclaz can tell more about that.
But I think it is not legal to distribute 'part of software', in this case *.inf files.
Therefore such a script cannot be inside the official WinBuilder delivery.

Peter

#54 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 14 January 2007 - 07:05 PM

Well, I can agree that distributing not free software or its parts is bad. But INF files are just regestry settings in INF files format written in TXT files. You will have to write this regestry settings anyway if you want it working.

And it is not a bad idea to extract all these files from the script in a separate folder - if somebody wants this script working (and it works! :P he/she will need to provide these files (download from net or take from owned software).

:P

#55 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 14 January 2007 - 07:16 PM

Would be good if anybody would read the 1st page of this topic completely.
However, I respect the work of Bart...
The only complete way would to use WinPE2.0 from WAIK cause it comes with "netcfg", etc.
Wondering what "net.script" uses to detect devices and install network components...

However, I will do it my way - licensefree :P
...

#56 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 14 January 2007 - 07:29 PM

Holger :P
Waiting for your solution :P

But anyway: in order to use WinBuilder to work someone needs to provide XP or W2k3 CD. Look in Download section - there are quite a few scripts for commercial software too. Why couldn't someone who wants networking provide a few files that are downloadable from net for free?

It would be greate if somebody creates free alternatives just for WinBuilder. But untill then...

#57 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 14 January 2007 - 08:12 PM

Well the main problem besides legal issues, is of course the language thing.
The net.script from NIKZZZZ is from a russian build, i guess. It should work on all machines, but most will see just a lot of garbage in their services.msc

I think we should at least 'upgrade' to english, so that more people can read the entries. :P

#58 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 14 January 2007 - 09:45 PM

I use English source. I didn't find much Russian in his script except the title.

#59 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 14 January 2007 - 09:53 PM

I use English source. I didn't find much Russian in his script except the title.

Start services.msc and admire the rows of questionmarks! :P

#60 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 15 January 2007 - 04:55 AM

MedEvil

Start services.msc and admire the rows of questionmarks!

Very strange :P I can't find this file neither in my build nor in running PE... Are you sure you saw these rows of questionmarks after running this script? I noticed only one during WinBuilder runs - it's a title for the script. Maybe you confusing with some other script (there are a few Russians placing scripts on this board :P

#61 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 15 January 2007 - 07:32 AM

Medevil was referring to the MMC services snapin file, the Russian descriptions are from the 3 inf files embedded in the script, I believe you can put Eng BartPE .infs...
I've just read this thread which includes some usefull info on enabling basic networking on XPE or PE. I've barrowed data from both current net scripts, thx. to Alexei and HighwayStar for there fine efforts. :P

#62 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 15 January 2007 - 12:16 PM

You were right. I found netmscli.inf and nettcpip.inf files have lines in Russian.

I still don't care because I'm not going to read description of services. But in order everything is perfect it would be great to make it readable :P

#63 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 16 January 2007 - 09:26 AM

Just a small suggestion:)

If somebody can provide me with English versions of these files (netmscli.inf and nettcpip.inf) and if they even exist of cause:

1. I can compare two files and look for different settings that make it working.

2. I can just copy-past English strings instead Russian ones and see if it works this way.

#64 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 17 January 2007 - 06:34 PM

OK. That was very stupid of me :P The files are from original XP source.

I compared the content and found quite a few differences except those lines in Russian. Maybe it's the reason the files are not taken from the source but were included into the script?

Unfortunatelly I can't test it right now cause the hotel I'm living tonight doesn't have LAN connection.

#65 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 17 January 2007 - 09:41 PM

The infs can come from a localized BartPE...
I've spent quite a bit of time sorting all this out as I would like for this community to have a reliable networking script. I invite you to provide some feeback on a script which is working well in my tests. DL here :P

tests used livexp on m$ VPC
Please test with bartpe and startnet by Holger, I use factory and netcfg from the Srv2k3 Opk and all works very well. More details later, enjoy!

#66 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 17 January 2007 - 10:17 PM

thunn
Good work :P

I compared the files again - they differ only in strings Russian-English but the rest is the same. Should work.

From the first look, you add a bit more files and regestry settings then NIKZZZZ.
Maybe I'm wrong but in your script networking auto-starts? He makes it for user to choose when to start networking.
NIKZZZZ doesn't use FACTORY.EXE - would it be usefull for PPPoE and Dial-Up connections?

#67 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 18 January 2007 - 09:14 AM

thunn
From the first look, you add a bit more files and regestry settings then NIKZZZZ.


As a matter a fact (and I hope you're reading the correct script) My script contains no registry entries at all. They're not required as the .infs update the registry with the correct information at runtime. Lets have a look at a section of NETTCPIP.INF...

; Install Tcpip service

&#91;Install.AddService.TCPIP&#93;

	DisplayName	 = %MS_TCPIP.TCPIP.ServiceDescription%

	ServiceType	 = 1;SERVICE_KERNEL_DRIVER

	StartType	   = 1;SERVICE_SYSTEM_START

	ErrorControl	= 1;SERVICE_ERROR_NORMAL

	ServiceBinary   = %12%\tcpip.sys

	Dependencies	= IPSec

	LoadOrderGroup  = PNP_TDI

	AddReg		  =Registry.Service.TCPIP

	Description	 = %MS_TCPIP.TCPIP.ServiceDescription%

..

&#91;Registry.Service.TCPIP&#93;

	HKR,Parameters\Winsock,&#34;UseDelayedAcceptance&#34;,%FLG_ADDREG_TYPE_DWORD%,0x0000

	HKLM,&#34;System\CurrentControlSet\Control\ServiceProvider\Order&#34;,&#34;ExcludedProviders&#34;,%FLG_ADDREG_SZ_NO_CLOBBER%,&#34;&#34;

	HKLM,&#34;System\CurrentControlSet\Control\ServiceProvider\Order&#34;,&#34;ProviderOrder&#34;,%FLG_ADDREG_MULTI_SZ_APPEND%,&#34;Tcpip&#34;



	HKR,Performance,Close,,&#34;CloseTcpIpPerformanceData&#34;

	HKR,Performance,Collect,,&#34;CollectTcpIpPerformanceData&#34;

	HKR,Performance,Library,,&#34;Perfctrs.dll&#34;

	HKR,Performance,Open,,&#34;OpenTcpIpPerformanceData&#34;



	HKR,ServiceProvider,Class,%FLG_ADDREG_TYPE_DWORD%,8

	HKR,ServiceProvider,DnsPriority,%FLG_ADDREG_TYPE_DWORD%,2000

	HKR,ServiceProvider,HostsPriority,%FLG_ADDREG_TYPE_DWORD%,500

	HKR,ServiceProvider,LocalPriority,%FLG_ADDREG_TYPE_DWORD%,499

	HKR,ServiceProvider,ProviderPath,%FLG_ADDREG_TYPE_EXPAND_SZ%,&#34;%%SystemRoot%%\System32\wsock32.dll&#34;

	HKR,ServiceProvider,NetbtPriority,%FLG_ADDREG_TYPE_DWORD%,2001

	HKR,ServiceProvider,Name,,&#34;TCP/IP&#34;



	HKR,Parameters,DataBasePath,%FLG_ADDREG_TYPE_EXPAND_SZ%,&#34;%%SystemRoot%%\System32\drivers\etc&#34;

	HKR,Parameters,NameServer,%FLG_ADDREG_SZ_NO_CLOBBER%,&#34;&#34;

	HKR,Parameters,ForwardBroadcasts,%FLG_ADDREG_DWORD_NO_CLOBBER%,0

	HKR,Parameters,IPEnableRouter,%FLG_ADDREG_TYPE_DWORD%,0



	HKR,Parameters\Winsock,&#34;UseDelayedAcceptance&#34;,%FLG_ADDREG_TYPE_DWORD%,0x0000


While the other scripts provide required files and may work (esspecially if run together) the registry entries are not all needed. Some hardware may require a few entries...If so, I'll be testing and updating. Works well with Realtek NIC and VPC though.

Windows Embedded installs everything for networking including reg entries in advance to the XPE runtime image. I know there've been ideas here about trying to do that, but PE is not an Embedded OS. It's a good idea though.

And about starup...
In the download is the Core script plus a sepparate startup script. You may use them as you like. The core contains no autostart, only registers a few .dlls. Like I said, be my guest and try the core with other startup options. Please try all features of networking, I was very carefull about the file sellection, no issues yet. :P

#68 Oleg_II

Oleg_II

    Frequent Member

  • Advanced user
  • 298 posts
  • Location:Somewhere in the East

Posted 18 January 2007 - 11:31 AM

thunn
I'll have a closer look at the scripts tonight. And I've got a good connection also today so I'll try to test your scripts.

About Embedded - interesting info. I'd like to have PPPoE and Dial-Up connections too (need to enter user names and passwords).

#69 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 18 January 2007 - 12:28 PM

The infs can come from a localized BartPE...
I've spent quite a bit of time sorting all this out as I would like for this community to have a reliable networking script. I invite you to provide some feeback on a script which is working well in my tests. DL here :P

Please test with bartpe and startnet by Holger, I use factory and netcfg from the Srv2k3 Opk and all works very well. More details later, enjoy!

I was testing the two scripts within the zip.
Selected a working BartPE. At this point you could link to where they can find BartPE.

I received this error when booting in NativeEx
PE.jpg

The next screen said it didnt recognize the network card. This should be expected since we dont have a Qemu Network Card Driver working. Ill try it in Vmware since I put the Network Drivers for that card.
PE2.jpg

Same errors using VMware.
In LiveXP I get errors in the log about not being able to copy some files.
Attached File  Log.zip   58.78KB   233 downloads

#70 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 18 January 2007 - 06:53 PM

-NativeEX is an even smaller subset of files than LiveXP...I'll add the one file, no problem.

-You must add the VMware net drivers...did you?

-Thx for the log...one line needed fixing, but it won't break the script.

-I tested and received no errors...will test again. and post revision. :P

#71 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 18 January 2007 - 06:57 PM

-NativeEX is an even smaller subset of files than LiveXP...I'll add the one file, no problem.

Its faster to build. Its more stable at the moment. I borrowed the Vmware drivers from LiveXP when testing to use the Network Card of Vmware on nativeEx

-You must add the VMware net drivers...did you?

Yes!



-I tested and received no errors...will test again. and post revision. :P

:P

Once its working can you revise it to where it can be disabled by default and let the script have the ability to let the user add a shortcut to Penetconfig in the Desktop, Quicklaunch, or StartMenu.

#72 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 18 January 2007 - 07:24 PM

I assume you mean autostart...

Either don't use my penetcfg script OR:

open startnet.ini and edit this-

[General]
AutoStartNet = Yes

btw...
It works fine. Run a test in VPC.
Can you verify that the VMware drivers work fine? (try using HwPnP.exe)

also
I may not use PEnetcfg for the 'final' release for licensing reasons, so have fun with this one.

I'm going to PM you an alternate version for a test in VMware.

#73 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 19 January 2007 - 12:01 AM

I assume you mean autostart...

Either don't use my penetcfg script OR:

open startnet.ini and edit this-

[General]
AutoStartNet = Yes

btw...
It works fine. Run a test in VPC.
Can you verify that the VMware drivers work fine? (try using HwPnP.exe)

also
I may not use PEnetcfg for the 'final' release for licensing reasons, so have fun with this one.

I'm going to PM you an alternate version for a test in VMware.


Holget just released his script PENetwork-PreBeta. It works with the Vmware Script Network Drivers. Right out the box. Tested on nativeEx Project using Winbuilder53 beta 14.
http://www.boot-land...?...

#74 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 19 January 2007 - 07:48 AM

Holget's script looks very nice. It will be fun to test.
The .inf patching is an actractive feature...

If I understand correctly (from PM) the script worked...it was the lack of RAM/virt mem that caused programs not to run and net not to start. For normal testing I use 512MB on my VMs. 256...not always enough. But, cutting RAM is a test in itself. So...nevermind.
With a free solution in development :P I'll just use this script for the Opk net tools from MS. I believe certain NICs require registry entries to be present, others don't. attached has registry entries some of which can be removed. :P

--edit--
*this script was a fast patchjob to get me up and running, I'm posting a more comprehensive well researched update under Development. :P

Attached Files



#75 paraglider

paraglider

    Gold Member

  • .script developer
  • 1743 posts
  • Location:NC,USA
  •  
    United States

Posted 02 April 2007 - 12:13 PM

Note snetcfg was replaced by bindview in w2003 / Vista DDKs. Thats why you can't find the source any more.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users