|
|
#1 |
|
Junior Member
Join Date: Oct 2002
Posts: 3
|
.scr to .exe question
Hello,
After doing a few unsuccesful searches I've finally run into this forum. I'm trying to make an installer file for my screensaver (.scr) I got as far as having the file copied into 'windows' directory from the .exe - however, this is where I got stuck. Normally to install the screensaver, one would have to rightclick on the .scr file, select 'install', which would call up the 'display properties / screensavers' and set the screensaver as 'default screensaver' automatically. How can I get this working with NSIS installer? Any tips/suggestions would be much appreciated. Thank you, Stepan |
|
|
|
|
|
#2 |
|
Member
Join Date: Mar 2002
Location: Mass
Posts: 85
|
I believe you'll need to edit the registry...changing HKCU\Control Panel\Desktop and modifying the "SCRNSAVE.EXE" string value to be the full path to your .scr file.
Similar article from MS here: http://support.microsoft.com/default...;Q185348#Task1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2002
Posts: 3
|
Thanks for the tip but this seems to be for W2000 only and considered I'll want this to work for 98up at least I think I'll have to find out what the 'display options/screensaver' do or the .scr / install.
![]() anyone else? step |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Taken from HKCR\scrfile\shell\install\command:
rundll32.exe desk.cpl,InstallScreenSaver %l Using ExecWait 'rundll32.exe desk.cpl,InstallScreenSaver "C:\whatever\myscreensaver.scr"' should produce the same results as right clicking on the .scr file and choosing install. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2002
Location: Mass
Posts: 85
|
heh, good thinking Kichik...
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Oct 2002
Posts: 3
|
Thanks a lot - that did the job...
|
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: Oct 2003
Posts: 7
|
Still requires user input on Win98
Quote:
rundll32 desk.cpl,InstallScreenSaver "c:\windows\blonde~1.scr" from a DOS box actually brings up the screensaver dialog with the desired screensaver selected, but the user still has to click OK. Is there any way of removing this behaviour? Thanks, Nick |
|
|
|
|
|
|
#8 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Not that I know of.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#9 | |
|
Junior Member
Join Date: Oct 2003
Posts: 7
|
Quote:
Thanks, Nick |
|
|
|
|
|
|
#10 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Should be possible using the System plug-in. However, window finding will be difficult with localized Windows versions.
|
|
|
|
|
|
#11 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
It should be possible using FindWindow, GetDlgItem and SendMessage too, without System.dll. Though the best method would probably include a plug-in using hooks (something like DisableMB). You'd still have to find a unique way to identify the dialog but I think GetModuleFileName should be able to help there because the hook would be loaded into the process's memory.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|