Opening Control Panel / Display Properties: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.) |
m (Updated author links.) |
||
Line 1: | Line 1: | ||
{|align=right | |||
|<small>Author: [[{{ns:2}}:seu|seu]] ([[{{ns:3}}:seu|talk]], [[{{ns:-1}}:Contributions/seu|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
== How To Use == | == How To Use == | ||
To open control panel (to let the user change some setting, for example) you can use RUNDLL32.EXE, like this: | To open control panel (to let the user change some setting, for example) you can use RUNDLL32.EXE, like this: | ||
Line 14: | Line 18: | ||
SectionEnd | SectionEnd | ||
</highlight-nsis> | </highlight-nsis> | ||
Revision as of 03:01, 30 April 2005
Author: seu (talk, contrib) |
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