排序
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制作安装程序
首先看一看NSIS的最简单的例子提供了什么,NSIS的Example目录下有一个例子叫做:example1.nsi,用文本编辑器打开它,其内容为: ; 注释说明 ;-------------------------------- ; 安装程序的名...
NSIS 确认路径
Function .onVerifyInstDir IfFileExists $INSTDIR\Winamp.exe PathGood Abort ; 如果 $INSTDIR 不是 Winamp 路径,则不让用户安装在这里 PathGood: FunctionEnd Function .onVerifyInstDir IfF...
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里面我们经常看到类似下面的语句: IfSilent +1 +3 QQDrNsis::SendInstallProgress Goto +2 里面有几个很诡异的魔术数,是什么意思咩?其实很简单,就是相对(当前语句)跳转到某条语句的...
卸载页面收集信息表单演示
!include nsDialogs.nsh !include LogicLib.nsh OutFile 'Test.EXE' Name 'Test' !include 'MUI2.nsh' Page custom ReportPageShow ReportPageLeave !insertmacro MUI_LANGUAGE 'SimpChinese' V...
不完全脚本注释
该脚本使用 HM VNISEdit 脚本编辑器向导产生 ; 安装程序初始定义常量 !define PRODUCT_NAME '产品名称' !define PRODUCT_VERSION '产品版本号' !define PRODUCT_PUBLISHER '产品发布者' !defin...
如何将路径添加到系统环境变量中
问:比如,我把 a.exe 用nsis包装好,安装到 c:\helloLib\a.exe,完成后,想把c:\helloLib\添加到系统环境变量的path里头,这样,在任何地方输入a.exe可执行。如何将路径添加到系统环境变量中?...
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}|${...
定义欢迎页面的标题字体大小
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ChageFONT !insertmacro MUI_PAGE_WELCOME Function ChageFONT GetDlgItem $0 $MUI_HWND 1201 createFont $1 'Tahoma' '11' '700' SendMessage $0 ${WM_S...
用户74299252 35分钟前0
解压密码用户16206511 1小时前0
试一下看看用户91275090 2小时前0
看看是不是要的那个版本用户35073095 3小时前0
太好了,有新版本了用户32693957 7小时前0
这个播放器最好用,谢谢分享用户74379480 23小时前0
感谢分享