|
在将LabVIEW以及其他的NI工具部署到一个大量的工程时,经常需要通过vbs脚本与静态安装自动化安装过程
这个过程包括创建一个批许可安装器,然后根据驱动与开发环境的区别编写不同的文档,这可以通过命令行来完成
产生的文档对于开发环境是XML格式的,对于驱动安装是TXT格式的
一旦开发环境与驱动安装包安装了,文档也生成了,就可以通过vbs脚本进行调用,如下所示:
Development Environment
EXIT_CODE = oShell.Run (chr(34) & kSoftwareRoot & "I:/NI Developer Suite 2014 DS1 DVD\setup.exe" & chr(34) & " /applyspecfile i:\specfile /q /r:n /confirmCriticalWarnings /disableNotificationCheck /acceptlicenses yes /log C:\logfile.txt",,True)
Drivers
EXIT_CODE1 = oShell.Run (chr(34) & kSoftwareRoot & "I:\NI Developer Suite 2014 DS1 DVD\_Src\DriverDVD\DCD-Feb14-1\setup.exe" & chr(34) & " i:\specfile\specfile.txt /q /r:n /acceptlicenses yes /disableNotificationCheck /log c:\logname.txt",,True)
|