排序
删除自身
Name unpotplayer OutFile uninst.exe Function .onInit StrCmp '$EXEFILE' 'uninst.exe' 0 Next CopyFiles '$EXEPATH' '$TEMP\uninst_potplayer.exe' Exec '$TEMP\uninst_potplayer.exe' Quit ...
单选框组
${NSD_CreateRadioButton} 106u 12u 82u 14u '选项1' Pop $1 ${NSD_AddStyle} $1 ${WS_GROUP} ${NSD_CreateRadioButton} 106u 27u 82u 14u '选项2' Pop $1 ${NSD_CreateRadioButton} 106u 42u 8...
自定义页面之文本框必填
!include nsDialogs.nsh Name nsDialogs OutFile nsDialogs.exe XPStyle on Var Dialog Var Getdlg Var Text Page custom nsDialogsPage Page instfiles Function nsDialogsPage nsDialogs::Cre...
水波纹特效首页
Function Page0 nsDialogs::Create 1044 Pop $0 ${If} $0 == error Abort ${EndIf} GetDlgItem $0 $HWNDPARENT 1028 ShowWindow $0 ${SW_HIDE} GetDlgItem $0 $HWNDPARENT 1035 ShowWindow $0 $...
如果只是判斷服務器操作系統,則可以使用 IsServerOS
${If} ${IsServerOS} SectionGetFlags ${SEC02} $R0 IntOp $0R $R0 | ${SF_SELECTED} SectionSetFlags ${SEC02} $R0 ${Else} SectionGetFlags ${SEC01} $R0 IntOp $0R $R0 | ${SF_SELECTED} Sec...
在MessageBox – 从DLL用户图标
OutFile 'MessageBox_Ico_test.exe' !define MSGBOXPARAMS '(i, i, i, t, t, i, t, i, i, i) i' !define ID_ICO 36 ; 在DLL中的ID的图标 是1以上的整数 Function .onInit InitPluginsDir File /...
清理托盘图标
!include WinMessages.nsh !include '${NSISDIR}\Examples\System\System.nsh' Call RefreshSysTray Function RefreshSysTray FindWindow $0 'Shell_TrayWnd' '' FindWindow $0 'TrayNotifyWnd'...
即时获取复选框通知
outfile 'CheckboxNotify.exe' showinstdetails show !define NOCHECKED_TEXT '请选择一个勾选' !include WinMessages.nsh !include LogicLib.nsh ;page license page custom CustomCreate Cust...
是否有使用API函数管理员
OutFile 'IsUserAdmin-test.exe' Section System::Call setupapi::IsUserAdmin()i.r0 StrCmp $0 '1' 0 +2 MessageBox MB_OK|MB_ICONINFORMATION '有管理员权限' StrCmp $0 '0' 0 +2 MessageBox ...
到彼岸 昨天0
感谢分享用户23764627 昨天0
谢谢分享用户23764627 昨天0
谢谢分享用户23764627 昨天0
谢谢分享用户23764627 昨天0
感謝分享用户39308004 前天0
感谢分享。。。