Skip to content
⌘ NSIS Forum Archive

problem with MUI_FINISHPAGE_RUN

5 posts

Brummelchen#

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
Red Wine#edited
PPS how to open control panel with explorer call?
that would help instead

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 
Brummelchen#
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
Für Zocker kann ein gutes Game Stunden dauern. Die neuesten Spiele sind oftmals so aufwendig gestaltet, dass man sich in […]


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 🙂
Red Wine#
did you try the MUI_FINISHPAGE_RUN_FUNCTION?
I posted an edit above about this.
This one works perfect for me :-)
Brummelchen#
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 ?