Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Windows installer won't work in restricted environment #508

Closed
mirostauder opened this issue Aug 5, 2020 · 7 comments
Closed

Windows installer won't work in restricted environment #508

mirostauder opened this issue Aug 5, 2020 · 7 comments
Labels

Comments

@mirostauder
Copy link

mirostauder commented Aug 5, 2020

Describe the Bug

most office/workplace environments have restricted internet access
Windows installers won't work in restricted environments
i.e. when downloads are blocked/restricted

Steps To Reproduce

block file downloads or disconnect network
run Bitwarden-Installer-1.20.1.exe /S

Expected Result

Bitwarden installs or updates installed version

Actual Result

popup 'Please check you internet connection and retry.'
(also typo - you -> your)

Screenshots or Videos

Screenshot at 2020-08-05 12-33-32

Environment

windows

Additional Context

I know I can download the 7z file manually, that's not a solution for most deployment tools
a proper one file offline installer is needed

@mirostauder mirostauder changed the title Windows installer wont work in restricted environment Windows installer won't work in restricted environment Aug 5, 2020
@kspearrin
Copy link
Member

I am not sure I understand the solution. How can we provide an updated version if the application cannot access the internet?

@mirostauder
Copy link
Author

I am talking about a "Full Installer" aka "Standalone Installer" aka "Offline Installer"
In managed environments, an "Offline Installer" is once downloaded, verified, and then centrally deployed.
The installer should not access the internet.
The end application accessing internet is something different.
Also most update management tools deploying updates or new installs, require a single file "Offline Installer".

@cscharf
Copy link
Contributor

cscharf commented Aug 6, 2020

@kspearrin, Could this be accomplished using the electron-builder windows target of nsis as an option? Today we're using nsis-web but not the full nsis packaging option for distribution (assuming because this file gets pretty large). The nsis-web package is smaller and relies on downloading the core package file based on machine architecture from the internet (hence the need for connectivity) whereas the full nsis target includes all of the possible architecture packages inside of it (which makes it pretty big, but "offline").

@kspearrin
Copy link
Member

@cscharf The problem is that electron-builder doesn't support producing both nsis and nsis-web at the same time. See electron-userland/electron-builder#2588

@mirostauder Could just distribute the web installer with the downloaded .7z assets bundled with it in the same directory? That way avoids having to download anything.

@ghost
Copy link

ghost commented Feb 22, 2021

+1, need the standalone installer , with no requirement for network install file download

@cscharf
Copy link
Contributor

cscharf commented Feb 22, 2021

Have put a todo on our DevOps backlog to try to figure out a way to package a standalone, offline installer. Not sure about timing at this point however.

@bitwarden-bot
Copy link

Hi @mirostauder,
We're cleaning up our repositories in preparation for a major reorganization. Issues from last year will be marked as stale and closed after two weeks. If you still need help, comment to let us know and we'll look into it.
Thanks!

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

No branches or pull requests

5 participants