无痕客

落花无情,流水无痕……

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

 

posted on 2011-05-31 22:12  无痕客  阅读(1057)  评论(0编辑  收藏  举报