Inline comments, additions

> http://www.hansonsystems.com/unattended/Start_Apps_Only_Install.bat
> 
> http://www.hansonsystems.com/unattended/AppsOnly_Set1.bat
> 
> Keep in mind that the user you are currently logged in with will need the ability to 
> map a drive
> to
> \\ntinstall\install (or whatever share you change "Start_Apps_Only_Install.bat" to 
> point to. You
> will most likely also want to be a local administrator on the machine in question, I 
> assume you
> are
> using this to install applications and/or os patches and it is increasingly 
> difficult to do that
> as
> a Restricted User ;(
> 
> Any help I can get cleaning these up even more so they can be included in the base 
> unattended
> distribution would be appreciated.
> 
> -Jeff
> 
> 
> Begin "Start_Apps_Only_Install.bat"
> @Echo off
> for %%a in ( c d e f g h i j k l m n o p q r s t u v w x y z ) do if exist 
> %%a:\dosbin\install.pl
> set z=%%a:
> if "%z%"=="" goto :unc
> if not "%z%"=="" goto :drive
> 
> :unc
> ::
> :: Can we get Z_PATH from DHCP if option 233 is set Instead of hard coding it here?
> ::
> 
> set Z_PATH=\\ntinstall\install


I would love to retrieve Z_PATH once in windows 2000/Xp from the DHCP server instead 
of relying on
local files that may or may not exist to obtain this information. If the machine was 
installed
originally with unattended AND the machine is still at the same location (on the same 
network) as
when it was 'born' then all is well. In the real world this is a little rougher ;) 
Machines move to
different physical networks after being installed more often then not I am assuming. 
Using
unattended to push out patches and applications without using the os instillation 
portion imo is
very handy :)

The only information I have been able to dif up seems to suggest a custom written .exe 
is needed to
retrieve the information from the DHCP server in windows 2000 or newer. I would love 
for someone to
prove me wrong here.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q312468&;

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dhcp/dhcp/dhcp_client_api_examples.
asp

http://www.microsoft.com/technet/prodtechnol/winntas/support/sur_dhcp.mspx


> 
> %Z_PATH%\bin\mapznrun.bat %Z_PATH%\scripts\AppsOnly_Set1.bat
> goto :end
> 
> :drive
> %Z%\bin\mapznrun.bat %z%\scripts\AppsOnly_Set1.bat
> 
> :end
> End "Start_Apps_Only_Install.bat"
> 
> 
> 
> Begin "AppsOnly_Set1.bat"
> @Echo off
> ::
> :: Disclamer:
> :: ----------
> :: This script should be run under a local administrator account. If you choose to 
> run under any
> other
> :: user, good luck :) My reasoning is simple, many applications and (all?) Windows 
> security
> updates
> require you
> :: have file and registry permissions to add them to a machine. This script does NO 
> user rights
> checking at all.
> :: feel free to fix that for me :)
> ::
> ::
> ::  Modifying the path is necessary becuase we want to use todo.pl without having to 
> specify
> z:\bin
> set path=%z%\bin;%path%
> ::  Setup netinst directory on c: to hold the todo.txt and the log files for this 
> workstation
> if not exist c:\netinst\nul md c:\netinst\
> if not exist c:\netinst\logs\nul md c:\netinst\logs\
> if not exist c:\netinst\mapznrun.bat copy %z%\mapznrun.bat c:\netinst\
> 
> ::  install perl, it might not be installed yet
> call %z%\scripts\perl.bat
> ::
> ::  remember the todo.pl lines are adding lines one by one to c:\netinst\todo.txt
> ::  and will actually be executed in the reverse order that they are added.
> ::  Last first, first last.
> ::
> ::
> :: Uncomment Lines as necessary
> ::
> ::******************************************
> ::             Cleanup Section
> ::******************************************
> todo.pl .reboot
> todo.pl "srconfig.pl --enable"
> todo.pl "autolog.pl --logon=0"
> ::
> ::
> ::*****************************************
> ::     Application and Patches Section
> ::*****************************************
> ::
> :: Uncomment some lines below to install the application
> :: or add your own script. see z:\scripts\ for more information
> :: and more scripts
> ::
> :: Open Office - www.openoffice.org
> ::todo.pl officeop.bat
> ::
> :: Microsoft Office XP - www.microsoft.com
> ::todo.pl officexp.bat
> ::
> :: Cygwin - UNIX API and UTILS for Win32 - www.cygwin.com
> ::todo.pl cygwin.bat
> ::
> :: Adobe Acrobat Reader 6.X - www.adobe.com
> ::todo.pl adobe-reader.bat
> ::
> :: WinZip - www.winzip.com
> ::todo.pl winzip.bat
> ::
> :: TightVNC - www.ultravnc.com
> ::todo.pl ultravnc.bat
> ::
> :: Daemon-Tools - www.daemon-tools.cc
> ::todo.pl d-tools.bat
> ::
> :: 7-Zip
> ::todo.pl 7-zip.bat
> ::**************************************
> ::    Prepre for unattended Section
> ::**************************************
> ::
> :: disable system restore
> todo.pl "srconfig.pl --disable"
> :: enable auto logon
> todo.pl "autolog.pl --logon=1"
> ::
> ::
> ::**************************************
> ::         Start Unattended
> ::**************************************
> @Echo Tasks Added to the todo.txt list
> @Echo Starting unattended...
> todo.pl --go
> 
> End "AppsOnly_Set1.bat"




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
unattended-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to