NSIS - Option to show installation details using ShowInstDetails

See original GitHub issue
  • Version: 22.3.2
  • Target: windows

I would like to use the switch ShowInstDetails to show details about what the installer is currently doing. Is there a way to use this parameter already or would it be possible to add support for it?

Why: It would give feedback to the user about the progress and details

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
zhouJiecodecommented, Jun 13, 2022

i known the reason: look at the code in node_modules/app-builder-lib/templates/nsis/installSection.nsh:

${IfNot} ${Silent}
  SetDetailsPrint none
${endif}

we have to set SetDetailsPrint to both.

what i do is:

  • copy the file to my directory, modify SetDetailsPrint to both: SetDetailsPrint both
  • add a beforePack hook in package.json: "beforePack": "./script/beforePack.js",, and in the hook, to cover node_modules/app-builder-lib/templates/nsis/installSection.nsh with my file
// beforePack.js
exports.default = async function () {
  const newInstallNshPath = path.resolve(__dirname, '../build/myInstallSection.nsh');
  const destNshPath = path.resolve(__dirname, '../node_modules/app-builder-lib/templates/nsis/installSection.nsh');
  fs.renameSync(newInstallNshPath, destNshPath);
}

these code is needed too, they can be put in your installer.nsh:

!macro customHeader
  ShowInstDetails show
  ShowUninstDetails show
!macroend
2reactions
sstopkincommented, Jul 13, 2021

I’m getting same issue with version 22.11.7. Trying to build - “oneClick”: false

As I can see - “ShowInstDetails” and “ShowUninstDetails” options are set to “nevershow”. But for some reason overriding works fine for ShowUninstDetails and doesn’t work for ShowInstDetails. https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/templates/nsis/common.nsh#L5 As @yafp mentioned - I’m getting an empty UI from but no any installation log inside.

Any idea what happened here? Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to show details by default with NSIS installer
With NSIS a basic build will have a "Show Details" button which will show the installer script messages. Is there a way to...
Read more >
Chapter 4: Scripting Reference
This code will tell NSIS to first show the license page, then the components selection page, then the directory selection page and finally...
Read more >
Details not viewed in MUI? - NSIS Forums
Use ShowInstDetails outside of a section for a simpler solution. ... I mean the "Show Details" button at the end of the installation...
Read more >
NSIS - ITLnet
NSIS installers are generated by using the 'MakeNSIS' program to compile a NSIS ... ShowInstDetails, hide|show|nevershow, Sets whether or not the details of ......
Read more >
Installer Attributes - NSIS Documentation
Because this depends on the installers font, you should use SetFont before ... Replaces the default details button text of "Show details", if...
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