Scripting Question

Modifying an existing script using k1000

01/08/2013 3089 views

I enabled the ultraVNC install script across our network and it seems to be working great with the options I selected from the configuration policy wizard for the setup.  I was wondering what the best way was to install a newer version of ultra vnc using this wizard.


My thought process is that I will need to go into the script it creates once I run the confiuration policy and set the options... and modify the .inf and .ini and push the new setup.exe manually, which will take some time.  I was wondering if anyone knew of a way to save the dependencies so the new setup.exe you push will become the default (and the install script to reflect the new setup.exe, the new .ini, and the new .inf) when you run the configuration wizard the next time.


I hope this question makes sense, and someone is able to help me with this as I am new to kbox scripting.

Answer Summary:
0 Comments   [ + ] Show comments


Community Chosen Answer


You can change the software version by creating a new script with the UltraVNC wizard or by modifying your current one.  Replace the installer dependency with the newer version.  Also make sure to reflect the changes to the filename in the task steps at the bottom of the script page.  

In v5.4 of the K1000 is the default version. is the current stable version that adds full support for windows 8.  


Answered 01/08/2013 by: WhitzEnd
7th Degree Black Belt

  • Thank you. That's what I ended up doing yesterday. I will push this down to my test system today and see what happens. I appreciate your response.

All Answers


Change a registry key or copy a .txt file down to the machine as part of the script. Change your verify to look for the updated reg key or .txt file. If it does not exist then remediation will run the script. 

Answered 01/08/2013 by: dugullett
Red Belt

  • uhm...what?
    Maybe my question above was confusing. I'm looking for a way to change the software version that is installed under "Configuration Policy" such as the ultra vnc script it creates. I would like to install a newer version of ultra VNC instead of the old version that gets installed using the configuration policy wizard.

I think I may have traveled the same journey you have about a year ago.  Things may have changed but will be looking soon as we are not using the latest UltraVNC.

What I did back then was get the http://vnced.sourceforge.net msi packager.  Then I used Orca to modify the version to something I can track in kbox.  Pretty simple actually.

I did other customizations such as hiding the tray icon, setting the password, and running the service.

In my script I added a line to delete the viewer binary as standard users wouldn't need that and deleting the Start > All Programs > UltraVNC menu structure.

<?xml version="1.0" encoding="utf-8" ?>
<kbots xmlns="http://kace.com/Kbots.xsd">

<config name="UltraVNC Service 32bit" type="policy" id="309" version="1357581040" description="Ready - Installs UltraVNC Server only no icons - ws">

    <dependency name="/packages/kbots/309/UltraVNC" checksum="10135f56c7d85947ddf01f3dee65b3c7"  />

  <execute disconnected="true" logged_off="true">
    <schedule minutes="0" hours="11" daysOfMonth="*" months="*" daysOfWeek="*" />
    <event name="NOW" />



  <verify on_failure="break" attempts="2">

      <log_message type="activity" message="Installing UVNC Service" />
      <launch_program path="SYS" program="msiexec.exe" wait="false" parms="/i &quot;$(KACE_DEPENDENCY_DIR)\UltraVNC; /qn" />
      <launch_program path="SYS" program="cmd.exe" wait="true" parms="/C &quot;rd /s /q &quot;$(KACE_DEPENDENCY_DIR)&quot;&quot;" />
      <launch_program path="SYS" program="cmd.exe" wait="true" parms="/C del /q &quot;C:\Program Files\UltraVNC\vncviewer.exe&quot;" />






  <verify on_failure="break" attempts="1">

    <file_exists path="C:\Program Files\UltraVNC\" file="vncviewer.exe" />

      <launch_program path="SYS" program="cmd.exe" wait="false" parms="/C del /q &quot;C:\Program Files\UltraVNC\vncviewer.exe&quot;" />








The UltraVNC is the only dependancy file I upload to the script.  This has only been deployed to XP machines so far, but, will be testing it on Win 7 in the next push.

Answered 01/09/2013 by: worzie
Third Degree Brown Belt


Create a copy of the script. At the bottom of the script edit Choose 

To edit the policy using this editor, click here

Attach your new version of VNC as a dependancy to this script.

Edit Step 12 specifically to reflect this change.

    Wait for completion

The rest look okay but IM not 100 percent sure.

Save and run

Answered 01/08/2013 by: jdornan
Red Belt

  • The problem is this was put together using the kace wizard including answer files and such to your liking. There is no one msi or other binary used to accomplish the customized install. You have to repackage it.

Kace has a article about this.




Answered 02/07/2013 by: rwatson626
Senior Yellow Belt

  • I think I tried this howto once. I'll have to try again soon, but I'm pretty sure there was something that prevented me from using it. I think there was something different in the package that no longer works with the wizard.
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