Adding text to the completed dialog of an NSIS installerInstalling drivers from NSIS installer in x64 systemUninstallation Script in NSISNSIS: adding custom text into status text boxHow to add file to existing NSIS installerHow to create/customize a web download installer like flash using nsis?NSIS Guidance: Customer issues with various UAC scenarios with my installer and programHiding NSIS DialogChanging my NSIS installer Application VersionHow to show the Systray Icon and also the corresponding executable in the taskmanager by default when we run the installer using NSIS?How to create windows installer file, which needs to contain several other .exe files, using either pyinstaller or NSIS

What is going on with gets(stdin) on the site coderbyte?

Find the next value of this number series

Quoting Keynes in a lecture

Does Doodling or Improvising on the Piano Have Any Benefits?

Delete multiple columns using awk or sed

Why is so much work done on numerical verification of the Riemann Hypothesis?

What kind of floor tile is this?

Mimic lecturing on blackboard, facing audience

Do we have to expect a queue for the shuttle from Watford Junction to Harry Potter Studio?

Is it necessary to use pronouns with the verb "essere"?

When were female captains banned from Starfleet?

What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?

Is there a nicer/politer/more positive alternative for "negates"?

The IT department bottlenecks progress, how should I handle this?

What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?

How do I tell my boss that I'm quitting soon, especially given that a colleague just left this week

How to get directions in deep space?

What (the heck) is a Super Worm Equinox Moon?

Why Shazam when there is already Superman?

Can I turn my anal-retentiveness into a career?

What does Apple's new App Store requirement mean

Stack Interview Code methods made from class Node and Smart Pointers

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Multiplicative persistence



Adding text to the completed dialog of an NSIS installer


Installing drivers from NSIS installer in x64 systemUninstallation Script in NSISNSIS: adding custom text into status text boxHow to add file to existing NSIS installerHow to create/customize a web download installer like flash using nsis?NSIS Guidance: Customer issues with various UAC scenarios with my installer and programHiding NSIS DialogChanging my NSIS installer Application VersionHow to show the Systray Icon and also the corresponding executable in the taskmanager by default when we run the installer using NSIS?How to create windows installer file, which needs to contain several other .exe files, using either pyinstaller or NSIS













0















I'm trying to add text or add an extra dialog at the end of an NSIS installer. So, to clarify, when the install has completed successfully I want to show some information.



enter image description here



I've seen various examples that touch on it but none seem to actually present a solution.



Does anyone have any info that can help?










share|improve this question






















  • Why can't you use the finish page?

    – Anders
    Mar 8 at 1:16















0















I'm trying to add text or add an extra dialog at the end of an NSIS installer. So, to clarify, when the install has completed successfully I want to show some information.



enter image description here



I've seen various examples that touch on it but none seem to actually present a solution.



Does anyone have any info that can help?










share|improve this question






















  • Why can't you use the finish page?

    – Anders
    Mar 8 at 1:16













0












0








0








I'm trying to add text or add an extra dialog at the end of an NSIS installer. So, to clarify, when the install has completed successfully I want to show some information.



enter image description here



I've seen various examples that touch on it but none seem to actually present a solution.



Does anyone have any info that can help?










share|improve this question














I'm trying to add text or add an extra dialog at the end of an NSIS installer. So, to clarify, when the install has completed successfully I want to show some information.



enter image description here



I've seen various examples that touch on it but none seem to actually present a solution.



Does anyone have any info that can help?







installer nsis






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 23:45









Dan James PalmerDan James Palmer

97152052




97152052












  • Why can't you use the finish page?

    – Anders
    Mar 8 at 1:16

















  • Why can't you use the finish page?

    – Anders
    Mar 8 at 1:16
















Why can't you use the finish page?

– Anders
Mar 8 at 1:16





Why can't you use the finish page?

– Anders
Mar 8 at 1:16












1 Answer
1






active

oldest

votes


















0














You are already using the MUI so you can just customize the finish page text to fit your needs:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "Custom title"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TEXT "Custom text blah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$n"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English


And if that is unacceptable for whatever reason, you can create a totally custom page:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
AutoCloseWindow True ; Automatically move on from the InstFiles page
Page Custom MyFinishPageCreate
!insertmacro MUI_LANGUAGE English

!include nsDialogs.nsh

Function MyFinishPageCreate
!ifdef MUI_SYSVERSION
!insertmacro MUI_HEADER_TEXT "Title" "Sub-title"
!endif
nsDialogs::Create 1018
Pop $0
$NSD_CreateLabel 0 0 100% 12u "Blah blah blah"
Pop $0
$NSD_CreateLabel 0 30u 100% -30u "More blah blah blah"
Pop $0
nsDialogs::Show
FunctionEnd


If you want to display text directly on the InstFiles page you have to create a label control manually:



!include LogicLib.nsh
!include nsDialogs.nsh
!include WinMessages.nsh

Page InstFiles "" InstFilesShow

Var MyText
Function InstFilesShow
; Cannot use CreateWindowEx in a Section, must do it in the show callback
FindWindow $1 "#32770" "" $HWNDPARENT # Finds the inner dialog
System::Call 'USER32::CreateWindowEx(i$__NSD_Label_EXSTYLE,t "$__NSD_Label_CLASS",t "Text goes here",i$__NSD_Label_STYLE,i10,i100,i300,i200,p$1,p0,p0,p0)p.s'
Pop $MyText
ShowWindow $MyText 0
SendMessage $1 $WM_GETFONT 0 0 $2
SendMessage $MyText $WM_SETFONT $2 1
FunctionEnd

Section
$IfNot $Abort
ShowWindow $MyText 1
$EndIf
SectionEnd





share|improve this answer

























  • Thanks Anders, I'll give this a go and report back!

    – Dan James Palmer
    Mar 13 at 4:18










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55054607%2fadding-text-to-the-completed-dialog-of-an-nsis-installer%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You are already using the MUI so you can just customize the finish page text to fit your needs:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "Custom title"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TEXT "Custom text blah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$n"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English


And if that is unacceptable for whatever reason, you can create a totally custom page:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
AutoCloseWindow True ; Automatically move on from the InstFiles page
Page Custom MyFinishPageCreate
!insertmacro MUI_LANGUAGE English

!include nsDialogs.nsh

Function MyFinishPageCreate
!ifdef MUI_SYSVERSION
!insertmacro MUI_HEADER_TEXT "Title" "Sub-title"
!endif
nsDialogs::Create 1018
Pop $0
$NSD_CreateLabel 0 0 100% 12u "Blah blah blah"
Pop $0
$NSD_CreateLabel 0 30u 100% -30u "More blah blah blah"
Pop $0
nsDialogs::Show
FunctionEnd


If you want to display text directly on the InstFiles page you have to create a label control manually:



!include LogicLib.nsh
!include nsDialogs.nsh
!include WinMessages.nsh

Page InstFiles "" InstFilesShow

Var MyText
Function InstFilesShow
; Cannot use CreateWindowEx in a Section, must do it in the show callback
FindWindow $1 "#32770" "" $HWNDPARENT # Finds the inner dialog
System::Call 'USER32::CreateWindowEx(i$__NSD_Label_EXSTYLE,t "$__NSD_Label_CLASS",t "Text goes here",i$__NSD_Label_STYLE,i10,i100,i300,i200,p$1,p0,p0,p0)p.s'
Pop $MyText
ShowWindow $MyText 0
SendMessage $1 $WM_GETFONT 0 0 $2
SendMessage $MyText $WM_SETFONT $2 1
FunctionEnd

Section
$IfNot $Abort
ShowWindow $MyText 1
$EndIf
SectionEnd





share|improve this answer

























  • Thanks Anders, I'll give this a go and report back!

    – Dan James Palmer
    Mar 13 at 4:18















0














You are already using the MUI so you can just customize the finish page text to fit your needs:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "Custom title"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TEXT "Custom text blah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$n"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English


And if that is unacceptable for whatever reason, you can create a totally custom page:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
AutoCloseWindow True ; Automatically move on from the InstFiles page
Page Custom MyFinishPageCreate
!insertmacro MUI_LANGUAGE English

!include nsDialogs.nsh

Function MyFinishPageCreate
!ifdef MUI_SYSVERSION
!insertmacro MUI_HEADER_TEXT "Title" "Sub-title"
!endif
nsDialogs::Create 1018
Pop $0
$NSD_CreateLabel 0 0 100% 12u "Blah blah blah"
Pop $0
$NSD_CreateLabel 0 30u 100% -30u "More blah blah blah"
Pop $0
nsDialogs::Show
FunctionEnd


If you want to display text directly on the InstFiles page you have to create a label control manually:



!include LogicLib.nsh
!include nsDialogs.nsh
!include WinMessages.nsh

Page InstFiles "" InstFilesShow

Var MyText
Function InstFilesShow
; Cannot use CreateWindowEx in a Section, must do it in the show callback
FindWindow $1 "#32770" "" $HWNDPARENT # Finds the inner dialog
System::Call 'USER32::CreateWindowEx(i$__NSD_Label_EXSTYLE,t "$__NSD_Label_CLASS",t "Text goes here",i$__NSD_Label_STYLE,i10,i100,i300,i200,p$1,p0,p0,p0)p.s'
Pop $MyText
ShowWindow $MyText 0
SendMessage $1 $WM_GETFONT 0 0 $2
SendMessage $MyText $WM_SETFONT $2 1
FunctionEnd

Section
$IfNot $Abort
ShowWindow $MyText 1
$EndIf
SectionEnd





share|improve this answer

























  • Thanks Anders, I'll give this a go and report back!

    – Dan James Palmer
    Mar 13 at 4:18













0












0








0







You are already using the MUI so you can just customize the finish page text to fit your needs:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "Custom title"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TEXT "Custom text blah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$n"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English


And if that is unacceptable for whatever reason, you can create a totally custom page:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
AutoCloseWindow True ; Automatically move on from the InstFiles page
Page Custom MyFinishPageCreate
!insertmacro MUI_LANGUAGE English

!include nsDialogs.nsh

Function MyFinishPageCreate
!ifdef MUI_SYSVERSION
!insertmacro MUI_HEADER_TEXT "Title" "Sub-title"
!endif
nsDialogs::Create 1018
Pop $0
$NSD_CreateLabel 0 0 100% 12u "Blah blah blah"
Pop $0
$NSD_CreateLabel 0 30u 100% -30u "More blah blah blah"
Pop $0
nsDialogs::Show
FunctionEnd


If you want to display text directly on the InstFiles page you have to create a label control manually:



!include LogicLib.nsh
!include nsDialogs.nsh
!include WinMessages.nsh

Page InstFiles "" InstFilesShow

Var MyText
Function InstFilesShow
; Cannot use CreateWindowEx in a Section, must do it in the show callback
FindWindow $1 "#32770" "" $HWNDPARENT # Finds the inner dialog
System::Call 'USER32::CreateWindowEx(i$__NSD_Label_EXSTYLE,t "$__NSD_Label_CLASS",t "Text goes here",i$__NSD_Label_STYLE,i10,i100,i300,i200,p$1,p0,p0,p0)p.s'
Pop $MyText
ShowWindow $MyText 0
SendMessage $1 $WM_GETFONT 0 0 $2
SendMessage $MyText $WM_SETFONT $2 1
FunctionEnd

Section
$IfNot $Abort
ShowWindow $MyText 1
$EndIf
SectionEnd





share|improve this answer















You are already using the MUI so you can just customize the finish page text to fit your needs:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "Custom title"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TEXT "Custom text blah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$nblah blah blah$r$n"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English


And if that is unacceptable for whatever reason, you can create a totally custom page:



!include MUI2.nsh
!insertmacro MUI_PAGE_INSTFILES
AutoCloseWindow True ; Automatically move on from the InstFiles page
Page Custom MyFinishPageCreate
!insertmacro MUI_LANGUAGE English

!include nsDialogs.nsh

Function MyFinishPageCreate
!ifdef MUI_SYSVERSION
!insertmacro MUI_HEADER_TEXT "Title" "Sub-title"
!endif
nsDialogs::Create 1018
Pop $0
$NSD_CreateLabel 0 0 100% 12u "Blah blah blah"
Pop $0
$NSD_CreateLabel 0 30u 100% -30u "More blah blah blah"
Pop $0
nsDialogs::Show
FunctionEnd


If you want to display text directly on the InstFiles page you have to create a label control manually:



!include LogicLib.nsh
!include nsDialogs.nsh
!include WinMessages.nsh

Page InstFiles "" InstFilesShow

Var MyText
Function InstFilesShow
; Cannot use CreateWindowEx in a Section, must do it in the show callback
FindWindow $1 "#32770" "" $HWNDPARENT # Finds the inner dialog
System::Call 'USER32::CreateWindowEx(i$__NSD_Label_EXSTYLE,t "$__NSD_Label_CLASS",t "Text goes here",i$__NSD_Label_STYLE,i10,i100,i300,i200,p$1,p0,p0,p0)p.s'
Pop $MyText
ShowWindow $MyText 0
SendMessage $1 $WM_GETFONT 0 0 $2
SendMessage $MyText $WM_SETFONT $2 1
FunctionEnd

Section
$IfNot $Abort
ShowWindow $MyText 1
$EndIf
SectionEnd






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 18:23

























answered Mar 8 at 18:08









AndersAnders

70.8k1076129




70.8k1076129












  • Thanks Anders, I'll give this a go and report back!

    – Dan James Palmer
    Mar 13 at 4:18

















  • Thanks Anders, I'll give this a go and report back!

    – Dan James Palmer
    Mar 13 at 4:18
















Thanks Anders, I'll give this a go and report back!

– Dan James Palmer
Mar 13 at 4:18





Thanks Anders, I'll give this a go and report back!

– Dan James Palmer
Mar 13 at 4:18



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55054607%2fadding-text-to-the-completed-dialog-of-an-nsis-installer%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229