Topic: Win10PESE cannot build in no internet/connect to internet with proxy environment  (Read 6653 times)

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
move to http://theoven.org/index.php?topic=2669

rest related to current topic:

Hi slore,

I guess when you do not play with IFEO,
you can download plugins with a proxy now using download button ?
If yes I can provide you a way do download only updated files (=plugins+files) from server behind proxy.

As I wrote before, I am waiting for news to give more feedback to test proxy.  :great:

:turtle:
« Last Edit: December 15, 2018, 07:44:48 PM by Lancelot »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi, Lancelot

do you updated the proxy plugin?
I can test it tomorrow, Is good use early version? or some new one?

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

I do not think anything related to your tests changed.

Still here are updated plugins related to download and your proxy test.
http://lancelot.cwcodes.net/pub/1/20181216_1635_slore_Projects.7z

:turtle:

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

zip distribution updated
http://theoven.org/index.php?topic=2594

also a small instruction about proxy plugins:
http://theoven.org/index.php?topic=2673

Good luck on your tests tomorrow.

:turtle:

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi, Lancelot

I tested with your Proxy Settings plugins.

Test Result:
a). can download the firefox or update plugin with [Proxy Settings](Enable)  :thumbsup:
b). GetWaikTools can download via WinHTTP(with/without [Proxy Settings] plugin)  :thumbsup:
c). can't download the firefox or update plugin via ONLY [Proxy Settings-WinHTTP](the description said this is global?)  :confused:
(seem the aria2c.exe download with the Proxy Settings effect)

UX feedback:
* Proxy Settings
1). after I manual canceled the firefox downloading(CTRL+C), it shows
    [Call,Download : Terminated by End User]
but still retry to download again even knows the cancel operation is by myself.

2). need click "Save Proxy Settings(Apply)" after change proxy string, or enable/disable proxy changed
but when I switch the [Enable Proxy] checkbox, goto other page then return to Proxy Settings, I don't know
current (applied) settings is Enabled Proxy or Disabled Proxy.  :confused:

* Proxy Settings + WinHTTP
1). [Test Internet - Ping] always return "OK :)" with IE proxy or aftering reset proxy(Connect directly).   :confused:
2). [Teset Internet - Download] takes long time without proxy settings, but said "OK :)" to me in the end.
(forget to remove the test file?)
3). Better to have a timeout settings for testing button.

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

1). after I manual canceled the firefox downloading(CTRL+C), it shows
    [Call,Download : Terminated by End User]
but still retry to download again even knows the cancel operation is by myself.
I can reproduce here. I will let you know when fixed.
ps: after 2nd CTRL C it stops.  :wink:

*
2). need click "Save Proxy Settings(Apply)" after change proxy string, or enable/disable proxy changed
but when I switch the [Enable Proxy] checkbox, goto other page then return to Proxy Settings, I don't know
current (applied) settings is Enabled Proxy or Disabled Proxy.  :confused:

Always use "Save Proxy Settings(Apply)" at the end of any chance.
When you disable [Enable Proxy] checkbox and "Save Proxy Settings(Apply)" --> Proxy Settings disabled.

This is good for a user who move between proxy and none-proxy environment,
 Settings saved on Plugin,
  only switching [Enable Proxy] checkbox and Apply required.  :wink:

I followed IE way which do same thing. ==> keep proxy settings at registry and enable and disable proxy following checkbox

*
c). can't download the firefox or update plugin via ONLY [Proxy Settings-WinHTTP](the description said this is global?)  :confused:
Global for all applications that use WinHTTP on your hostos.
Firefox download use aria2 or fallback to wget (which I guess both do not use WinHTTP following your report  :wink:)

To clear confusion, Summary:

There are 3 ways of download.
aria2 and wget -> I provide proxy setting to them via configuration file (not related to hostos, portable with projects)
Applications that use WinHTTP do download -> I provide a plugin to write the proxy setting to hostos. (following ms instructions)

I see proxy plugins works fine on your side.  :cheerleader: :happy: :dance:


*
1). [Test Internet - Ping] always return "OK :)" with IE proxy or aftering reset proxy(Connect directly).   :confused:
I am learning proxy things with you, thanks for testing buttons.  :great:
Maybe Ping use your hostos IE Proxy settings ?
Test:
Proxy Settings - WinHTTP:
->Internet Properties (inetcpl.cpl)
-->Connections
---> Lan Settings
----> Disable Use a Proxy server for your LAN....
----> OK
----> OK

->[ Test Internet - Ping]
Result ?

If result is ping working:
Time to test if ping use Winhttp

Proxy Settings - WinHTTP:
--> [reset proxy]

->[ Test Internet - Ping]
Result ?


2). [Teset Internet - Download] takes long time without proxy settings, but said "OK :)" to me in the end.
(forget to remove the test file?)
forget to remove the test file? -> No, file deleted  :thumbsup:

Interesting,
[Test Internet - Download] only downloads a 338 bytes txt file from our server. (InternetTest.txt)

It is good having 2 test method.  :wink:

maybe this is all about things with your server ?
to be sure try to download a small plugin from server:
http://theoven.org/index.php?topic=2672.0

Caffeine plugin is only 99.850 bytes


I have to go now, I will follow updates.... :turtle:

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
2). need click "Save Proxy Settings(Apply)" after change proxy string, or enable/disable proxy changed
but when I switch the [Enable Proxy] checkbox, goto other page then return to Proxy Settings, I don't know
current (applied) settings is Enabled Proxy or Disabled Proxy.  :confused:

To avoid confusion, added another information button near "Enable Proxy" checkbox.  :wink:

new plugin Utils\'Proxy Settings' v5 on server.
==>
You can also test "Download button" at top right of plugin to get new version.

Tip:
"Download button" resets to default plugin settings if already exists (already downloaded)
 this also requires a little download from internet to check if file updated or not.

=====>
Downloading Caffeine plugin
Download button at top right of Utils\'Proxy Settings' to get new version.
or using Tip to re use Download button" at top right of Utils\'Proxy Settings' to get new version.

All will test your proxy with aria2 or wget....

now time to dress up .... :turtle:

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi, Lancelot

Quote
Global for all applications that use WinHTTP on your hostos.
Firefox download use aria2 or fallback to wget (which I guess both do not use WinHTTP following your report  :wink:)

Yes, manually run aria2, wget to test, the result is no respone.

Quote
Maybe Ping use your hostos IE Proxy settings ?
Test:
Proxy Settings - WinHTTP:
->Internet Properties (inetcpl.cpl)
-->Connections
---> Lan Settings
----> Disable Use a Proxy server for your LAN....
----> OK
----> OK

->[ Test Internet - Ping]
Result ?

Yes, ping.exe goes with Proxy settings in IE.
BUT when I disable the proxy server, the test result is also be OK.
I checked your InternetConnectionCMD.cmd, the batch will always be OK because CMD's "var syntax expands variables at input time" feature.
need use "delayed environment variable expansion"  Extension. (Commented in Reply 20 http://theoven.org/index.php?topic=2669.msg30035;topicseen#msg30035)

PS:Google.com will fail even I can connect to Internet without proxy environment by the GFW.
DNS server 8.8.8.8 and 8.8.4.4 is "half" OK[2 in 4 is timeout].  :embarrassed:


Quote
forget to remove the test file? -> No, file deleted  :thumbsup:

Interesting,
[Test Internet - Download] only downloads a 338 bytes txt file from our server. (InternetTest.txt)

It is good having 2 test method.  :wink:

maybe this is all about things with your server ?
to be sure try to download a small plugin from server:

maybe you misunderstand my theme.

I can download the InternetTest.txt file with proxy settings(very fast).
I should fail the test without proxy settings,
The download process take very long time as expected, but in the end "it tells me Internet Connection is OK :)" is wrong.

I thought it check the file in the end(it was downloaded by the last time with proxy settings), that got wrong result.
« Last Edit: December 17, 2018, 04:59:54 PM by slore »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
To avoid confusion, added another information button near "Enable Proxy" checkbox.
new plugin Utils\'Proxy Settings' v5 on server.
==>
You can also test "Download button" at top right of plugin to get new version.

well I can see the information button, but what I want is clear to know the current Saved proxy settings is enabled or disabled?

change the [Save Proxy Settings] icon Dynamic is hard in WinBuilder? (play icon or stop icon)


ALSO the new info button action is odd. Can not simply show the messagebox on the origin Proxy Settings page?
Now shows "progressing plugins" progress, hide the origin Proxy Settings page.
this is not to play the pulgin, but goto the progress action is very odd. This interaction experience is very bad. Is this WinBuilder's limit?

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
well I can see the information button, but what I want is clear to know the current Saved proxy settings is enabled or disabled?
I put info to the new information button so I hope It will be very clear to know the current Saved proxy settings is enabled or disabled?
new plugin Utils\'Proxy Settings' v6 on servers.

*
ALSO the new info button action is odd. Can not simply show the messagebox on the origin Proxy Settings page?
no, If I could I would grey out like inetcpl.cpl proxy setting gui.  :wink:

Now shows "progressing plugins" progress, hide the origin Proxy Settings page.
I do not understand this.

this is not to play the pulgin, but goto the progress action is very odd. This interaction experience is very bad. Is this WinBuilder's limit?
Level 10 (Utils) plugins mostly have buttons to do things.

yes It is winbuilder's limit.
winbuilder is only a batch processor (not a special pe builder as advertised (ignore advertisements and anything from advertisers, they will guide you to wrong direction.. ) that has some interface features to make settings.
It is like cmd.exe with some gui features out of box.
[Interface] only contains variables when processing.
Interface features do not have option to grey out or show current Saved proxy settings,
you always have to click a button to see such things.  :wink:

eg.
one having
Enable_Proxy.cmd
Disable_Proxy.cmd
would also need a
Show_Current_Proxy_Status.cmd
to see current proxy status, on our case it becomes a button.  :wink:


Further later... time to go......  :turtle:
« Last Edit: December 17, 2018, 04:17:23 PM by Lancelot »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
Quote
Now shows "progressing plugins" progress, hide the origin Proxy Settings page.
I do not understand this.

NOW:
hide_settings_behind_processing.png
ila_rendered

SHOULD:
atleast_should_be.png
ila_rendered


Quote
no, If I could I would grey out like inetcpl.cpl proxy setting gui.  :wink:
Quote
yes It is winbuilder's limit.

Well, in this viewpoint, my WimBuilderUI is an evolution that the Settings make up by HTML.
It can create infinite possibilities creative settings UI by JS+HTML.  :embarrassed:


Quote
new plugin Utils\'Proxy Settings' v6 on servers.
Such quick update :thumbsup:

It is good so far with WinBuilder's limit, even though I want to see the settings status directly without "click the infomation button" :tongue:
No need improve the UI more for me, I just need it can download file in proxy environment for testing existing-done plugins what the Proxy Settings plugin already done,
good enough for me now. Needn't take such time on this(UI) which will be replaced by others funture(atleast me won't use it to create PE).

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

I can show the message box the way you like, but the message box cannot be dynamic, and can be forgotten open and cause troubles.........
so It is better showing "progressing plugins" progress to avoid misusage.

Still, I guess I understand what you are looking for.
new plugin Utils\'Proxy Settings' v7 on servers.

It has a new button at right to check "Enable Proxy" status, without messagebox.  :wink: :great:

*
Well, in this viewpoint, my WimBuilderUI is an evolution that the Settings make up by HTML.
It can create infinite possibilities creative settings UI by JS+HTML.  :embarrassed:
Maybe yes, Maybe no, time will show .........

Needn't take such time on this(UI) which will be replaced by others funture

Well, even if this is true, we can have comfort for a while.  :lol:
On the other hand,
We create plugins compatible to each other since Gena and continue with Win7PESE Win8PESE Win8.1SE Win10PESE
 without removing the features, but only to better.

What you write happens when someone decides to convert plugins, and for whatever reason decide to cut things.
(happens recently, happened in the very past...)

ps:
I just remember, there is IE proxy plugin, probably still works with Win10PESE etc.
Good, we do not have the activity to replace things the way you write.  :wink:
Call,DownloadX,"%BaseDir%\Projects\Yomi\ComponentsY\Core\1 System\IE_Proxy_Settings.script"

(reminding: http://theoven.org/index.php?topic=2672 )

It comes from good old SherpyaXPE and works since Gena.....
(I guess I noticed that at first with VistaPE or someone remind ....)

(atleast me won't use it to create PE).
Sure, I also use Win10PESE to create Win10PE.

Still It is good to experience with WimBuilderUI
 There is always a traffic with ideas and plugins between projects.

Such quick update :thumbsup:
I have just had a good time and a good challenge developing download & upload buttons 2 years ago at a midyear break.
2 years later support proxy and updates are very fast and some new good features.  :great:

*
I will respond to others when some free time found,
 sorry learning cmd slow with limited time having a set of todo list trying to catch Bob.Omb....
:turtle:
« Last Edit: December 17, 2018, 09:41:50 PM by Lancelot »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi, Lancelot

Quote
Still, I guess I understand what you are looking for.
new plugin Utils\'Proxy Settings' v7 on servers.

update plugin feature is good  :thumbsup:
(for the little update is better than download 300MB+ ZIP)

Quote
We create plugins compatible to each other since Gena and continue with Win7PESE Win8PESE Win8.1SE Win10PESE
 without removing the features, but only to better.
Good, we do not have the activity to replace things the way you write.


The plugin codes are good to continue to improve, they are legacy.
I mean neednot take more time on the UI with the develop-stoped project(WinBuilder).

Even the Proxy Settings is less people need.(already use PESE years without this plugin)

Quote
Still It is good to experience with WimBuilderUI
There is always a traffic with ideas and plugins between projects.

Well, this is true. Once converted, it will save you 90%+ time on creating plugin.
But the first move is need some time(one week for newbie), and hard to step out.

WimBuilderUI just a baby now(just 113 revisions), need more work to improve.
It is good for me who is new one to build PE without cage by past.
Not prepared to be alternative for others who works on WinBuilder years.
BOTH builders can create PE for you, using the suitable one will be OK.
I don't expect everyone turn to WimBuilderUI. Can't use a simple fast efficient
continued-develop builder is one's loss.

Bit more off topic things about the builders, leave information about the PROXY things here :)
Take time to improve WimBuilderUI slowly, keep recruiting the legacy of WinBuilder.
Less talk, more code, release improved WimBuilderUI...

* cmdWrapper.exe    DONE  :lol:
* AddDrivers MACRO   WORKING
one line call AddDrivers athw8x.inf,netathr10x.inf,... =>

Code: [Select]
[AddFiles]
ExtractSectionFiles,%ScriptFile%,NetDrivers%Architecture%_AddFiles

[NetDriversx64_AddFiles]
\Windows\INF\athw8x.inf
\Windows\INF\netathr10x.inf
...
\Windows\System32\DriverStore\FileRepository\athw8x.inf*
\Windows\System32\DriverStore\FileRepository\netathr10x.inf*
...

[Reg_NetDriversx64]
RegCopyKey,HKLM,Tmp_Drivers\DriverDatabase\DriverInfFiles\athw8.inf
RegCopyKey,HKLM,Tmp_Drivers\DriverDatabase\DriverInfFiles\netathr10x.inf
...
RegCopyKey,HKLM,Tmp_Drivers\DriverDatabase\DriverPackages,athw8.inf*
RegCopyKey,HKLM,Tmp_Drivers\DriverDatabase\DriverPackages,netathr10.inf*
...

1 line VS 16 lines, give 1600% efficiency and clear code.
add v1809 new netwtw02.inf,netwtw06.inf drivers will be very easy:
Code: [Select]
if %VER% GTR 17700 call AddDrivers netwtw02.inf,netwtw06.inf
well as my macro is make up by batch, it also could be WinBuilder's macro.  :embarrassed:

(I will move the content which is no relation about Proxy Settings later)
« Last Edit: December 18, 2018, 07:07:31 AM by slore »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
(I will move the content which is no relation about Proxy Settings later)
No need to spend valuable time on this. Proxy mostly solved, we are only sharing ideas each other.
(or If that is what you like, I can split posts later.  :thumbsup:
If that is the case let me know which posts to split by reply number.)

Less talk, more code, release improved WimBuilderUI...
I do more code at weekend, more talk between weekend. They feed each other.  :lol:
and better for my low free time...
eg. I will study your cmd posts Saturday along with cmd ping thing with proxy...

well as my macro is make up by batch, it also could be WinBuilder's macro.  :embarrassed:
Even better, They can be used out of box without Winbuilder  :great:

I have premature work on this idea which can also be used by WimBuilderUI ,
 Obviously I need to learn cmd more to create stable codes ....
(I do not want to confuse you now like before as in case: beta update.cmd )

* cmdWrapper.exe    DONE  :lol:
* AddDrivers MACRO   WORKING
Good news.  :great:

an idea: cmdWrapper.exe may have another standalone topic somewhere around
http://theoven.org/index.php?board=18.0

which can be used by others out of creating creating pe..

I mean neednot take more time on the UI with the develop-stoped project(WinBuilder).
builder (winbuilder) stopped : officially ~7 years ago, following my prediction ~8.5 or more years ago
 (I predicted It will be a failure with this kind of development, I am right again..
   Maybe I have a relation with Nostradamus  :lol:, all my predictions on this area become true after years...
     after all objections with pm games post games etc.....  )

projects (Win10PESE, Win10XPE even Gena) continues, so it is worth to improve plugins for projects.

ps: In fact development, I had made before was not related to UI, but with luck, it fit your UI request well.

:turtle:

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

update Macro Library plugin
Win10PESE\Basic\Macro Library (ML) --> green "Download Plugin" button on right-top of plugin UI
now v46r26

This should fix "Test Internet - Ping" button on "Proxy Settings - WinHTTP" plugin .... ?!

:turtle:

« Last Edit: December 29, 2018, 03:19:19 PM by Lancelot »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

1). after I manual canceled the firefox downloading(CTRL+C), it shows
    [Call,Download : Terminated by End User]
but still retry to download again even knows the cancel operation is by myself.

Just could find time test...

with Mozilla Firefox ESR (P) plugin, Download button downloads 2 files, when you cancel download you cancel only first download.
Mozilla Firefox ESR (P) plugin updated to v7 with only "label update" to avoid misunderstanding.

+
you can also test with
Apps\HD Tasks\Imaging\HDClone
-> Download button
which downloads single file... cancel download (CTRL+C or close cmd window with X) works fine...

:turtle:

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

2). [Teset Internet - Download] takes long time without proxy settings, but said "OK :)" to me in the end.
(forget to remove the test file?)

It is a simple test, you can also do the same test with a codebox:

for now same codes used:
Code: [Select]
[Process]
If,ExistFile,%api%,AddVariables,%api%,ApiVar,GLOBAL
//--
Call,FileDelete,%ProjectTemp%\InternetTest.txt
Call,Download,%ProjectTemp%\,http://yomi.cwcodes.net/InternetTest/InternetTest.txt
If,ExistFile,%ProjectTemp%\InternetTest.txt,Message,Success,Information
Else,Message,Failure,Information

ps: codebox eg. http://theoven.org/index.php?topic=2672.0

If it returns success on your test,
 there should be InternetTest.txt file at %ProjectTemp%\InternetTest.txt
?


Tip:
to open %ProjectTemp% folder:
Code: [Select]
[Process]
If,ExistFile,%api%,AddVariables,%api%,ApiVar,GLOBAL
//--
Call,OpenDir,%ProjectTemp%



3). Better to have a timeout settings for testing button.
You are right. :great:
I missed timout with aria, just added 6 seconds timeout (-t 6) to aria2 now.
This will work with "Test Internet - Download" button.

-->
update Macro Library plugin
Win10PESE\Basic\Macro Library (ML) --> green "Download Plugin" button on right-top of plugin UI
now v46r27

+
"Test Internet - Ping" button already use ping timeout ...  ?
Lancelot reply 36 : http://TheOven.org/index.php?topic=2669.msg30327#msg30327

See you.... :turtle:

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

After reading replies after ~20,

It seems only 2 main things left about proxy.

1)
[Test Internet - Download] button !?

1b)
If anything I missed so far.
-
new [Test Internet - Ping] works fine ?
etc. etc. ?


2)
Quote
Still, I guess I understand what you are looking for.
new plugin Utils\'Proxy Settings' v7 on servers.

update plugin feature is good  :thumbsup:
(for the little update is better than download 300MB+ ZIP)

After all we discussed so far ends, I have 1 last proxy test related to this subject.

Good night.
:zzz: :turtle:

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi slore,

Better write last thing to test behind proxy, and maybe useful at home since with Bob.Omb lots of updates .....
(no need to download zip every week  :wink:)

Utils\Update XXXX (Exact and Secure)
download only updates from server, with blexactserver.exe tool.

I suspect blexactserver.exe use IE to download from server, so it should work fine behind proxy with IE proxy settings.
Or maybe not, I do not know.
If not I can provide an alternative way that will work behind proxy but not as solid as blexactserver.exe
If yes good news.  :rolleyes:


To test:
First do following:
Utils\Update XXXX (Exact and Secure)
-> advanced menu
---> Start Download
this will get blexactserver work automatically, hopefully you will see downloads at right bottom.


Further Manual (Direct) tests:
---> Open Dir

Rename:
Plugin_blexactserver.exe -> blexactserver.exe
Plugin_blexactserver.ini -> blexactserver.ini

blexactserver.ini
AutoStart=NO
AutoClose=NO

Double click blexactserver.exe --> Start button

=> this will get you manually and easily test blexactserver.exe

Good Luck.
:turtle:

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
ila_rendered

too slow for me, and it is later, I will reply tomorrow.
I can't upload PICs on other PC, so upload now.

 

Powered by EzPortal