码迷,mamicode.com
首页 > 数据库 > 详细

静默安装、授权及卸载Microsoft SQL Server、NET Framework、Windows Installer 、ArcGIS License Manager、ArcGIS Engine(Silent install、uninstall and Authorization.. .through Setup Factory)基于Setup Factory

时间:2016-08-05 13:58:36      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

 通过Setup Factory写的代码大概有1700行,所以就不整理了。思路如下:

静默安装都是通过去Microsoft 和Esri的官网找到静默安装的命令,然后File.Run(...)或者Shell.Execute(...)一下;静默卸载就是搜素注册表,调用微软的卸载命令即可。

 

1、NET Framework静默安装(" /q /norestart")

File.Run(DOTNetFilePath, " /q /norestart","",SW_SHOWNORMAL, true);

 

2、ArcGIS License Manager、ArcGIS Engine静默安装(" /qb")

local strInstallerCommand = " /qb";
local nSetupResult = Shell.Execute(strInstallerDest,"open",strInstallerCommand,"", SW_SHOWNORMAL,true);

 

3、Microsoft SQL Server静默安装

/q /ACTION=Install
/FEATURES=SQL /INSTANCENAME=SQLEXPRESS /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /SAPWD="SQLEXPRESS" /IACCEPTSQLSERVERLICENSETERMS

附:

number Shell.Execute ( 

string  Filename,

string  Verb = "open",

string  Arguments = "",

string  WorkingFolder = "",

number  WindowMode = SW_SHOWNORMAL,

boolean WaitForReturn = false )

 

静默安装、授权及卸载Microsoft SQL Server、NET Framework、Windows Installer 、ArcGIS License Manager、ArcGIS Engine(Silent install、uninstall and Authorization.. .through Setup Factory)基于Setup Factory

标签:

原文地址:http://www.cnblogs.com/NaughtyCat/p/5740841.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!