With help from others on this forum, I have successfully created an unattended network install system using boot floppy and dos prompts. This has already saved me time - thanks!
There is one additional setting that would make everything go even smoother....
I have three seperate rooms (I work in a school) that require different sets of software. Is there a way to edit the runonceex.cmd file to include if..then type statements which look to the computer name to decide what to add into the registry....
For example...
REM for computers named ICT001 - ICT034
if computername=ICT* then
REG ADD %KEY%\020 /VE /D "Installing some program" /f
REG ADD %KEY%\020 /V 1 /D "V:\someprogram.exe" /f
end if
REM for computer named LRC001 - LRC022
if computername=LRC* then
REG ADD %KEY%\020 /VE /D "Installing some other program" /f
REG ADD %KEY%\020 /V 1 /D "V:\someotherprogram.exe" /f
end if
Before I delve into Google, I was hoping somebody may be able to answer this.
Cheers.
Page 1 of 1
Unattended network install
#2
Posted 11 January 2005 - 07:57 AM
You could try this.
For details about how the ~0:3 stuff works, type "SET /?" at a command prompt.
@echo off if "%ComputerName:~0,3%"=="MAG" ( echo Installing apps for MAG001 - MAG099 rem REG ADD %KEY%\020 /VE /D "Installing some program" /f rem REG ADD %KEY%\020 /V 1 /D "V:\someprogram.exe" /f ) if "%ComputerName:~0,3%"=="ICT" ( echo Installing apps for ICT001 - ICT034 rem REG ADD %KEY%\020 /VE /D "Installing some program" /f rem REG ADD %KEY%\020 /V 1 /D "V:\someprogram.exe" /f )
For details about how the ~0:3 stuff works, type "SET /?" at a command prompt.
#3
Posted 11 January 2005 - 08:08 AM
2Dreamtime: this is the solution for schools:
1.) create list of computers with MAC adresses and classroom (e.g. PC1xx is form 1st classrom, PC2xx is from second classroom etc.)
2.) use set2var and install PC with name from beginning
3.) create packages for classrooms and call them by the PC name (e.g. if PC is from 1st classroom (PC1xx is PC name mask), call class1.bat
1.) create list of computers with MAC adresses and classroom (e.g. PC1xx is form 1st classrom, PC2xx is from second classroom etc.)
2.) use set2var and install PC with name from beginning
3.) create packages for classrooms and call them by the PC name (e.g. if PC is from 1st classroom (PC1xx is PC name mask), call class1.bat
#4
Posted 11 January 2005 - 08:11 AM
Yep Dahi,
That did it!
Much appreciated.
Soulin, thanks for your solution. It is probably a better system than mine, but the RunOnceEx using if loops will be sufficient for my needs at this time. Cheers.
That did it!
Much appreciated.
Soulin, thanks for your solution. It is probably a better system than mine, but the RunOnceEx using if loops will be sufficient for my needs at this time. Cheers.
- ← where to position these reg keys
- Unattended Windows 2000/XP/2003
- .NET Compact Framework 1.0 SP3 Redistributable →
Share this topic:
Page 1 of 1



Help
Back to top









