Jump to content











Photo
- - - - -

pppoe support for Win7PE

win7pe pppoe

  • Please log in to reply
78 replies to this topic

#51 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 27 January 2012 - 08:25 PM

Oscar, why did you remove the country settings? Arn't those needed for analog MODEM operations?

:cheers:

#52 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 27 January 2012 - 11:17 PM

Because anyway the countries list exist in the telephone properties rules dialog. I had written the countries,reg when the dialog was not working.

#53 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 28 January 2012 - 12:52 AM

Thanks for the info.

:cheers:

#54 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 28 January 2012 - 05:18 AM

The beautified last version of the PPPoE plugin:
http://www.mediafire...j449dn8vbk3nzju

Only one coded better script, without additional cmd and reg files.

#55 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 28 January 2012 - 09:02 PM

Looks great! :thumbup: :thumbup: :thumbup:

But found a sort of bug.;)
Add_Shortcut,"Autostart","","X:\Windows\system32\reg.exe",,,"delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\SW" /f"

should better be:

Add_Shortcut,"Autostart","","X:\Windows\system32\reg.exe",,,"delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SW" /f"

Since the command is executed on a running system.

:cheers:

#56 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 28 January 2012 - 10:38 PM

A few suggestions for the final final script. ;)

Since the script is not just for PPPoE, but for all dialup connections, i would give it a name to reflect that. Same goes for the names of the shortcuts.

Give the script a checkbox, so the user can choose, if he wants HwPnP to autorun at start or not.

Try to replace the link to rasphone.exe with one to to rasphone.pbk, like before, but use the attached one. I think you will like the effect. Makes for smoother operations, imo.

:cheers:

Attached Files



#57 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 02:05 AM

I have the following copy errors.

Can not copy:

modemcsa.inf
msports.inf
CmUCRRm.dll
file "drivers"

Have not yet figured out, the reson.

:cheers:

#58 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 02:14 AM

Ok, "Require_File,drivers" is plain nonsense. drivers is a folder not a file.
Did you wanted to require the whole folder? Doubt that is a good idea.

:cheers:

#59 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 29 January 2012 - 05:21 AM

What no makes sense at all is Require_File,infsome.inf

But, according to this example in the manual of winbuilder:
"This always copies swenum.sys from the %Source_Sys%drivers folder to the %target_sys%drivers folder:
Require_File,driversswenum.sys"


This should mean copy from source system32driversswenum.sys to target system32driversswenum.sys which is OK.

But also the help manual says that the syntax is:
Require_File,SourceFile,[SourceFolder],[TargetFolder],
So which is the correct syntax?
Is it this?:
Require_File,some.sys, %source_sys%drivers,%target_sys%drivers
Require_File,some.inf, %source_win%inf,%target_win%inf

Edited by 0scar, 29 January 2012 - 05:22 AM.


#60 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 06:08 AM

If in question, go with the code example in Winbuilder.

//Require_File,[Folder\]filename,[Source (if different to %Source_Sys%)],[Target(If different to %Target_Sys%)],[OverWrite]|[PRESERVE],[NOWARN],[NewName for #1 on Target],[MUI Source (if different of parameter #2)]

This is the full syntax for the RequireFile command.

:cheers:

#61 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 29 January 2012 - 05:35 PM

The script uploaded again to fix some bugs and "semi-bugs":
http://www.mediafire...xkw7sxy1s7o4bkn

The scripts deserves a checkbox dialog but in the meantime it may be customized editing the script.
To use your own rasphone.pbk enable this:
//FileCopy,"%ScriptDir%\files\*.pbk","%target_sys%"
//Add_Shortcut,Desktop,"", "X:\windows\system32\myrasphone.pbk","My phonebook"
or better:
// Your own host computer user's rasphone.pbk:
//Add_Shortcut,Desktop,"", "C:\Users\oscar\AppData\Local\Temp\ras\rasphone.pbk","My phonebook"

For disabling hwpnp.exe and use something else to install drivers comment this:
Add_Shortcut,"Autostart","",X:\Windows\system32\hwpnp.exe",,,"+all /p /d /log"

#62 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 06:43 PM

Thanks for the hints, but i'm already one step ahead of you. ;)
Checkbox for hwpnp autorun exists and hardcoded paths were adapted to dynamic ones.
I also inplememted a way to include a default rasphone.pbk, if no own one is supplied.
The idea to link to the rasphone.pbk of the host is very clever! :thumbup: :thumbup: :thumbup:
Why havn't i thought of that? ;)

Do you know, where Username and password for the connections are stored?


As i see, "RequireFile,drivers" is still present in the script. So i assume, that it is not a mistake, but actually suppose to do something. Could you tell me what?

:cheers:

#63 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 07:00 PM

This part is executed, if it is executed, during build time.
Therfore the use of ControlSet001 was correct and didn't needed changing.

// del SW

//RegHiveLoad,Tmp_System,%RegSystem%

//RegDelete,HKLM,Tmp_System\CurrentControlSet\Enum\SW

//RegHiveUnLoad,Tmp_System

Now it's a bug.

:cheers:

#64 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 07:12 PM

Oscar, i see a little problem, to use the rasphone.pbk from host.
We would need to know the name of the user account to use.
The way it is implemented right now, only the AllUsers rasphone.pbk can reliably be used on all computers.

btw. The deafult location of rasphone.pbk in Win7PE is Users\Default\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk.
AllUsers uses a different path, strangely. But i havn't written that one down.

:cheers:

#65 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 January 2012 - 07:48 PM

PS: Since i still havn't found a MODEM to use, could someone do me the favor and try, how the script works with
DirCopy,"%InstallSRC%\Windows\Microsoft.Net","%target_win%"
commented out?

Things should still work fine without it. I only remember Bluetooth needing Dot.Net.

:cheers:

#66 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 29 January 2012 - 08:03 PM

As i see, "RequireFile,drivers" is still present in the script. So i assume, that it is not a mistake, but actually suppose to do something. Could you tell me what?


If RequireFile, anyfile means Windows\system32\anyfile
then
If RequireFile, drivers\anyfile means Windows\system32\dirvers\anyfile

Best regards

#67 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 29 January 2012 - 08:11 PM

Oscar, i see a little problem, to use the rasphone.pbk from host.
We would need to know the name of the user account to use.
The way it is implemented right now, only the AllUsers rasphone.pbk can reliably be used on all computers.


Yes, that is why it needs its own script and a tool with a dialog asking for or auto searching for where Windows is installed and users names

Edited by 0scar, 29 January 2012 - 08:14 PM.


#68 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 29 January 2012 - 11:42 PM

PS: Since i still havn't found a MODEM to use, could someone do me the favor and try, how the script works with

DirCopy,"%InstallSRC%WindowsMicrosoft.Net","%target_win%"
commented out?

Things should still work fine without it. I only remember Bluetooth needing Dot.Net.

:cheers:


Yes, Microsoft.Net is not needed.

#69 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 30 January 2012 - 04:08 AM

If RequireFile,anyfile means Windows\system32\anyfile
then
If RequireFile, drivers\anyfile means Windows\system32\dirvers\anyfile

You've misunderstood me.
I understand what "RequireFile,drivers\anyfile" does.
What i don't understand, is this command "RequireFile,drivers". It is neighter correct from it's syntax nor is it working. So i need some explaination, of what you intended this command to do, to fix it.

:cheers:

#70 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 30 January 2012 - 01:29 PM

.
What i don't understand, is this command "RequireFile,drivers". It is neighter correct from it's syntax nor is it working. So i need some explaination, of what you intended this command to do, to fix it.

:cheers:



Again a corrupted script file?
I dont find "RequireFile,drivers" in my script.

#71 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 30 January 2012 - 01:50 PM

:confused1: Slowly but steady this is getting ridiculous. Once a bug like that ok, but twice? Especialy since the archive tests ok.

Anyway, here an excerpt from your script, with the mysterious command.

[require]

// drivers

Require_File,drivers\modem.sys

Require_File,drivers\parport.sys

Require_File,drivers\parvdm.sys 

Require_File,drivers\serenum.sys 

Require_File,drivers\serial.sys    

Require_File,drivers\tunnel.sys

// inf

Require_File,modemcsa.inf, %source_win%\inf,%target_win%\inf 

Require_File,msports.inf, %source_win%\inf,%target_win%\inf

// system32

Require_File,apds.dll

Require_File,apircl.dll

Require_File,apss.dll

Require_File,atmfd.dll

Require_File,authfwcfg.dll

Require_File,authfwgp.dll

Require_File,bthserv.dll

Require_File,capisp.dll

Require_File,cmcfg32.dll

Require_File,cmdial32.dll

Require_File,cmifw.dll

Require_File,cmlua.dll

Require_File,cmncliM.dll

Require_File,cmpbk32.dll

Require_File,cmstplua.dll

Require_File,cmutil.dll

Require_File,compmgmtlauncher.exe

Require_File,connect.dll

Require_File,ctfmon.exe

Require_File,dfshim.dll

Require_File,dialer.exe

Require_File,difxapi.dll

Require_File,drivers

Require_File,drivers\en-Us\modem.sys.mui

Require_File,drivers\modem.sys

Require_File,drivers\tunnel.sys

Require_File,dskquota.dll

Require_File,dtsh.dll

Require_File,efscore.dll

:cheers:

#72 amateur

amateur
  • Members
  • 7 posts
  •  
    Vietnam

Posted 30 January 2012 - 01:59 PM

oscar,

you rock! congratulation!
tested with my USB 3G E173EU-1!

thanks!

#73 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 30 January 2012 - 03:38 PM

:confused1: Slowly but steady this is getting ridiculous :thumbup: . Anyway, here an excerpt from your script, with the mysterious command.


Still I dont see :book: the mysterious command "RequireFile,drivers" :rofl:

Found!
Require_File,difxapi.dll
Require_File,drivers <------------------- it is a bug!
Require_File,driversen-Usmodem.sys.mui

Edited by 0scar, 30 January 2012 - 03:48 PM.


#74 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 30 January 2012 - 04:04 PM

*squash* Now the script looks to be bug free. :lol:

btw. I have an idea for "rasphone.pbk from Host". And it doesn't even require any interface to work!
Unfortunately i'm stuck at the moment. I need the copy command to rename the file, if a similar named file already exists. cmd copy commands don't do that. :(


:cheers:

PS: Status of the script test.

- analog MODEM - OK
- ADSL MODEM
- GSM / GPRS / 3G MODEM (over cable) - OK
- GSM / GPRS / 3G Modem (over irda)
- GSM / GPRS / 3G Modem (over bluetooth)

#75 0scar

0scar

    Member

  • Members
  • 90 posts

Posted 30 January 2012 - 09:18 PM

Today version of pppoe script:
http://www.mediafire...evw0v1w8zidd9j8

Added checkbox for HWPnP and textbox for dialer country number and area code.

Best regards,





Also tagged with one or more of these keywords: win7pe, pppoe

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users