Help - Search - Members - Calendar
Full Version: Deploying Office 2007 using GP
MSFN Forums > Microsoft Software Products - Discussion & Support > Microsoft Office 97/2000/2002-XP/2003/2007

   
Google Internet Forums Unattended CD/DVD Guide
bbbngowc
Hello,

here's the deal....

I created a GP logon script to install Office 2007. The script works. Only problem now, is every time the computer restarts, the script runs and uninstalls office, then reinstalls office. How can I get this to stop? I want the script to install office, and the next time do not run.
IcemanND
Add a check to the start of the script to check and see if it is already installed. if it is then exit the script if not continue on. You could look for a file that is installed like winword.exe, or check the installed applications list with WMI, or check for a registry setting.
bbbngowc
I'm using the following line in the script, but it's not working.

CODE
IF NOT EXIST "%ProgramFiles%\Microsoft Office\Office12\WINWORD.EXE" GOTO install ELSE GOTO end


What's wrong with that?
IcemanND
you should enclose the goto statements in parentheses.

CODE
IF NOT EXIST "%ProgramFiles%\Microsoft Office\Office12\WINWORD.EXE" (GOTO install) ELSE (GOTO end)


Another option is to get rid of the Else and put the goto end on a new line. Then if it gets past the If statement the script will always end.
CODE
IF NOT EXIST "%ProgramFiles%\Microsoft Office\Office12\WINWORD.EXE" GOTO install
goto End
bbbngowc
Thanks I got it. I used two IF statements

CODE
IF EXISTS GOTO INSTALL


CODE
IF NOT EXISTS GOTO TO END


Your way is more effient. Thanks.
bbbngowc
I do have one more question.

Why is it that unless the user has Admin permissions on the local computer the Application will not install? I have "Always Use Elevated Privileges" Enabled for both Computer and User Configuration.

What else am I suppose to do to allow the application to install without giving the user admin rights?
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.