superwan
29th August 2004 17:11 UTC
changing the text of "uninstpage components"
hello everybody
my wonderful .nsi is nearly finished, for a gpl software for tv on pc, K!TV (www.kastortv.org)
I wanted an uninstaller which can re-install on or more components... and of course which can uninstall
for that, i had to create a page components in the uninstaller, but I could'nt use the command :
!insertmacro MUI_UNPAGE_COMPONENTS because I need a function to abort the page in the case where the guy only wants to uninstall
is it ok ? :rolleyes:
so i have that :
UninstPage components un.Page3
and a function that works ;)
BUT the text is wrong in my page of components for what I wanna do...
how do I change the full text of my uninstpage components ??
is there any web page where all the commands to change the texts are written ???
thank you for helping me, and apologises for my really bad English ;)
see ya :D
superwan
31st August 2004 00:14 UTC
hello...
no answers ? Nobody's good enough to answer my simple question, which is how to change a text inside an uninst page ?
Perhaps the developpers don't want to say it's impossible to change the text...
Because it really seems to be the right answer...
As a matter of fact, I've searched and searched and searched :
I found a command for that :
ComponentText
The "componenttext" command doesn't work inside a function...
Wonderful !
I really don't understand the aim of such useless command !
The commands
!define mui_uncomponentspage
and
!define mui_componentspage
do a smarter job !!!
I tried another experience :
If I change the .nlf file... my .nsi wouldnt work on other computers...
The solution would be to modify the nlf from my nsi...
I tried to modify the text of $(^UnComponentsSubText1) inside my .nsh file...
Without success...
Is it possible to integrate some tags from the nlf file to my .nsh file ?
Otherwise, could the developpers make the command "componenttext" working inside a function ?
KrYpT
31st August 2004 05:55 UTC
Use !define MUI_PAGE_CUSTOMFUNCTION_PRE (or _SHOW) to abort and skip the page. See "Customize Modern UI Functions" in the MUI readme.
ComponentText works inside a PageEx block, if you really want to do it that way (but the above way is easier, I think)
superwan
31st August 2004 12:48 UTC
okay thank you, i'm gonna try this...
if i understand, i write :
!define MUI_PAGE_CUSTOMFUNCTION_show un.function
!insertmacro MUI_UNPAGE_COMPONENTS
ComponentText test1 test2 test3
is it what you say ?
superwan
31st August 2004 13:41 UTC
ok, I've done this :
!define MUI_PAGE_CUSTOMFUNCTION_PRE un.page3
!insertmacro MUI_UNPAGE_COMPONENTS
; !define MUI_UNTEXT_COMPONENTS_TITLE "test"
; !define MUI_UNTEXT_COMPONENTS_SUBTITLE "test2"
the !define MUI_UNTEXT etc... don't work !
the compiler says : already defined !
how can I do ?
KrYpT
31st August 2004 17:11 UTC
Put all !define statements that apply to a particular page immediately before the !insertmacro.
superwan
31st August 2004 22:43 UTC
alright, it works thanks to you, mister krypt...
good bye :D