rxs2k5
18th April 2006 06:59 UTC
About Messagebox
Hi pros,
Is it possible
MessageBox MB_OK|MB_ICONEXCLAMATION "Do not reboot after this installation"
replacing MB_OK|MB_ICONEXCLAMATION as a timer count down, during installation, before 1.exe is being installed, the messagebox will appear as a timer message and then close by itself.
I did refer to the forum and the manual, but it only give me all this. But nothing with a time.
I hope someone could help me.
Afrow UK
18th April 2006 09:23 UTC
Use Banner plugin, with a Sleep instruction in between.
-Stu
rxs2k5
18th April 2006 09:51 UTC
Banner::show /NOUNLOAD /set 76 "Please Read While Loading" "Please do not reboot after this installation"
Banner::getWindow /NOUNLOAD
how do I add the sleep functions ???
Afrow UK
18th April 2006 10:12 UTC
Banner::show /NOUNLOAD /set 76 "Please Read While Loading" "Please do not reboot after this installation"
Sleep 3000
Banner::destroy
-Stu
rxs2k5
18th April 2006 10:34 UTC
there's one part of the forum topic says I can have mulitple
Banner::show /NOUNLOAD
I tried doing this
Banner::show /NOUNLOAD /set 76 "Please Read While Loading" "Please do not...."
sleep 300
Banner::show /NOUNLOAD /set 77 "Please Read While Loading" "Please do not"
sleep 200
Can you show me how can I adjust to have multiple banners message.
thanks for the help
Afrow UK
18th April 2006 12:27 UTC
You can't show multiple banners; only one.
-Stu
Joel
18th April 2006 15:00 UTC
MSIBanner might help you
rxs2k5
18th April 2006 15:37 UTC
Hi joel, its kinda complicated.
Can you show me how can I use the source int this
# Installer sections
Section Main SEC0000
SetOutPath $TEMP
SetOverwrite on
Banner::show /NOUNLOAD /set 76 "Please Read While Loading" "Please do not reboot after this installation"
Sleep 1000
Banner::destroy
File "G:\xxx.exe"
File "upgrade.exe"
ExecWait "$TEMP\xxx.exe"
ExecWait "$TEMP\upgrade.exe"
Delete "$TEMP\xxx.exe"
Delete "$TEMP\upgrade.exe"
SectionEnd
# Installer functions
Function .onInit
InitPluginsDir
FunctionEnd
Afrow UK
18th April 2006 18:39 UTC
If you would like to change the text on the banner while it is displayed, do like so:
Banner::show /NOUNLOAD "Calculating important stuff..."
Banner::getWindow /NOUNLOAD
Pop $R0
GetDlgItem $R0 $R0 1030
Sleep 5000
SendMessage $R0 ${WM_SETTEXT} 0 "STR:Calculating more important stuff..."
Sleep 5000
SendMessage $R0 ${WM_SETTEXT} 0 "STR:Nearly done now..."
Sleep 5000
Banner::destroy
-Stu
rxs2k5
18th April 2006 18:56 UTC
thanks stu its working well