排序
注册表记录组件是否已选
!include 'MUI2.nsh' !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_LANGUAGE 'SimpChinese' Name '注册表记录组件是否已选' OutFile '注册表记录组件是...
单选框组
${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...
不同安装语言下使用不同的安装图片(Bitmap)
!define MUI_HEADERIMAGE !define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit !include MUI2.nsh !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_LANGUAGE Engl...
水波纹特效首页
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 $...
在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 nsDialogs.nsh Name nsDialogs OutFile nsDialogs.exe XPStyle on Var Dialog Var Getdlg Var Text Page custom nsDialogsPage Page instfiles Function nsDialogsPage nsDialogs::Cre...
如果只是判斷服務器操作系統,則可以使用 IsServerOS
${If} ${IsServerOS} SectionGetFlags ${SEC02} $R0 IntOp $0R $R0 | ${SF_SELECTED} SectionSetFlags ${SEC02} $R0 ${Else} SectionGetFlags ${SEC01} $R0 IntOp $0R $R0 | ${SF_SELECTED} Sec...
即时获取复选框通知
outfile 'CheckboxNotify.exe' showinstdetails show !define NOCHECKED_TEXT '请选择一个勾选' !include WinMessages.nsh !include LogicLib.nsh ;page license page custom CustomCreate Cust...
清理托盘图标
!include WinMessages.nsh !include '${NSISDIR}\Examples\System\System.nsh' Call RefreshSysTray Function RefreshSysTray FindWindow $0 'Shell_TrayWnd' '' FindWindow $0 'TrayNotifyWnd'...
是否有使用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 ...


用户39446236 20小时前0
听我说谢谢你,因为有你用户18578635 昨天0
謝謝分享用户51967017 昨天0
谢谢分享用户51967017 昨天0
谢谢分享用户93414211 昨天0
好了!感谢分享用户93414211 昨天0
好了!感谢分享