Archive: problem with MUI_FINISHPAGE_RUN


problem with MUI_FINISHPAGE_RUN
  i need to run this script

 !define MUI_FINISHPAGE_RUN "$\"$SYSDIR\rundll32.exe$\" shell32.dll,Control_RunDLL cttune.cpl" 

but nothing happens :(

i tried it several ways, these two works
;--------------------------------

>Name "cttune"
>Caption "cttune"
>OutFile "cttune_start.exe"
>AutoCloseWindow true
>;--------------------------------
>Section ""
>SectionEnd
>;--------------------------------
Function .onInit
print_on:
Exec '"$SYSDIR\rundll32.exe" shell32.dll,Control_RunDLL cttune.cpl'
Exec "$\"$SYSDIR\rundll32.exe$\" shell32.dll,Control_RunDLL cttune.cpl"
quit
FunctionEnd
>
as you can see one with ".." and one with '..'
$\" is " within ".." (otherwise error)

i cant use '..' in MUI_FINISHPAGE_RUN
and i dont want to use a custom page - NO!
pls help.

ps files are installed and dos-console works too

PPS how to open control panel with explorer call?
that would help instead

PPS how to open control panel with explorer call?
that would help instead
http://nsis.sourceforge.net/Opening_...lay_Properties
EDIT:
This one works perfectly:

define MUI_FINISHPAGE_RUN 

>!define MUI_FINISHPAGE_RUN_FUNCTION run_cpl
>!insertmacro MUI_PAGE_FINISH

>Function run_cpl
Exec 'Rundll32.exe shell32.dll,Control_RunDLL Desk.cpl,@0, 1'
>FunctionEnd
>

i want to open the control panel or the cpl itself

you show me what i already know and have tried - but it wont work

also does not work with MUI_FINISHPAGE_RUN:
>> Rundll32.exe shell32.dll,Control_RunDLL
(this opens the control panel only)

all infos about cpl here
http://www.wintotal.de/Tipps/Eintrag...ID=184&URBID=7

Ok, thats new for me:


  !define MUI_FINISHPAGE_RUN "$SYSDIR\rundll32.exe"

!define MUI_FINISHPAGE_RUN_PARAMETERS "shell32.dll,Control_RunDLL cttune.cpl"
that did it :)

did you try the MUI_FINISHPAGE_RUN_FUNCTION?
I posted an edit above about this.
This one works perfect for me :-)


thx a lot - idd i had a look at it last minutes.

i think i go to implement radiobuttons in the iospecial..,

damn i lost focus in that command :(

ps do you know the syntax for a pre-page before MUI_FINISHPAGE_RUN ?