最新消息:

NSIS实现ArcEngine Runtime安装和自动注册

nsis 永恒心锁 876浏览 0评论
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”

永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » NSIS实现ArcEngine Runtime安装和自动注册

您必须 登录 才能发表评论!