#51
Posted 27 January 2012 - 08:25 PM
#52
Posted 27 January 2012 - 11:17 PM
#53
Posted 28 January 2012 - 12:52 AM
#54
Posted 28 January 2012 - 05:18 AM
http://www.mediafire...j449dn8vbk3nzju
Only one coded better script, without additional cmd and reg files.
#55
Posted 28 January 2012 - 09:02 PM
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.
#56
Posted 28 January 2012 - 10:38 PM
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.
Attached Files
#57
Posted 29 January 2012 - 02:05 AM
Can not copy:
modemcsa.inf
msports.inf
CmUCRRm.dll
file "drivers"
Have not yet figured out, the reson.
#58
Posted 29 January 2012 - 02:14 AM
Did you wanted to require the whole folder? Doubt that is a good idea.
#59
Posted 29 January 2012 - 05:21 AM
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
Posted 29 January 2012 - 06:08 AM
//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.
#61
Posted 29 January 2012 - 05:35 PM
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
Posted 29 January 2012 - 06:43 PM
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!
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?
#63
Posted 29 January 2012 - 07:00 PM
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.
#64
Posted 29 January 2012 - 07:12 PM
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.
#65
Posted 29 January 2012 - 07:48 PM
DirCopy,"%InstallSRC%\Windows\Microsoft.Net","%target_win%"commented out?
Things should still work fine without it. I only remember Bluetooth needing Dot.Net.
#66
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
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
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.
Yes, Microsoft.Net is not needed.
#69
Posted 30 January 2012 - 04:08 AM
You've misunderstood me.If RequireFile,anyfile means Windows\system32\anyfile
then
If RequireFile, drivers\anyfile means Windows\system32\dirvers\anyfile
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.
#70
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.
Again a corrupted script file?
I dont find "RequireFile,drivers" in my script.
#71
Posted 30 January 2012 - 01:50 PM
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
#72
Posted 30 January 2012 - 01:59 PM
you rock! congratulation!
tested with my USB 3G E173EU-1!
thanks!
#73
Posted 30 January 2012 - 03:38 PM
Slowly but steady this is getting ridiculous . Anyway, here an excerpt from your script, with the mysterious command.
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
Posted 30 January 2012 - 04:04 PM
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.
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
Posted 30 January 2012 - 09:18 PM
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
Boot methods & tools →
WinBuilder →
Support →
The Problem Win7PE SE + Please HelpStarted by mehrantelikani , 14 Jul 2015 win7pe |
|
|
||
Boot methods & tools →
WinBuilder →
Win8PE →
MMC.script modificationStarted by era4sure , 02 Dec 2014 mmc, win8pe, win7pe, scripts and 2 more... |
|
|
||
Boot methods & tools →
WinBuilder →
Win7PE →
MMC.script modificationStarted by era4sure , 02 Dec 2014 mmc, win8pe, win7pe, scripts and 2 more... |
|
|
||
Boot methods & tools →
WinBuilder →
Win7PE →
Is it possible to Script specific disk filter drivers?Started by tblo , 14 Sep 2014 e2b, easy2boot, pe3, win7pe |
|
|
||
Boot methods & tools →
WinBuilder →
Win7PE →
PGP Recovery in Win7PEStarted by KP13 , 27 Feb 2014 pgp, win7pe, pgp recovery |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users