NSI脚本的测试
使用官方脚本测试
将脚本拖动到 编译脚本页面
编译测试
修改脚本测试移动删除文件
; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there.
;
; example2.nsi expands on this by adding a uninstaller and start menu shortcuts.
;--------------------------------
; The name of the installer
Name "Example1"
; The file to write
OutFile "example1.exe"
; Request application privileges for Windows Vista
RequestExecutionLevel user
; Build Unicode installer
Unicode True
; The default installation directory
InstallDir $DESKTOP\Example1
;--------------------------------
; Pages
Page directory
Page instfiles
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File example1.nsi
CopyFiles $DOCUMENTS\FemurSeg-new.onnx $DESKTOP\FemurSeg-new.onnx
Delete $DESKTOP\FemurSeg-new.onnx
SectionEnd ; end the section