【发布时间】:2011-06-20 07:17:59
【问题描述】:
我在 HM NIS Edit 上运行它,但当我使用 EXE 启动时。该脚本能够启动,但我的 Jar 无法运行 10 个中的 10 个。有人遇到过同样的问题吗? 难道是(java.exe*32)跟它有关?
在 W7 64 位上:
!define S_NAME "dev"
Name "${S_NAME}"
OutFile "${S_NAME}.exe"
#!include FileFunc.nsh
#!insertmacro GetParameters
#Var CMD_ARGS
RequestExecutionLevel user
# Installer sections
Section -Main SEC0000
#${GetParameters} $CMD_ARGS
HideWindow
nsExec::Exec "java -jar D:\software.jar -n 0"
Quit
SectionEnd
【问题讨论】: