Swapan Das
13th January 2007 05:12 UTC
Add status message like 'processing' & 'completed' on the bottom of the Finish Page
Hi,
objective:I want to add status messages like:
"Please wait...Processing.."
and "Completed..." on the bottom of the Finish Page
Scenario:
When the user clicks the Finish Page Run check box, I performing certains multiple things by calling a function through MUI_FINISHPAGE_RUN_FUNCTION "MyFunction".
I can bundle lot things here like, restoring a big SQL database which will consume a bit of time, and the user may thing whats up,no response? (he might not look at the cpu led, that it is working heavely!).
So I want to first display msg "processing.."
and after the complettion of my job a msg with "Completed..." on the bottom of the finish page.
With regards,
Swapan
Red Wine
13th January 2007 10:38 UTC
Sorry I'm a bit confused on this:
MUI_FINISHPAGE_RUN_FUNCTION "MyFunction"
do you use a command that waits for the process (e.g. ExecWait) within this function?
Normally, when users hit the finish button means that installer terminates.
Swapan Das
13th January 2007 13:13 UTC
I was just waiting for your response!
Here I'm explaining you, what I'm doing:
what I'm doing:
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_TEXT "MyApp has been successfully installed."
!define MUI_FINISHPAGE_RUN_TEXT "Create Demo Setup"
!define MUI_FINISHPAGE_RUN_FUNCTION "MyFunction"
As you can see, I'm not calling MyApp.exe My Application exe, instead calling the Function MyFunction. Which will perform certain tasks and finally will run MyApp.exe from .onGUIEnd.
Function MyFunction
;- calling certain udfs
Call Function1
Call Function2
...
...
FunctionEnd
Function Function1
...creation of data
...this can take some time
...
FunctionEnd
Function Function2
...
...
FunctionEnd
Function .onGUIEnd
${If} $RunFRetailWithDemoData = 1
Exec '"$INSTDIR\MyApp.exe"'
${Endif}
FunctionEnd
Red Wine
13th January 2007 13:58 UTC
Alright, you may do it the way you like, this is the entire meaning of NSIS after all :)
So I want to first display msg "processing.."
and after the complettion of my job a msg with "Completed..." on the bottom of the finish page.
The easiest way that I know so far, is the included banner plugin.
Swapan Das
13th January 2007 14:10 UTC
Can my job be accomplished throught this banner? Can you give a little hint.
Red Wine
13th January 2007 14:24 UTC
Hints already given within the included example and documentation.
Also I'm sure a forum search would pop up several releated threads :)
Swapan Das
15th January 2007 05:27 UTC
Ok, I'll check it.Thanks for the reply.