Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Attempt to fix Issue #10 Installer should read proxy settings #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacobdanner
Copy link

Please take these changes with a grain of salt. I was unable to get the installer to build locally for many many other reasons and figured it'd be best to pass along an 'example' of how this might be done.
It makes used of the ProxySettings plugin to get the proxy value for HTTP, the value on the stack is the checked and the --proxy flag is added properly.

Please take these changes with a grain of salt. I was unable to get the installer to build locally for many many other reasons and figured it'd be best to pass along an 'example' of how this might be done.
It makes used of the ProxySettings plugin to get the proxy value for HTTP, the value on the stack is the checked and the --proxy flag is added properly.
@protz
Copy link
Owner

protz commented Jun 9, 2012

Thanks! The VM that I'm using to generate the installer is at work, so I'll generate and test a new build with your changes on Monday.

Have a nice week-end!

jonathan

@protz
Copy link
Owner

protz commented Jun 11, 2012

Hi,

The patch does not compile as-is, so I had to change quite a few details to get the thing to compile. However, I'm pretty sure your code won't work since the documentation for ProxySettings says that 1) GetConnectionProxyByProtocol takes two parameters: a connection name (ProxySettings::GetConnectionName) and 2) a protocol (e.g. "ftp"), not a URL. Also, the wiki page at http://nsis.sourceforge.net/ProxySettings says that this is for dialup connections...

Can you please try your changes on a local copy and submit a new version of the patch once you're confident it works?

Thanks,

jonathan

@protz
Copy link
Owner

protz commented Jun 11, 2012

Also, http://cygwin.com/cygwin-ug-net/setup-net.html#internet-setup says:

The Direct Connection method of downloading will directly download the packages, while the IE5 method will leverage your IE5 cache for performance. If your organisation uses a proxy server or auto-configuration scripts, the IE5 method also uses these settings.

I wonder if we could use the "IE5 method" by default instead of querying the proxy server in the nsis script.

@jacobdanner
Copy link
Author

I have yet to be able to get the build to complete with/without my
changes which is definitely hindering me on this one.
I'll give this cygwin IE5 cache a look, great suggestion.
-jacobd

On Mon, Jun 11, 2012 at 1:55 AM, Jonathan Protzenko
[email protected]
wrote:

Also, http://cygwin.com/cygwin-ug-net/setup-net.html#internet-setup says:

The Direct Connection method of downloading will directly download the packages, while the IE5 method will leverage your IE5 cache for performance. If your organisation uses a proxy server or auto-configuration scripts, the IE5 method also uses these settings.

I wonder if we could use the "IE5 method" by default instead of querying the proxy server in the nsis script.


Reply to this email directly or view it on GitHub:
#11 (comment)

@protz
Copy link
Owner

protz commented Jun 14, 2012

If there's something unclear in the instructions that I gave in the
README file for the installer, I'd be happy to clarify / provide help.

On Thu 14 Jun 2012 11:50:31 PM CEST, Jacob Danner wrote:

I have yet to be able to get the build to complete with/without my
changes which is definitely hindering me on this one.
I'll give this cygwin IE5 cache a look, great suggestion.
-jacobd

On Mon, Jun 11, 2012 at 1:55 AM, Jonathan Protzenko
[email protected]
wrote:

Also, http://cygwin.com/cygwin-ug-net/setup-net.html#internet-setup says:

The Direct Connection method of downloading will directly download the packages, while the IE5 method will leverage your IE5 cache for performance. If your organisation uses a proxy server or auto-configuration scripts, the IE5 method also uses these settings.

I wonder if we could use the "IE5 method" by default instead of querying the proxy server in the nsis script.


Reply to this email directly or view it on GitHub:
#11 (comment)


Reply to this email directly or view it on GitHub:
#11 (comment)

@jacobdanner
Copy link
Author

Hey Protz,
I've been poking at this a little bit on the side. It's been a long time since I poked at C++, but if I'm understanding this correctly, the default for cygwin's setup.exe is to use IE settings by default. I'm trying to verify, but its possible this is an issue on my machine since my proxy is actually a configuration url.
http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/ConnectionSetting.cc?rev=2.8&content-type=text/x-cvsweb-markup&cvsroot=cygwin-apps

Thanks again for this project, I'll keep poking.
-jacobd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants