On Tue, Jan 24, 2006 at 03:23:52PM +0200, Artturi Kyrömies enlightened us:
> ps. anyone found a way to install Visual Studio .NET 2003 with
> unattended, or is there already a script in the cvs/wiki somewhere I
> just haven't noticed?

I'm doing it, but it's a bit hackish. It seems the main installer for VS
doesn't wait for completion to exit, so I had to write a script that loops
looking for the entries to appear in the Start Menu to know that we are
(almost) done with the install. Here's what I have (watch for line breaks):

:: OPTIONAL: Install Microsoft Visual Studio .NET 2003

:: Install
todo.pl "math_vs7wait.bat"
todo.pl "start /wait %Z_PATH%\packages\vs7\vs\setup\setup.exe /unattendfile 
%Z_PATH%\packages\vs7\vs7.ini"

:: Install prereqs
todo.pl ".reboot-on 194 msiexec /qb /l* 
%SystemDrive%\Netinst\logs\vsruntime.txt /i %Z%\packages\vs7\wcu\bootstrap.msi 
REBOOT=ReallySuppress"
todo.pl ".reboot-on 194 msiexec /qb /l* %SystemDrive%\Netinst\logs\weccom.txt 
/i %Z%\packages\vs7\wcu\weccom.msi REBOOT=ReallySuppress"
todo.pl ".reboot-on 194 %Z%\packages\vs7\wcu\JSharpRedistCore\vjredist.exe /q:a 
/c:\"inst.exe /q /l\""


math_vs7wait.bat
:: Since vs.net setup returns, we need to wait until it's done. 
:: Check every 10 seconds for the program folder, then exit
@echo off
echo Waiting for VS.NET to complete...

:check
if exist "%AllUsersProfile%\Start Menu\Programs\Microsoft Visual Studio .Net 
2003" goto done

ping -n 10 localhost > nul
goto check

:done
:: Just to let everything settle...
ping -n 60 localhost > nul


-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to