Old 9th June 2003, 11:58   #1
Gusman
Junior Member
 
Join Date: Jun 2003
Location: Asker, Norway
Posts: 2
Open Display Properties and select a theme

I'm making a theme for WinXp, and I'm almost finished... I have made a simple installer, but after copying the files I want it to open Display Properties and select my theme there, so that all the user have to do is to press ok. Is this possible?

btw, nsis rocks, I have used it as an installer for many of my apps...


[edit] Ouch! I am truly stupid... There was an easy solution for this... All I had to do was to execute the .theme file... Moderators are welcome to delete this thread if they want to...[/edit]
Gusman is offline   Reply With Quote
Old 9th June 2003, 12:32   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Why delete it? Someone else can find the answer here

Have you used ExecWait or ExecShell?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 9th June 2003, 13:40   #3
Gusman
Junior Member
 
Join Date: Jun 2003
Location: Asker, Norway
Posts: 2
I used ExecShell because Exec and ExecWait did not work...

Another question, how can I make the installer launch the theme when the user clicks "Finish"? Right now the theme is launched after the installer has copied the files, as a part of the general install section...
Gusman is offline   Reply With Quote
Old 9th June 2003, 15:30   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
In one of my apps I call the display too... But don't know YET
how to open an select item, check this code:
code:

OutFile "OpenCPL.exe"
Name "OpenCPL"

ComponentText "Hello"

Page components
Page instfiles

Section "Open Themes"
ExecShell "open" "rundll32.exe" "shell32.dll,Control_RunDLL themes.cpl,,2"
Quit
SectionEnd

Section "Open Appearance"
ExecShell "open" "rundll32.exe" "shell32.dll,Control_RunDLL desk.cpl,,2"
Quit
SectionEnd



* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 9th June 2003, 16:47   #5
DITMan
Junior Member
 
Join Date: Jun 2003
Location: Spain
Posts: 24
Hmmm... to achieve that i think there's an event called something like

.onInstallSuccess or something like that, I can't look it up in the documentation right now, but it exists in the scripting reference I think :P
DITMan is offline   Reply With Quote
Old 9th June 2003, 16:53   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Well...
it's only an example of the calling
of the control panel's Display...
but you can put something like this

Function ".onGUIEnd"
ExecShell "open" "rundll32.exe" "shell32.dll,Control_RunDLL themes.cpl,,2"
FunctionEnd


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump