排序
NSIS安装类型
InstType '完全安装' ;1 InstType '推荐安装' ;2 InstType '精简安装' ;3 SetcionIN 1 2 3 ;包含在1、2、3 SetcionIN 2 3 ;包含在2、3 SetcionIN 1 2 RO ;包含在1、2且不可更改
NSIS 获取CPU
cpudesc::tell Pop $0 ;full identification string in $0 StrCpy $1 $0 4 90 ;pull out four characters after RAM= IntOp $1 1$1 - 10000 ;ignore any leading zeros, the number is not octa...
使用NSIS制作安装程序
首先看一看NSIS的最简单的例子提供了什么,NSIS的Example目录下有一个例子叫做:example1.nsi,用文本编辑器打开它,其内容为: ; 注释说明 ;-------------------------------- ; 安装程序的名...
NSIS 确认路径
Function .onVerifyInstDir IfFileExists $INSTDIR\Winamp.exe PathGood Abort ; 如果 $INSTDIR 不是 Winamp 路径,则不让用户安装在这里 PathGood: FunctionEnd Function .onVerifyInstDir IfF...
NSIS 脚本学习
; 安装包信息 !define PRODUCT_NAME 'CoXoo' ; 要修改安装包,快捷方式版本,请修改此常量 !define PRODUCT_VERSION '1.6.1' !define PRODUCT_PUBLISHER 'CoXoo.com' !define PRODUCT_WEB_SITE ...
卸载页面收集信息表单演示
!include nsDialogs.nsh !include LogicLib.nsh OutFile 'Test.EXE' Name 'Test' !include 'MUI2.nsh' Page custom ReportPageShow ReportPageLeave !insertmacro MUI_LANGUAGE 'SimpChinese' V...
nsis中 单句跳转的陷阱
在nsis里面我们经常看到类似下面的语句: IfSilent +1 +3 QQDrNsis::SendInstallProgress Goto +2 里面有几个很诡异的魔术数,是什么意思咩?其实很简单,就是相对(当前语句)跳转到某条语句的...
不完全脚本注释
该脚本使用 HM VNISEdit 脚本编辑器向导产生 ; 安装程序初始定义常量 !define PRODUCT_NAME '产品名称' !define PRODUCT_VERSION '产品版本号' !define PRODUCT_PUBLISHER '产品发布者' !defin...
NSIS 窗体顶置
主要部分: !define HWND_TOPMOST -1 !define SWP_NOSIZE 1 !define SWP_NOMOVE 2 System::Call 'user32::SetWindowPos(i $HWNDPARENT, i ${HWND_TOPMOST}, i0, i0, i0, i0, i ${SWP_NOSIZE}|${...
如何将路径添加到系统环境变量中
问:比如,我把 a.exe 用nsis包装好,安装到 c:\helloLib\a.exe,完成后,想把c:\helloLib\添加到系统环境变量的path里头,这样,在任何地方输入a.exe可执行。如何将路径添加到系统环境变量中?...
用户37588540 8小时前0
谢谢分享!用户93985409 20小时前0
谢谢分享!!!用户49916690 昨天0
感谢分享到彼岸 前天0
感谢分享用户23764627 前天0
谢谢分享用户23764627 前天0
谢谢分享