Archive: Is there a way to show the finish page in a silent install?


Is there a way to show the finish page in a silent install?
See subject.


.


don't know of any.

maybe:

!includeWinMessages.nsh

ShowWindow$HWNDPARENT
${SW_SHOW}

in the _SHOW customfunction of the finish page?

jackkoho,

If this is still in relation to your wrapped installer, why not just do an ExecWait on the wrapped installer, while hiding the wrapper and then, after the wrapped installer finishes, show the wrapper installer again that will now go to the finish page?


I am playing around with that right now but was hoping I could get the first option to work. I feel it would be more elegant and look better.


you could catch silent mode with .OnInit (IfSilent), and change it back to gui mode (SetSilent) while also setting a custom variable to note the fact the user requested silent mode. you can then use a PRE function for each page in your installer, which, if the variable is set to reflect silent mode, runs the abort command to prevent pages from displaying, that is until the finish page which doesn't do it!

alternatively you could always just display a message box to inform the user it completed (only when in silent mode - IfSilent).


is there any way to pass a variable from one installer to the next (command line probably)?


See these 3 functions:
http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.11

Stu


For now I am using the ExecWait but I will check out those functions.