【问题标题】:NSIS execute external jar but not workingNSIS执行外部jar但不工作
【发布时间】: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

【问题讨论】:

    标签: java nsis


    【解决方案1】:

    你的 uac 可能有问题。

    检查这个解决方案:

    http://nsis.sourceforge.net/UAC_plug-in

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-02
      • 2017-07-15
      相关资源
      最近更新 更多