Ok, after this I'm done for the night...I'm starting to become obsessive about it and that means bad things. Here's an updated version that prompts you for proxy and number of cpu's.
Comparing what I have with the original message from Shuxclams:
1) Graphical install - obviously not possible via batch file
2) Option to install on network or single PC - need to integrate with script we did for IndyJaws. Incidentally, found rcmd.exe file in NT4 RK that allows you to remotely execute commands on a PC. Need to research more.
3) Abilty to schedule runtimes - Possible to add user prompts to create AT job. Not high on my priority list now, but easily implemented.
4) Option to choose TeAm or personal proxies - Done. Let's you specify IP/Hostname of whatever proxy you desire.
5) For the program to install as a service on Win9x/ME - WinNT/2K/XP - Done.
6) Option to install logging program (SETIdriver - SETILog) - No experience with either of these. Combine SETIQ with what we have here and it answers all my statistical/reporting needs. Not sure what these others offer.
7) If its a network install, a program installed to control the clients. - Whew. This will be tough. Won't even consider that tonight.
8) Link to Join Anandtech - Done.
Here's the goods, zip file has been updated for d/l:
echo off
rem Replace all instances of c:\ with X:\ if installing to another drive
rem Replace here and in the appropriate .reg files
echo Please press enter, F6, and enter again to submit all responses.
echo Yes, I know it's stupid, but blame it on Microsoft.
😉
echo
echo Please enter your proxy server (leave blank for none):
FOR /F "tokens=*" %%A IN ('more') DO SET PROXY=%%A
ECHO Your proxy is %PROXY%
if %OS% == Windows_NT goto :NT
:9x
set stidir=C:\%windir%\seti\
copy *.ocx c:\%windir%\system\
copy *.pif c:\%windir%\system\
copy w9xsrv.exe %stidir%\*.exe
copy sah0.exe %stidir%\seti.exe
copy *.sah %stidir%\
rem Attrib +h %stidir%
rem Left this in for those will want to make hidden, personally I don't.
rem Just remove the "rem" from the above line.
if not proxy == "" goto :9xproxy
else goto :9xregedit
:9xproxy
copy SAH_9x.reg SAH_9x.tmp
echo REGEDIT4 > sah_9x.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices] >> sah_9x.reg
echo "Seti"="C:\\Windows\\Seti\\W9xSRV.EXE -b -f \"C:\\Windows\\Seti\\Seti.exe -proxy %proxy%\"" >> sah_9x.reg
:9xregedit
regedit /s sti-bk.reg
if exist SAH_9x.tmp copy SAH_9x.tmp SAH_9x.reg
:vb
VBRun60sp4.exe /Q
goto :finish
echo A reboot is necessary to start the process.
echo Check the state.sah file to ensure SETI is running properly.
rem **************************************************************
rem Begin NT
rem **************************************************************
:NT
mkdir C:\%windir%\System32\SAH0
rem C:\%windir%\System32\Attrib +h C:\%windir%\System32\SAH0
copy instsrv.exe C:\%windir%\System32\instsrv.exe
copy srvany.exe C:\%windir%\System32\srvany.exe
copy SAH0.exe C:\%windir%\System32\SAH0\SAH0.exe
copy user_info.sah C:\%windir%\System32\SAH0\user_info.sah
C:\%windir%\System32\instsrv SAH0 C:\%windir%\System32\srvany.exe
if not proxy == "" goto :NTproxy
else goto :CheckCPU
:NTproxy
copy SAH_NT.reg SAH_NT.tmp
echo REGEDIT4 > sah_NT.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAH0] >> sah_NT.reg
echo "Type"=dword:00000010 >> sah_NT.reg
echo "Start"=dword:00000002
echo "ErrorControl"=dword:00000001 >> sah_NT.reg
echo "ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,\ >> sah_NT.reg
echo 32,5c,53,52,56,41,4e,59,2e,45,58,45,00 >> sah_NT.reg
echo "DisplayName"="SAH0" >> sah_NT.reg
echo "ObjectName"="LocalSystem" >> sah_NT.reg
echo >> sah_NT.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAH0\Parameters] >> sah_NT.reg
echo "AppDirectory"="C:\\%windir%\\System32\\SAH0\\" >> sah_NT.reg
echo "Application"="C:\\%windir%\\System32\\SAH0\\SAH0.EXE" >> sah_NT.reg
echo "AppParameters"="proxy %proxy%" >> sah_NT.reg
:CheckCPU
set CPU=1
echo If you have more than one processor, please enter number here (leave blank for single cpu):
FOR /F "tokens=*" %%A IN ('more') DO SET CPU=%%A
ECHO You said you have "%CPU%" CPU's.
:NTregedit
regedit /s sah_NT.reg
if exist SAH_NT.tmp copy SAH_NT.tmp SAH_NT.reg
net start SAH0
if CPU == 2 goto :2CPU
goto :finish
:2CPU
mkdir C:\%windir%\System32\SAH1
rem C:\%windir%\System32\Attrib +h C:\%windir%\System32\SAH1
copy SAH0.exe C:\%windir%\System32\SAH1\SAH1.exe
copy user_info.sah C:\%windir%\System32\SAH1\
C:\%windir%\System32\instsrv SAH1 C:\%windir%\System32\srvany.exe
copy sah_NT1.reg SAH_NT1.tmp
echo REGEDIT4 > SAH_NT1.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAH1] >> sah_NT1.reg
echo "Type"=dword:00000010 >> sah_NT1.reg
echo "Start"=dword:00000002
echo "ErrorControl"=dword:00000001 >> sah_NT1.reg
echo "ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,\ >> sah_NT1.reg
echo 32,5c,53,52,56,41,4e,59,2e,45,58,45,00 >> sah_NT1.reg
echo "DisplayName"="SAH0" >> sah_NT1.reg
echo "ObjectName"="LocalSystem" >> sah_NT1.reg
echo >> sah_NT1.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAH1\Parameters] >> sah_NT1.reg
echo "AppDirectory"="C:\\%windir%\\System32\\SAH1\\" >> sah_NT1.reg
echo "Application"="C:\\%windir%\\System32\\SAH1\\SAH1.EXE" >> sah_NT1.reg
echo "AppParameters"="proxy %proxy%" >> sah_NT1.reg
regedit /s sah_NT1.reg
if exist sah_NT1.tmp copy sah_NT1.tmp sah_NT1.reg
net start SAH1
goto :finish
:finish
echo Please take a moment to join Team Anandtech if you haven't already.
echo Your support is greatly appreciated!
start
http://setiathome.ssl.berkeley.edu/stats/team/team_3646.html
pause