+ Post New Thread
Results 1 to 1 of 1
Scripts Thread, Script to either run VNC uninstaller batch or installer msi in Coding and Web Development; Script noob here, I've been trying to come up with a scrip which runs a batch file that uninstalls any ...
  1. #1

    Join Date
    Mar 2014
    Location
    Vernon
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Script to either run VNC uninstaller batch or installer msi

    Script noob here, I've been trying to come up with a scrip which runs a batch file that uninstalls any vnc software and then installs ultravnc.

    I''d like to add the if/then statement similar to below which will look to see if TightVNC exists and if so will run the uninstall batch to remove, then if needed install the new UltraVNC through msi installer, otherwise it will just exit.

    I am going to add this into the computer startup script.

    I'm hoping somebody might be able to look at this and tell me if I'm even close.

    ------------
    if exist "C:\Program Files\TightVNC\." goto Action1
    if not exist "C:\ultravnc.txt" goto Action2
    goto Action3
    :Action1

    \\server\VNCDeploy\removevnc.bat

    goto END

    :Action2
    if exist %SystemRoot%\SysWOW64 goto 64-bit
    \\server\VNCDeploy\UltraVnc_10962_x86.msi
    echo "UltraVNC" > "c:\ultravnc.txt"
    goto END

    :64-bit
    \\server\VNCDeploy\UltraVnc_10962_x64.msi
    echo "UltraVNC" > "c"\ultravnc.txt"
    goto END

    :Action3
    :END
    Last edited by cbrxxrider; 12th March 2014 at 09:20 PM. Reason: script edit

SHARE:
+ Post New Thread

Similar Threads

  1. Converting VHS videos to either DVD or file format
    By ctbjs in forum How do you do....it?
    Replies: 8
    Last Post: 17th May 2013, 10:38 PM
  2. script to only run if it cant ping a host
    By RabbieBurns in forum Scripts
    Replies: 8
    Last Post: 3rd November 2012, 08:44 PM
  3. Replies: 17
    Last Post: 19th March 2010, 11:51 PM
  4. Need a script to run programs
    By timbo343 in forum Scripts
    Replies: 9
    Last Post: 26th September 2007, 12:24 PM
  5. Script to change user email in AD (or Exchange)
    By SpuffMonkey in forum Scripts
    Replies: 16
    Last Post: 8th November 2005, 10:31 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •