-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Change installation directory when not using 'oneClick' with NSIS #596
Comments
If you want to install for all users, set |
+1 For this one. Allowing user to install to a custom location. |
It is easy to do, will be implemented soon. But! Think twice — are you sure that your users will be more happy with boring installer instead of one-click (and without admin rights requirement)? |
The default path works fine with one-click installs, it makes sense.This issue only applies if one-click install is not required. For such cases I want the user to be able to install to any location. If the user is an Administrator he should be allowed to choose the path suitable for his system configuration. |
@develar |
+1 |
Is this possible to achieve using an |
@domachine Yes. But if you are able to make such change, it is better to send pull request. |
@develar Ok, I'd happily send a pull-request. I'm just a little bit overwhelmed with this complex NSIS config. Currently figuring out the proper location to insert the |
OK, nope 😄 . The following include errors:
|
@domachine You need to write completely different NSIS script — Or change https://github.com/electron-userland/electron-builder/blob/master/templates/nsis/boringInstaller.nsh and send PR (probably another files should be modified as well). |
@develar No problem. Do you have any hints on the template location where it might make sense to include such an option? Currently I'm hacking here . As soon as I get somethin' working, I'll open a pull-request.Edit: Ah, I see your updated answer. Thx for the information 👍 |
This is a quick n dirty change which works for me. I just wanted to keep these changes in this pull-request to elaborate and discuss on it. Regard this as a starting point to solve electron-userland#596. Still lacking are e.g. tests, of course.
Fixed in 11.1.0. |
Thanks to all for the awesome new feature ! |
But now, we have a boring installer even for updates, am i wrong ?
|
electron-builder version
Building for
Building on
Assuming 'oneClick' is set to false for NSIS, and two package.json scheme is used with the development package.json having the build object as follows -
The Installation directory(tested with Windows 10) defaults to
How can the user be allowed to change the installation directory ?
The text was updated successfully, but these errors were encountered: