NSIS——for循环的使用方法
!include 'LogicLib.nsh' OutFile 'Test_Loop.exe' Section Main 01 ${ForEach} $R0 0 100 + 5 MessageBox MB_OK $R0 ${Next} ${For} $R1 0 10 MessageBox MB_OK $R1 ${Next} SectionEnd
NSIS循环遍历INI文件内容
INI文件格式如: [Logon] 0CmdLine=hello.exe 0Parameters=123 1CmdLine=hello.exe 1Parameters=123 NSIS代码: !include 'LogicLib.nsh' Function UpdateScriptIni strcpy $Var_IniFile '$INST...
静默安装结束时启动程序
因为是静默安装,没有界面,所以我们不能用.onGUIEnd回调,那么,可以用.onInstSuccess回调么?答案是肯定的 Name app OutFile app.exe SilentInstall silent Section SectionEnd Function .onI...
安装窗口大小及居中设置
Name 'Test' OutFile 'Test.exe' Section SectionEnd Function .onGUIInit System::Call 'user32::GetSystemMetrics(i0)i.r1' System::Call 'user32::GetSystemMetrics(i1)i.r2' IntOp $1 $1 - ...
二进制在NSIS中的应用
!include nsDialogs.nsh !define BIT_CHECK_PROGRAMS 0x00000001 !define BIT_CHECK_DESKTOP 0x00000002 !define BIT_CHECK_TASKBAR 0x00000004 Var Flags Name Example OutFile Example.exe XP...
nsis的WmiInspector插件
Windows 支持的所有 WMI 类网址:https://msdn.microsoft.com/en-us/library/aa389273.aspx !addplugindir . Name TestWmiInspector OutFile TestWmiInspector.exe RequestExecutionLevel user ...
安装过程中取消安装范例
!include 'MUI2.nsh' !include 'LogicLib.nsh' outfile 'test.exe' ShowInstDetails show Caption '取消安装测试' !define MUI_ABORTWARNING_TEXT '你确定终止安装?' Var CompletedText Complet...