/build/static/layout/Breadcrumb_cap_w.png

TightVNC Scripted Install? Anyone done this?

I found a script online:

if exist "C:\Program Files (x86)\TightVNC" goto :eof ELSE
if exist "C:\Program Files\TightVNC" goto :eof ELSE
"\\network share\tightvnc-2.0.4-setup.exe" /S
regedit /S "\\network share\TightVNC.reg"
net stop "TightVNC Server"
net start "TightVNC Server"
rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\TightVNC\"

Anyone help me figure this out? I created an Online Shell Script for this and pasted the script into the box. When I run this as a bat file from the local machine it works perfectly, but when I push it out from the KBOX I get errors 1, 2, and 404. I'm not experienced with scripting so what am I missing?

 

Thanks,

JV


0 Comments   [ + ] Show comments

Answers (2)

Posted by: dugullett 12 years ago
Red Belt
1

Did you change the "Script File Name:" script.bat?


Comments:
  • Actually, you may be right. I think I got one of those errors when I forgot to change that. - WGM_Jeff 12 years ago
Posted by: WGM_Jeff 12 years ago
4th Degree Black Belt
0

I do something similar, b ut I run it as a Online KScript. And I seperate it into three batch files.

The first one runs the setup, the second one does the regedit, and the third one restarts the service. It has been working OK for me, but I run it as the local admin account on the machine.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ