lovespy108
28th December 2007 00:36 UTC
Can I add a control on the dialog box with code?
Can I add a control on the dialog box with code?
for example. I want to add a Static Label on the installfiles dialog box and set its text to 'Installing...'.Can I add the label with code?
If I can.How to do that?
Thank you very much!!!!!
lovespy108
28th December 2007 04:51 UTC
How to store the variable value of Install Setup for Uninstall Setup?
for example.in install setup,$LANGUAGE is 1033.I want $LANGUAGE is still 1033 in uninstall setup.
Red Wine
28th December 2007 05:28 UTC
Originally posted by lovespy108
How to store the variable value of Install Setup for Uninstall Setup?
for example.in install setup,$LANGUAGE is 1033.I want $LANGUAGE is still 1033 in uninstall setup.
checkout the included example MultiLanguage.nsi under examples/Modern Ui
Red Wine
28th December 2007 05:32 UTC
Re: Can I add a control on the dialog box with code?
Originally posted by lovespy108
Can I add a control on the dialog box with code?
for example. I want to add a Static Label on the installfiles dialog box and set its text to 'Installing...'.Can I add the label with code?
If I can.How to do that?
Thank you very much!!!!!
There's already a label on InstFiles page which you should be able to manage with SetDetailsPrint and DetailPrint.
Isn't it what you want?
lovespy108
28th December 2007 05:46 UTC
Originally posted by Red Wine
checkout the included example MultiLanguage.nsi under examples/Modern Ui
I don't want user to choose language in uninstall setup.
so I don't !insertmacro MUI_UNGETLANGUAGE.
I found if I do the following way.
Function un.onInit
StrCpy $LANGUAGE 1033
FunctionEnd
the uninstall setup will use English UI.
If StrCpy $LANGUAGE 2052,it will use Chinese UI.
So I want to define a virable in install setup to record the $LANGAUAGE value.Then I can use it in uninstall setup.
###install setup##
Var keepLanguageID
#################
Function un.onInit
StrCpy $LANGUAGE $keepLanguageID
FunctionEnd
The problem is how to keep $keepLanguageID's life cycle to un.onInit function!!
Red Wine
28th December 2007 05:55 UTC
Well, did you really check the suggested example and the uninstaller pops up the select language dialog?
lovespy108
28th December 2007 05:58 UTC
Re: Re: Can I add a control on the dialog box with code?
Originally posted by Red Wine
There's already a label on InstFiles page which you should be able to manage with SetDetailsPrint and DetailPrint.
Isn't it what you want?
For broadcasting background images,I changed the installfiles page to look like a banner with API functions.And added a Static Label on the page with "ResHacker.exe".
I want to enhance my script's removability,so I have a idea to add the Static Label on the installfiles page with API Function.But I don't know which function can realize that.
lovespy108
28th December 2007 06:12 UTC
Originally posted by Red Wine
Well, did you really check the suggested example and the uninstaller pops up the select language dialog?
The example keep the $LANGUAGE for uninstaller in register table.
I don't want to use that way.If user deleted the register table manually.then uninstaller cannot get right value.
Red Wine
28th December 2007 06:26 UTC
The only method for the uninstaller to know the selected language during installation is to read it somehow either from registry or from ini.
The suggested example automates this specific procedure for both installer and uninstaller.