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

Installer and Portable mode #21

Closed
gbakeman opened this issue Sep 28, 2017 · 18 comments
Closed

Installer and Portable mode #21

gbakeman opened this issue Sep 28, 2017 · 18 comments

Comments

@gbakeman
Copy link
Contributor

This issue is to discuss the need for an installer for releases, and the addition of a "portable mode" to complement this.

Installer

@AtlasHackert:

Preferably an .msi, so that WFN can be pushed onto machines in a domain. However, I have no experience with this, and it seems quite complicated; that's why I haven't tried it yet.

Domain/IT friendliness sounds like a goal here. Visual Studio 2017 currently has an extension for creating installer projects, which I think is what we're looking for. Here is apparently a modern article from Microsoft on deploying applications. Our options appear to be:

  1. Publish a Windows app
  2. Deploy with ClickOnce (may be useful for domains/orgs)
  3. Create an MSI-based WiX installer (probably what we're looking for)

Portable mode

While on the subject of installing, users may desire to continue using WFN as it currently operates; in a self-contained, portable mode. It should keep (most) of its file operations restricted to its own running directory at the time. In normal (non-portable) mode, WFN is installed to the Program Files directory, and under Windows rules no further writing will occur within that directory. Since WFN supports Vista or higher, it may be worthwhile to reference this Microsoft Developer blog post for guidance on which files should go where.

@gbakeman gbakeman mentioned this issue Sep 28, 2017
@RoyiAvital
Copy link

Any chance for a @PortableApps flavored portable mode?

@wokhan
Copy link
Owner

wokhan commented Jun 2, 2018

Sorry for the delay, I'm not able to work on this project as much as I'd like to (well, I didn't for years and the project continued thanks to @AtlasHackert)... I hope I'll get back on it soon to help fixing / improving v2.
Regarding your statement, in fact I hate installers and MSIs, this is why there is none... Enterprise deployment could be managed by a custom script (but anyway it's a tool for power users and it shouldn't be used in enterprises).

Regarding a portable apps flavor, it should be easy to provide but one has to keep in mind that the outgoing notification should be kept disabled then (it's the only part in WFN that requires it not to be moved once enabled).
And finally, regarding a Windows Store version, I'll do one ultimately (keeping it open source of course). I'm used to it so it would be easy... Stay tuned!

@RoyiAvital
Copy link

@wokhan ,
Currently, does the program writes anything to registry or outside its working directory?
Is there a way to make it work without Administrator Privileges (Even if it means reduced capabilities)?

@AtlasHackert
Copy link
Collaborator

WFN currently saves the settings in the appropriate AppData-folders, under the user account. WFN needs Administrator-rights to register (and unregister) the popup, and you need Administrator-rights to add/remove firewall rules. I don't think it's going to get much more portable than it already is?

@RoyiAvital
Copy link

@AtlasHackert ,
I would be happy if I could have option to have "View Only Mode" with no Administrator Privileges.

Regarding data, it would be great if there was an option to make it save the settings file in the working directory of the application.

@wokhan
Copy link
Owner

wokhan commented Jun 3, 2018

Should be easy to keep the settings file locally, but as @AtlasHackert mentioned, WFN is already "portable" as long as you don't enable the notifications. We can add an option anyway...

@RoyiAvital
Copy link

@wokhan ,
It would be great!

Also, what about a mode which doesn't require Administrator Privileges?
I know it will limit features.
Could we have "View Only" mode without Administrator Privileges?

@wokhan
Copy link
Owner

wokhan commented Jun 4, 2018

You should already be able to launch it as a standard user, with limited access to security features... But I have to admit I haven't tried for a long time, I'll check that asap.
@AtlasHackert : Not the right place to say hi, but hi! ;-)

@geotavros
Copy link

Not sure if this was fixed already but earlier I had a crash window appear every time firewall blocked the connection. This happened when being logged in as Guest on a PC with WFN enabled.

@RoyiAvital
Copy link

@wokhan ,
When I double click it it asks for Administrator Privileges (UAC).
If I click No it won't run (Nothing happens).

Is there a different way to run it as regular user?

@AtlasHackert
Copy link
Collaborator

@geotavros: Windows 7 or 8, I presume? (I believe the Guest-account is unsupported by Microsoft in Windows 10.)
@wokhan: Hi to you too! :D

@RoyiAvital
Copy link

Any update on working in non administrator mode?

@DJCrashdummy
Copy link

perhaps my comment at #53 (comment) may be interesting for this discussion too. ...and hopefully you know Chocolatey.

@RoyiAvital
Copy link

I'm more worried about being able to make it work without Admin rights.

@DJCrashdummy
Copy link

DJCrashdummy commented Mar 26, 2019

AFAIK (i'm using windows very occasionally) installing/updating via chocolatey has nothing to do with the program itself working with or without admin rights.

@RoyiAvital
Copy link

RoyiAvital commented Mar 26, 2019

@DJCrashdummy , I was talking about running the program itself which requires Admin rights.

I actually like better Windows approach of installers instead of Linux Style of Chocolatey.

@wokhan
Copy link
Owner

wokhan commented Mar 6, 2020

Almost a year later: we may have a look at how we can separate admin features from non admin ones, but I'm afraid functionality will be quite limited without admin rights (no process information, no device stats, and so on...). If the console is unusable, it would be useless to allow a non-admin version 🙄

@wokhan
Copy link
Owner

wokhan commented Mar 6, 2020

Closing the issue as the installer will be added to the roadmap.
Regarding my previous post, comment will be updated later to confirm it cannot be done, once verified.

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

6 participants