Re: Startup Scripts vs Software Installation
- From: Tadwick <Tadwick@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Mar 2008 15:40:01 -0700
Thanks Meinolf - does this mean that IT pros use startup scripts sparingly
because it is redundant to run a script every time a machine starts (because
for software installation it is only needed once). Unless you are sure that
all computers in the OU have run the startup script once, you presumably have
to leave it in place.
Tad
"Meinolf Weber" wrote:
Hello Tadwick,.
A startup script run's always during the startup of the machine, that's for
it is made. You can implement a check for existing folder/regkeys/files etc.
but it will always run during startup.
If you deploy software with software installation there will be also a small
check during gpo processing but that's all.
During GPO processing, the Group Policy Software installation CSE queries
the directory for available assigned PackageRegistration objects for applied
GPOs that have changed or are new. Any packages found are compared to those
already downloaded onto the client computer - the client computer records
received packages in the registry and caches .aas files. Any new or changed
packages are processed. The corresponding .aas file is read from the Sysvol
folder and then cached in %systemroot%\appmgmt.
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
In an earlier thread I noted the challenges of using GPO Software
Installation to install packages for the Office 2003 Primary Interop
Assemblies (PIAs). I have been experimenting with startup scripts as
an alternative to installing this and other software.
One thing I'm not clear on is whether the startup script is supposed
to run each time the computer is started or only the first time it
finds the GPO. I have logic built into my script (similar to that
given below) so it doesn't reinstall the software each time even if
the script is run on each startup; however, I am surprised that the
script appears to be run each time (as indicated by a dialog "Running
Startup Scripts") so perhaps someone could kindly explain if this is
by design or needs refining on my part.
Thanks, Tad
REM***********************************************
setlocal
set ProductName=ACME Product
set DeployServer=\\server\share
set LogLocation=\\server\share
IF NOT "%ProgramFiles(x86)%"=="" SET WOW6432NODE=WOW6432NODE\
reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\%WOW6432NODE%Microsoft\Windows\CurrentVer
sion\Uninstall\%ProductName%" if %errorlevel%==1 (goto Deploy) else
(goto End)
REM If 1 returned, the product was not found. Run setup here.
:Deploy
start /wait %DeployServer%\ACME.exe
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\ACME_%computername%.txt
REM If 0 or other was returned, the product was found or another error
occurred. Do nothing.
:End
Endlocal
- Follow-Ups:
- Re: Startup Scripts vs Software Installation
- From: Florian Frommherz [MVP]
- Re: Startup Scripts vs Software Installation
- References:
- Re: Startup Scripts vs Software Installation
- From: Meinolf Weber
- Re: Startup Scripts vs Software Installation
- Prev by Date: Re: Startup Scripts vs Software Installation
- Next by Date: Re: Overwritten ADM files - recovery?
- Previous by thread: Re: Startup Scripts vs Software Installation
- Next by thread: Re: Startup Scripts vs Software Installation
- Index(es):
Relevant Pages
|