Jump to content

Recommended Posts

Posted

I need to remove all already installed VNC programs (RealVNC, TightVNC, UltraVNC) into Windows 10/11clients so I'd like to create my script to uninstall ones.

Can I run PowerShell command via autoIt ? Suggestions to reach target?

Posted

TBH the language is probably the last thing to worry about... If you're using powershell there's probably no need to use AutoIt to fire it up.  You can, but why not just do the whole thing in powershell?

I'd say the work will be more in finding how each product is installed so you can craft a (presumably silent) uninstall string for each.  I haven't looked into the installers for these, but if there's msis involved they'll have different product codes for different versions. Or maybe some might offer an msi or exe install for the same product... Or maybe some were installed machine-wide and others under the users' profile..

So if you're dealing with that nightmare,  I'd probably write something to search through these Keys and their equivalent in the HKCU hive as a starting point: That is where you should find the relevant installer paths/product codes etc etc.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

 

Posted
On 1/3/2025 at 8:41 AM, MattyD said:

I haven't looked into the installers for these, but if there's msis involved they'll have different product codes for different versions. Or maybe some might offer an msi or exe install for the same product...

I'd like to make it by AutoIt, I find out It's necessary this string to remove Ultravnc :

Local Const $1 = "C:\Program Files\uvnc bvba\UltraVNC\"
Local Const $2 = "unins000.exe"

 $1\$2 /VERYSILENT /NORESTART /LOG

How can I write AutoIt code line to execute It ?

  • Developers
Posted
3 hours ago, CutterButter said:

How can I write AutoIt code line to execute It ?

Open the helpfile and I am sure you find the information there, or do you prefer to be spoon-fed? ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...