Var myCaption
(1)UninstallCaption "Application uninstall"
(2)UninstallCaption "$myCaption"
Function un.onInit
StrCpy $myCaption "Application uninstall"
MessageBox MB_ICONQUESTION|MB_YESNO "some words" IDYES +2
Abort
....
FunctionEnd
If I use way(1),the caption of MessageBox is "Application uninstaller".
but if I use way(2),MessageBox has no caption.
What's the reason?
Thanks very much!
UninstallCaption problem
8 posts
If I use way(1),the caption of MessageBox is "Application uninstall".
Re: UninstallCaption problem
Hi there!
The caption is initialised at runtime. It's not enough to change the variable.
Have a look at this wiki article:
Cheers
Bruno
Hi there!
The caption is initialised at runtime. It's not enough to change the variable.
Have a look at this wiki article:
Cheers
Bruno
Please submit a bug report for this. It should be possible to modify the caption on runtime, just like any other string.
The help documentation show:
4.8.1.41 UninstallCaption
caption
Sets what the titlebars of the uninstaller will display. By default, it is 'Name Uninstall', where Name is specified with the Name command. You can, however, override it with 'MyApp uninstaller' or whatever. If you specify an empty string (""), the default will be used (you can however specify " " to achieve a blank string).
*******************************************************
Accepts variables. If variables are used, they must be initialized in un.onInit.
********************************************************
So I initialize it in un.onInit.But failed.
4.8.1.41 UninstallCaption
caption
Sets what the titlebars of the uninstaller will display. By default, it is 'Name Uninstall', where Name is specified with the Name command. You can, however, override it with 'MyApp uninstaller' or whatever. If you specify an empty string (""), the default will be used (you can however specify " " to achieve a blank string).
*******************************************************
Accepts variables. If variables are used, they must be initialized in un.onInit.
********************************************************
So I initialize it in un.onInit.But failed.
This is still an issue. [Uninstall]Caption $Var renders captionless msgboxes.
If your message box is in .onInit or un.onInit then yes, it will not have a caption. Your message boxes need to be shown after.
Stu
Stu
I guess this has to do with $(^Caption)/languages initialization. That's a bummer if you need to change the caption in .onInit but it's not exactly critical so I'll do without it.