Install.cmd:
@echo off
REM ################################################################
REM Installs: Ant 1.7.1
REM Download link:
REM Contact information:
REM Documentation:
REM Created:
REM Modifyed:
REM Info:
REM Program reboots during install: No
REM Windows needs to be rebooted by SCCM after install: No
REM User interaction at install: No
REM Application dependencies: No
REM ################################################################
setlocal
REM Skapar katalog
md "c:\dev\ant-1.7.1"
REM Kopierar filer
xcopy /h /e "%~dp0ant-1.7.1*.*" "c:\dev\ant-1.7.1\" /Y
REM Sätter miljövariabel
%~dp0Set_Path.vbs
endlocal
REM Return exit code to SCCM
exit /B %EXIT_CODE%
Set_Path.vbs konfigurerar miljövariabler:
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set WshEnv = WshShell.Environment("SYSTEM")
WshEnv("Path") = WshEnv("Path") & ";C:\dev\ant-1.7.1\bin"