# VNC auto installtions options for Batch commands Windows server 2008 r2.

### 问题

• I am trying to install TightVNC viewer through a computer start up GPO. I have the MSI installer , the .reg file, and a batch file.

The batch file consists of the following.

if exist "C:\Program Files (x86)\TightVNC" goto :eof ELSE
if exist "C:\Program Files\TightVNC" goto :eof ELSE
msiexec /a "\\FS2\GPO_SOftware\VNC\tightvnc-2.7.7-setup-64bit.msi"
regedit /S "\\FS2\GPO_SOftware\vnc\tightvnc.reg"

This is where things are broken for me. When I test launch the batch file it prompts me for feed back as to be expected. But I want the software to install without the need for prompts. I made the batch file based around the following template.

Code:
```if exist "C:\Program Files (x86)\TightVNC" goto :eof ELSE
if exist "C:\Program Files\TightVNC" goto :eof ELSE
"c:\vnc\tightvnc-2.0.2-setup.exe" /S
regedit /S "c:\vnc\tightvnc.reg"
net stop "TightVNC Server"
net start "TightVNC Server"
rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\TightVNC\"http://www.edugeek.net/forums/network-classroom-management/74441-how-guide-deploy-vnc-via-group-policy.htmlAny ideas on how I can modify my batch file to get this to install before the user logs in ?```
2013年7月17日 18:20

### 答案

• Did ya kinda notice this is the Training and Certification forum?

You should contact TightVNC directly since the problem is with their product.

2013年7月17日 20:27