Jump to content

Custom cursors installation.


Worf

Recommended Posts

Hi.

I am in need of a little help here with the registy entries when installing cursors.

Below is my inf file that i use.

[Version]
signature="$WINDOWS NT$"
DriverVer=1.0,5.1.2600.5512

[DestinationDirs]
Cursors.CopyFiles = 10,Cursors

[DefaultInstall]

Copyfiles = Cursors.CopyFiles
AddReg = Cursor.AddReg


[SourceDisksFiles]
aero_arrow.cur = 1
aero_busy.ani = 1
aero_ew.cur = 1
aero_helpsel.cur = 1
aero_link.cur = 1
aero_move.cur = 1
aero_nesw.cur = 1
aero_ns.cur = 1
aero_nwse.cur = 1
aero_pen.cur = 1
aero_prec.cur = 1
aero_select.cur = 1
aero_unavail.cur = 1
aero_up.cur = 1
aero_working.ani = 1

[SourceDisksNames.x86]
1="Default Cursors","\win51",,"\i386"

[Cursors.CopyFiles]
"%AERO_ARROW.CUR%",aero_arrow.cur
"%AERO_BUSY.ANI%",aero_busy.ani
"%AERO_EW.CUR%",aero_ew.cur
"%AERO_HELPSEL.CUR%",aero_helpsel.cur
"%AERO_LINK.CUR%",aero_link.cur
"%AERO_MOVE.CUR%",aero_move.cur
"%AERO_NESW.CUR%",aero_nesw.cur
"%AERO_NS.CUR%",aero_ns.cur
"%AERO_NWSE.CUR%",aero_nwse.cur
"%AERO_PEN.CUR%",aero_pen.cur
"%AERO_PREC.CUR%",aero_prec.cur
"%AERO_SELECT.CUR%",aero_select.cur
"%AERO_UNAVAIL.CUR%",aero_unavail.cur
"%AERO_UP.CUR%",aero_up.cur
"%AERO_WORKING.ANI%",aero_working.ani

[Cursor.AddReg]
HKLM,%MP_REG_SCHEMES_HKLM%,%CURSOR_NAME%,,"""%10%\Cursors\aero_arrow.cur,%10%\Cursors\aero_helpsel.cur,%10%\Cursors\aero_working.ani,%10%\Cursors\aero_busy.ani,%10%\Cursors\aero_prec.cur,%10%\Cursors\aero_select.cur,%10%\Cursors\aero_pen.cur,%10%\Cursors\aero_unavail.cur,%10%\Cursors\aero_ns.cur,%10%\Cursors\aero_ew.cur,%10%\Cursors\aero_nesw.cur,%10%\Cursors\aero_nwse.cur,%10%\Cursors\aero_move.cur,%10%\Cursors\aero_up.cur,%10%\Cursors\aero_link.cur"""

[b]HKCU,%MP_REG_SCHEMES%,"",0x00000000,%CURSOR_NAME%
HKCU,%MP_REG_SCHEMES%,"Scheme Source",0x00010001,"1"
HKCU,%MP_REG_SCHEMES%,"Arrow",0x00020000,"%SYSTEMROOT%\Cursors\aero_arrow.cur"
HKCU,%MP_REG_SCHEMES%,"HELP",0x00020000,"%SYSTEMROOT%\Cursors\aero_helpsel.cur"
HKCU,%MP_REG_SCHEMES%,"AppStarting",0x00020000,"%SYSTEMROOT%\Cursors\aero_working.ani"
HKCU,%MP_REG_SCHEMES%,"Wait",0x00020000,"%SYSTEMROOT%\Cursors\aero_busy.ani"
HKCU,%MP_REG_SCHEMES%,"Crosshair",0x00020000,"%SYSTEMROOT%\Cursors\aero_prec.cur"
HKCU,%MP_REG_SCHEMES%,"IBeam",0x00020000,"%SYSTEMROOT%\Cursors\aero_select.cur"
HKCU,%MP_REG_SCHEMES%,"NWPen",0x00020000,"%SYSTEMROOT%\Cursors\aero_pen.cur"
HKCU,%MP_REG_SCHEMES%,"No",0x00020000,"%SYSTEMROOT%\Cursors\aero_unavail.cur"
HKCU,%MP_REG_SCHEMES%,"SizeNS",0x00020000,"%SYSTEMROOT%\Cursors\aero_ns.cur"
HKCU,%MP_REG_SCHEMES%,"SizeWE",0x00020000,"%SYSTEMROOT%\Cursors\aero_ew.cur"
HKCU,%MP_REG_SCHEMES%,"SizeNWSE",0x00020000,"%SYSTEMROOT%\Cursors\aero_nesw.cur"
HKCU,%MP_REG_SCHEMES%,"SizeNESW",0x00020000,"%SYSTEMROOT%\Cursors\aero_nwse.cur"
HKCU,%MP_REG_SCHEMES%,"SizeAll",0x00020000,"%SYSTEMROOT%\Cursors\aero_move.cur"
HKCU,%MP_REG_SCHEMES%,"UpArrow",0x00020000,"%SYSTEMROOT%\Cursors\aero_up.cur"
HKCU,%MP_REG_SCHEMES%,"Hand",0x00020000,"%SYSTEMROOT%\Cursors\aero_link.cur" [/b]


[Strings]
AERO_ARROW.CUR = "aero_arrow.cur"
AERO_BUSY.ANI = "aero_busy.ani"
AERO_EW.CUR = "aero_ew.cur"
AERO_HELPSEL.CUR = "aero_helpsel.cur"
AERO_LINK.CUR = "aero_link.cur"
AERO_MOVE.CUR = "aero_move.cur"
AERO_NESW.CUR = "aero_nesw.cur"
AERO_NS.CUR = "aero_ns.cur"
AERO_NWSE.CUR = "aero_nwse.cur"
AERO_PEN.CUR = "aero_pen.cur"
AERO_PREC.CUR = "aero_prec.cur"
AERO_SELECT.CUR = "aero_select.cur"
AERO_UNAVAIL.CUR = "aero_unavail.cur"
AERO_UP.CUR = "aero_up.cur"
AERO_WORKING.ANI = "aero_working.ani"
MP_REG_SCHEMES = "Control Panel\Cursors"
MP_REG_SCHEMES_HKLM = "SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes"
CURSOR_NAME = "Aero"

Now, the problem i am having is with the text in Bold. It seems to get written to the registry ok as the Areo cursors show up on the 'Please Wait' screen but on the Welcome screen the cursors revert back to the default cursors and in the registry i get the following instead of the lines in bold.

HKCU,Control Panel\Cursors

(Default)					Aero
Hand "%SYSTEMROOT%\Cursors\aero_link.cur"
Scheme Source 0x00000001 (1)

And if i right click on the inf file and select install, everything is as it should be.

Is there something in any of the other .inf files that might be causing this?

Many Thanks for any help.

Regards

Worf

Edited by Worf
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...