Install only if it wasnt installed before

Microsoft Windows 2003 server - 5 users
October 13, 2010 at 14:05:28
Specs: Windows Server 2003
Hello. I made a script for Group Policy that would create a TEMP folder in the C drive, download a file from the server and install it. The only thing is that I only want it to be installed if the file wasnt installed before, maybe if it wasnt downloaded. This is my script. Thank you:

@echo off

echo ### Creating TEMP directory...
mkdir "C:\TEMP"

echo ### Downloading Software Manager
echo n|copy /-y "\\serverNETLOGON\setupInstall.exe" "C:\TEMP"

echo ### Installing Software manager
C:\TEMP\setupInstall.exe -server -quiet

See More: Install only if it wasnt installed before

Report •

October 13, 2010 at 17:11:58
Is there a file, directory, or reg key that the setup creates that you can check the local machine for?

Report •
Related Solutions

Ask Question