nsis 第37页
NSIS源码,NSIS教程,NSIS插件,NSIS程序
NSIS刷新文件图标-永恒心锁-分享互联网

NSIS刷新文件图标

关联文件图标后,图标没变化,则需要刷新文件图标,代码: System::Call shell32.dll::SHChangeNotify(l, l, i, i) v (0x08000000, 0, 0, 0)
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
0233012
获取文件版本信息-永恒心锁-分享互联网

获取文件版本信息

!include 'FileVerInfo.nsh' Name 'GetFileVerInfo' Caption '$(^Name)' OutFile 'GetFileVerInfo.exe' XPStyle on Function .onGUIInit StrCpy $0 '文件 $WINDIRnotepad.exe 的版本信息:$r$n' ...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
023298
即时获取复选框通知-永恒心锁-分享互联网

即时获取复选框通知

outfile 'CheckboxNotify.exe' showinstdetails show licenseData 'QQ.rtf' !define NOCHECKED_TEXT '请选择一个勾选' !include WinMessages.nsh !include LogicLib.nsh page license page cust...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
0232610
NSIS清理托盘图标-永恒心锁-分享互联网

NSIS清理托盘图标

!include WinMessages.nsh !include '${NSISDIR}ExamplesSystemSystem.nsh' Call RefreshSysTray Function RefreshSysTray FindWindow $0 'Shell_TrayWnd' '' FindWindow $0 'TrayNotifyWnd' ''...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
023218
创建关于按钮-永恒心锁-分享互联网

创建关于按钮

SetCompressor /SOLID lzma SetCompress force XPStyle on !include 'MUI.nsh' !include '创建关于按钮.nsh' OutFile '创建关于按钮.EXE' Name '创建关于按钮' SetFont /LANG=2052 'tahoma' 8 !...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
0231614
NSIS——InstallOption文件 自定义页面 数据库连接配置-永恒心锁-分享互联网

NSIS——InstallOption文件 自定义页面 数据库连接配置

注意:state是显示的文本或值、Flags是操作相关的,要取值有事件的必须写。 ; Ini file generated by the HM NIS Edit IO designer. [Settings] NumFields=8 [Field 1] Type=Groupbox Text=连接...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁9年前
0230810
禁用关闭按钮-永恒心锁-分享互联网

禁用关闭按钮

OutFile 'Nsistest.exe' Page components Name 'test' Section 'Test' SectionEnd Function .onGUIInit System::Call 'user32::GetSystemMenu(i$hwndparent,i 0)i.R1' System::Call 'user32::Re...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
023039
NSIS 注册表中键值是否存在-永恒心锁-分享互联网

NSIS 注册表中键值是否存在

;定义注册表主键 !define HKEY_CLASSES_ROOT 0x80000000 !define HKEY_CURRENT_USER 0x80000001 !define HKEY_LOCAL_MACHINE 0x80000002 !define HKEY_USERS 0x80000003 OutFile OpenReg.exe XP...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁9年前
0230315
获取路径最后一个目录名称-永恒心锁-分享互联网

获取路径最后一个目录名称

XPStyle on OutFile 'Test.EXE' Name 'Test' Section 'Test' Push 'D:Program FilesTencentQQ' Push '' Call GetAfterChar Pop $R0 MessageBox MB_OK $R0 SectionEnd Function GetAfterChar Exc...
永恒心锁的头像-永恒心锁-分享互联网永恒心锁10年前
0229814
NSIS创建互斥,退出重复运行的程序-永恒心锁-分享互联网

NSIS创建互斥,退出重复运行的程序

!define MyMutex_Update 'MyMutex_Update' Section System::Call 'kernel32::CreateMutexA(i 0, i 0, t '${MyMutex_Update}') i .r1 ?e' Pop $R0 StrCmp $R0 0 +2 Quit SectionEnd
永恒心锁的头像-永恒心锁-分享互联网永恒心锁9年前
022975