鼠標(biāo)指針I(yè)NF制作方法
鼠標(biāo)指針I(yè)NF制作方法
愛(ài)學(xué)習(xí)的小伙伴們,你們知道鼠標(biāo)指針I(yè)NF制作方法嗎?不知道的話跟著學(xué)習(xí)啦小編一起來(lái)學(xué)習(xí)了解鼠標(biāo)指針I(yè)NF制作方法。
鼠標(biāo)指針I(yè)NF制作方法詳解
很多鼠標(biāo)指針都使用inf文件進(jìn)行安裝,我們也可以為自己制作的指針制作安裝文件,先來(lái)熟悉一下:
;INF文件頭,提供有效INF文件的版本信息
;在[Version]節(jié)中"Signature"項(xiàng)定義了該INF文件需要運(yùn)行在何種操作系統(tǒng)版本中。有$Windows NT$, $Chicago$, or $Windows 95$三個(gè)值供選擇,一般選擇$Chicago$即可
[Version]
signature="$CHICAGO$"
;安裝包含所關(guān)聯(lián)動(dòng)作(文件拷貝或刪除,注冊(cè)表鍵值更新、子鍵增刪等)在INF文件內(nèi)的節(jié)名指針,默認(rèn)情況下首先執(zhí)行該節(jié)內(nèi)容
[DefaultInstall]
;復(fù)制文件
CopyFiles = Scheme.Cur, Scheme.Txt
;增加注冊(cè)表鍵或鍵值
AddReg = Scheme.Reg
;指定羅列于一個(gè)節(jié)內(nèi)將被拷貝、刪除或重命名的文件在硬盤上的位置
[DestinationDirs]
;FileList1=10 ;安裝到Windows目錄
Scheme.Cur = 10,"%CUR_DIR%"
Scheme.Txt = 10,"%CUR_DIR%"
;定義Scheme.Reg
[Scheme.Reg]
HKCU,"Control Panel\Cursors\Schemes","%SCHEME_NAME%",,"%10%\%CUR_DIR%\%pointer%,%10%\%CUR_DIR%\%help%,%10%\%CUR_DIR%\%work%,%10%\%CUR_DIR%\%busy%,%10%\%CUR_DIR%\%Cross%,%10%\%CUR_DIR%\%Text%,%10%\%CUR_DIR%\%Hand%,%10%\%CUR_DIR%\%Unavailiable%,%10%\%CUR_DIR%\%Vert%,%10%\%CUR_DIR%\%Horz%,%10%\%CUR_DIR%\%Dgn1%,%10%\%CUR_DIR%\%Dgn2%,%10%\%CUR_DIR%\%move%,%10%\%CUR_DIR%\%alternate%,%10%\%CUR_DIR%\%link%"
; -- Common Information
;定義Scheme.Cur
[Scheme.Cur]
"Cursor.cur"
"Help.cur"
"Working.ani"
"Busy.ani"
"Cross.cur"
"Beam.cur"
"Pen.cur"
"Unavailable.cur"
"Size Horz.cur"
"Size Vert.cur"
"Resize Right.cur"
"Resize Left.cur"
"Resize All.cur"
"Alternate.cur"
"Hand.cur"
;定義一個(gè)或多個(gè)本地化字符串
[Strings]
CUR_DIR = "Cursors\Vista"
SCHEME_NAME = "Vista"
pointer = "Cursor.cur"
help = "Help.cur"
work = "Working.ani"
busy = "Busy.ani"
cross = "Cross.cur"
text = "Beam.cur"
hand = "Pen.cur"
unavailiable = "Unavailable.cur"
vert = "Size Horz.cur"
horz = "Size Vert.cur"
dgn1 = "Resize Right.cur"
dgn2 = "Resize Left.cur"
move = "Resize All.cur"
alternate = "Alternate.cur"
link = "Hand.cur"
一個(gè)完整的inf文件,稍加改動(dòng),就可以使用了:
[Version]
signature="$CHICAGO$"
[DefaultInstall]
CopyFiles = Scheme.Cur, Scheme.Txt
AddReg = Scheme.Reg
[DestinationDirs]
Scheme.Cur = 10,"%CUR_DIR%"
Scheme.Txt = 10,"%CUR_DIR%"
[Scheme.Reg]
HKCU,"Control Panel\Cursors\Schemes","%SCHEME_NAME%",,"%10%\%CUR_DIR%\%pointer%,%10%\%CUR_DIR%\%help%,%10%\%CUR_DIR%\%work%,%10%\%CUR_DIR%\%busy%,%10%\%CUR_DIR%\%Cross%,%10%\%CUR_DIR%\%Text%,%10%\%CUR_DIR%\%Hand%,%10%\%CUR_DIR%\%Unavailiable%,%10%\%CUR_DIR%\%Vert%,%10%\%CUR_DIR%\%Horz%,%10%\%CUR_DIR%\%Dgn1%,%10%\%CUR_DIR%\%Dgn2%,%10%\%CUR_DIR%\%move%,%10%\%CUR_DIR%\%alternate%,%10%\%CUR_DIR%\%link%"
; -- Common Information
[Scheme.Cur]
"Cursor.cur"
"Help.cur"
"Working.ani"
"Busy.ani"
"Cross.cur"
"Beam.cur"
"Pen.cur"
"Unavailable.cur"
"Size Horz.cur"
"Size Vert.cur"
"Resize Right.cur"
"Resize Left.cur"
"Resize All.cur"
"Alternate.cur"
"Hand.cur"
[Strings]
CUR_DIR = "Cursors\Vista"
SCHEME_NAME = "Vista"
pointer = "Cursor.cur"
help = "Help.cur"
work = "Working.ani"
busy = "Busy.ani"
cross = "Cross.cur"
text = "Beam.cur"
hand = "Pen.cur"
unavailiable = "Unavailable.cur"
vert = "Size Horz.cur"
horz = "Size Vert.cur"
dgn1 = "Resize Right.cur"
dgn2 = "Resize Left.cur"
move = "Resize All.cur"
alternate = "Alternate.cur"
link = "Hand.cur"用記事本另存為"安裝文件.inf",就可以使用了~
鼠標(biāo)指針I(yè)NF制作方法相關(guān)文章: