将nsis中整数的文件大小(KB)转换成标准格式(KB,MB)
/* 将整数的文件大小(B)转换成标准格式之一 注意:最大显示大小是MB By:Ansifa */ SetCompressor /SOLID lzma XPStyle on Var InSize Var OutSize OutFile '将nsis中整数的文件大小(KB)转换成标...
控制NSIS进度条控件的例子
/*控制NSIS进度条控件的例子*/ !include nsDialogs.nsh Name 'ProgressBar' OutFile 'ProgressBar Test.EXE' LoadLanguageFile '${NSISDIR}ContribLanguage filesSimpChinese.nlf' ;新建一个自...
判断X86,X64,IA64操作系统
SetCompressor /SOLID lzma XPStyle on !include WinVer.nsh OutFile '判断X86,X64,IA64操作系统.EXE' Name '判断X86,X64,IA64操作系统' Section ${If} ${AtLeastWinXP} System::Alloc 36 pop $...
判断当前win操作系统,系统版本,win7系统
SetCompressor /SOLID lzma XPStyle on OutFile '判断当前win操作系统.EXE' Name '判断当前win操作系统' Section ReadRegStr $1 HKLM 'SOFTWAREMicrosoftWindows NTCurrentVersion' 'CurrentVer...
显示Windows的About框
; ShellAbout.nsi ; ;-------------------------------- ; The name of the installer Caption 'NSIS ShellAbout API 演示' ; The file to write OutFile 'ShellAbout.exe' ; Request applicati...
批量筛选DLL是否可以通过regsvr32注册
/*一个批量筛选DLL是否可以通过regsvr32注册的工具*/ !include 'FileFunc.nsh' !insertmacro Locate OutFile '分选dll.EXE' Name '分选dll' Var Success Var Failed Section FileOpen $Success ...
在欢迎页面增加超链接
!include 'MUI.nsh' Outfile '在欢迎页面增加超链接.exe' !define MUI_PAGE_CUSTOMFUNCTION_PRE WelcomePageSetupLinkPre !define MUI_PAGE_CUSTOMFUNCTION_SHOW WelcomePageSetupLinkShow !ins...