脚本:显示Windows的About框(ShellAbout API)

优质
小牛编辑
124浏览
2023-12-01

引用脚本的内容:

; ShellAbout.nsi
;
;--------------------------------

; The name of the installer
Caption "NSIS ShellAbout API 演示"

; The file to write
OutFile "ShellAbout.exe"

; Request application privileges for Windows Vista
RequestExecutionLevel admin

;--------------------------------

; Pages
Page components ShellAbout

;--------------------------------
var tCaption
var tUser
var hIcon

Function ShellAbout
StrCpy $tCaption "NSIS ShellAbout API 演示"
StrCpy $tUser "作者: NSIS新手1号群"
StrCpy $hIcon 0
;参数: 对话框父窗口句柄($HWNDPARENT) 窗口标题($tCaption) 作者($tUser) 图标句柄($hIcon)
	System::Call `Shell32::ShellAboutA(i,t,t,i) i ($HWNDPARENT,"$tCaption","$tUser",$hIcon) .s`
FunctionEnd 

Section -
SectionEnd