near page custom or somewhere else and in which conjunction ?
thx
where to put "MUI_ABORTWARNING_TEXT" ?
12 posts
Hi 🙂
Well, you can define "MUI_ABORTWARNING_TEXT" before the other MUI defines for instance. But what do you mean by
evilO/Olive
Well, you can define "MUI_ABORTWARNING_TEXT" before the other MUI defines for instance. But what do you mean by
and in which conjunction?
evilO/Olive
it doesnt work here:
nsis2 final
i always get the standard text (cancel installation) - but this is a standalone program (abort this program);--------------------------------
;Configuration
!include "MUI.nsh"
!include WinMessages.nsh
; vars
!define TEMP1 $R6
!define TEMP2 $R7
;--------------------------------
;Version Information
; language section
;--------------------------------
;Modern UI Configuration
page custom dosilent
page custom selectaction
page custom save01
page custom save02
page custom save03
page custom save04
page custom save05
!define MUI_ABORTWARNING
!define MUI_ABORTWARNING_TEXT "Sind Sie sicher, dass Sie ${PRODUCT} abbrechen wollen?"
;--------------------------------
;Languages
BrandingText "Copyright 2003 ..."
!insertmacro MUI_LANGUAGE "German"
;--------------------------------
nsis2 final
It should be set before all page macros.
sry no effect
!insertmacro MUI_LANGUAGE "German"
if i remove this the abort warning is empty
is this important?
;--------------------------------
;Modern UI Configuration
!define MUI_ABORTWARNING
!define MUI_ABORTWARNING_TEXT 'Sind Sie sicher, dass Sie ${PRODUCT} abbrechen wollen?'
page custom dosilent
page custom selectaction
page custom save00
page custom restore00
!insertmacro MUI_LANGUAGE "German"
if i remove this the abort warning is empty
It works fine for me. Please attach minimal example that reproduces the problem.
abort warning is shown from the running-control at the end which uses
MUI_TEXT_ABORTWARNING
but if i define this var i get an error within
!insertmacro MUI_LANGUAGE "German"
>> Error in macro MUI_LANGUAGE on macroline 5
if i use MUI_ABORTWARNING_TEXT the abort message is empty
MUI_TEXT_ABORTWARNING
but if i define this var i get an error within
!insertmacro MUI_LANGUAGE "German"
>> Error in macro MUI_LANGUAGE on macroline 5
if i use MUI_ABORTWARNING_TEXT the abort message is empty
You should define MUI_ABORTWARNING_TEXT, not MUI_TEXT_ABORTWARNING.
f*ck
i think this is a specific solution but in my case the running control uses the predfined message from nsh instead the other one i wish too..
>> MessageBox MB_YESNO|MB_ICONEXCLAMATION "Sind Sie Sicher, daß Sie '${PRODUCT}' beenden wollen ?" IDNO Running
works well
call me dude :/
##edit
tried it Joost, it's no go 🙁
##edit2
i gonna cry in my pillow now - dont understand it - now it works 😢 🧟 😁 (maybe a typo)
i think this is a specific solution but in my case the running control uses the predfined message from nsh instead the other one i wish too..
>> MessageBox MB_YESNO|MB_ICONEXCLAMATION "Sind Sie Sicher, daß Sie '${PRODUCT}' beenden wollen ?" IDNO Running
works well
call me dude :/
##edit
tried it Joost, it's no go 🙁
##edit2
i gonna cry in my pillow now - dont understand it - now it works 😢 🧟 😁 (maybe a typo)
So you are using the language string yourself instead of using the standard abort warning?
As you can find in the documentation, you cannot use language strings in .onInit.
As you can find in the documentation, you cannot use language strings in .onInit.
>> As you can find in the documentation, you cannot use language strings in .onInit.
means what ? 😕
means what ? 😕
That you'll have to use the .onGuiInit function (for visisble installers) or a section (for silent installers).