Java NSIS执行外部jar但不工作
我在HM NIS上运行这个程序,但是当我使用EXE启动时,它可以工作。脚本可以启动,但我的Jar无法正常工作。有人遇到过同样的问题吗? 这可能与(java.exe*32)有关吗 在W7 64位上:Java NSIS执行外部jar但不工作,java,nsis,Java,Nsis,我在HM NIS上运行这个程序,但是当我使用EXE启动时,它可以工作。脚本可以启动,但我的Jar无法正常工作。有人遇到过同样的问题吗? 这可能与(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
!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
你很可能和uac有问题 检查此解决方案: