Skip to content
⌘ NSIS Forum Archive

where to put "MUI_ABORTWARNING_TEXT" ?

12 posts

Brummelchen#

where to put "MUI_ABORTWARNING_TEXT" ?

near page custom or somewhere else and in which conjunction ?

thx
evilO#
Hi 🙂

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
Brummelchen#
it doesnt work here:
;--------------------------------
;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"

;--------------------------------
i always get the standard text (cancel installation) - but this is a standalone program (abort this program)

nsis2 final
Brummelchen#
sry no effect


;--------------------------------
;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
is this important?
!insertmacro MUI_LANGUAGE "German"

if i remove this the abort warning is empty
Brummelchen#
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
Brummelchen#
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)
Joost Verburg#
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.
Brummelchen#
>> As you can find in the documentation, you cannot use language strings in .onInit.

means what ? 😕
Joost Verburg#
That you'll have to use the .onGuiInit function (for visisble installers) or a section (for silent installers).