question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change installation directory when not using 'oneClick' with NSIS

See original GitHub issue

electron-builder version

  • 5.12.1

Building for

  • windows nsis x64

Building on

  • linux x64(Ubuntu 16.04)

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 -

"build": {
    "appId": "com.somerandom.name",
    "productName": "RandomName",
    "asar":false,
    "win": {
      "target": "nsis",
      "title": "TitleValue",
      "version": "1.0.0",
      "authors": "User Name"
    },
    "nsis":{
      "oneClick": false
    }
  }

The Installation directory(tested with Windows 10) defaults to

C:\Users\username\AppData\Local\Programs\appname

How can the user be allowed to change the installation directory ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:15
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
Lyrillindcommented, Oct 2, 2016

+1 I think it’s common sense for allowing users to choose where to install.

1reaction
Pandaklscommented, Sep 5, 2019

But now, we have a boring installer even for updates, am i wrong ? How can I fix it in this idea :

    "nsisWeb": {
      "oneClick": "isUpdated",
      "perMachine": true,
      "allowToChangeInstallationDirectory": true
    },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove "Installation Complete" close prompt? - NSIS Forums
One-click installer : Remove "Installation Complete" close prompt?
Read more >
NSIS
Whether to allow user to change installation directory. ... To customize web installer, use the top-level nsisWeb key (not nsis ). If for...
Read more >
Nsis - changing installation directory
Currently I am in my installing directory say c:\Program File\My installer.I have to execute a demo.bat file that is stored at some other ......
Read more >
CUSTOM Installer w/ Electron - YouTube
This installer can have a license and allow the user to select the install directory. Furthermore, the user can uninstall the app now...
Read more >
Specify location where end users install from
Learn how to use the Publish Wizard to publish a ClickOnce application for the first time. Make later changes on the Publish page...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found