954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Logon Script - Batch file assistance required

I have been tasked to install a simple piece of client software on all PCs on my site. Because this can be installed without admin rights, and that it requires not user interaction, I was hoping to use a login script for the purpose.

This is not a problem, as I should be able to manage this, but what I wanted to avoid was constant reinstallation, as I didn't design this software, I don't have a clue how it works, and I thought that an overwrite may cause problems with its operation.

Because it is an unattended setup, and that the installation folder is always the same, (lets say c:\data), would it be possible to script the batch file to check for this folder, and if it already exists does not overwrite the existing files.

I really don't know where to begin, or even how to google for this, so I would really appreciate your assistance in saving me much time and effort.

Kind Regards
MMF

MartyMcFly
Practically a Master Poster
678 posts since Feb 2005
Reputation Points: 16
Solved Threads: 17
 

Here's a sample .BAT that should help you out:

*************
@ECHO OFF
IF EXIST C:\Data\NUL GOTO QUIT
ECHO Starting the install

REM ...
REM Here is where you put in all the commands to install to program
REM ...

:Quit
*************

Reply back if you have questions/problems.

--Chris

cSc0911
Newbie Poster
17 posts since Aug 2005
Reputation Points: 11
Solved Threads: 0
 

Hey, great thanks, was thinking it wasn't possible. Will carry out tests tomorrow, will keep this thread posted.

Thanks, MMF :)

MartyMcFly
Practically a Master Poster
678 posts since Feb 2005
Reputation Points: 16
Solved Threads: 17
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You