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

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page