Opening Control Panel / Display Properties

From NSIS Wiki
Revision as of 20:15, 9 April 2005 by ConversionBot (talk | contribs) (Wikipedia python library)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

How To Use

To open control panel (to let the user change some setting, for example) you can use RUNDLL32.EXE, like this:

Rundll32.exe shell32.dll,Control_RunDLL <contrl>,<applet>, <page>

For Display Properties / Screen Saver the command would be:

Rundll32.exe shell32.dll,Control_RunDLL Desk.cpl,@0, 1

So you can add some section at the end of your script for doing it with the Exec command:

Section "Display Properties"
        Exec 'Rundll32.exe shell32.dll,Control_RunDLL Desk.cpl,@0, 1'
SectionEnd

Page author: seu