Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow bootstrapper to work behind coporate proxy. #137

Open
flucas1 opened this issue Sep 26, 2022 · 2 comments
Open

allow bootstrapper to work behind coporate proxy. #137

flucas1 opened this issue Sep 26, 2022 · 2 comments

Comments

@flucas1
Copy link

flucas1 commented Sep 26, 2022

The bootstraper is not proxy friendly.

The settings needs to be applied modified the .config file after unboxing the initial file.
See for example https://bycode.dev/2021/08/06/how-to-install-visual-studio-2021-preview-behind-corporate-proxy/

The file Install-VStudioInstaller.ps1 has the logic to unbox the installer via the variable $shouldUnpackBox at line 154

The chocolatey package could be made proxy friendly if forcing the unpackbox when the user specifies a proxy from the command line,
and the modify the vs_setup_bootstrapper.exe.config to include that proxy information.

If this cannot be implemented, is there a way to pass the bootstraperPath when doing "choco install visualstudio2022buildtools" ?

@jberezanski
Copy link
Owner

is there a way to pass the bootstraperPath

Yes, this should work:

choco install visualstudio2022buildtools --package-parameters "--bootstrapperPath C:\SomeDir\my_bootstrapper.exe"

The chocolatey package could be made proxy friendly...

I recognize the worth of such a feature. I probably won't implement it myself, but I would accept a PR.

@saper
Copy link

saper commented Aug 1, 2023

Good idea @flucas1 -I tried to follow the logic there and the debug log but unfortunately it seems that my local modifications to the Install-VStudioInstaller.ps1 file in the extensions\chocolatey-visualstudio seem to have any effect (even adding some simple Write-Debug commands)...

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

No branches or pull requests

3 participants