Section "ArcEngineSection" SEC03 SetOutPath "$INSTDIR\EngineRuntime" File /r "EngineWindows\*.*" nsExec::ExecToLog "$INSTDIR\EngineRumtime\setup.exe"; Pop $0 StrCmp $0 "success" +1 +2 DetailPrint '安装ArcEngine Runtime失败' DetailPrint '成功安装ArcEngine Runtime' nsExec::ExecToLog "'c:\Program Files\ArcGIS\bin\SoftwareAuthorization.exe' -p Engine -lif '$INSTDIR\EngineRumtime\Engine93.ecp' -s"; Pop $0 StrCmp $0 "success" +1 +2 DetailPrint '安装ArcEngine Runtime Licence注册成功' Delete "$INSTDIR\EngineRumtime\*.*" Delete "$INSTDIR\EngineRumtime\Documentation\*.*" RMDir /r "$INSTDIR\EngineRuntime"SectionEnd
其中注册LICENCE的部分为
nsExec::ExecToLog "'c:\Program Files\ArcGIS\bin\SoftwareAuthorization.exe' -p Engine -lif '$INSTDIR\EngineRumtime\Engine93.ecp' -s";
http://blog.csdn.net/NickWar/archive/2010/02/04/5288987.aspx
转载于:https://www.cnblogs.com/wuhenke/archive/2011/05/31/2065224.html
相关资源:nsis打包 一键安装javaWEB项目,安装完后重启电脑,tomcat服务自动加载