Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   problem with MUI_FINISHPAGE_RUN (http://forums.winamp.com/showthread.php?t=244517)

Brummelchen 24th April 2006 22:14

problem with MUI_FINISHPAGE_RUN
 
i need to run this script
PHP Code:

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

but nothing happens :(

i tried it several ways, these two works
PHP Code:

;--------------------------------
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 24th April 2006 23:01

Quote:

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:
PHP Code:

!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 24th April 2006 23:29

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:
PHP Code:

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

that did it :)

Red Wine 24th April 2006 23:34

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

Brummelchen 24th April 2006 23:43

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 ?


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.