Jump to content

Recommended Posts

Posted

Hi

Im new to AutoIT and have been reading through various posts to answer my question

Im started writing my script, Which basically looks to see if a version of software is installed, if it is the script should exit, if not it should execute an .exe

At the moment my script isnt working

if RegRead "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{147BCE03-C0F1-4C9F-8157-6A89B6D2D973}" Then
    Exit
Else 
    Run("Apps\HITS\SetupVse.exe")
    Endif
Exit

Any help would be great! Cheers!

Posted

I think ive solved it already with

if RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{147BCE03-C0F1-4C9F-8157-6A89B6D2D973}","Version=8070000") Then
    Exit
Else 
    Run("Apps\HITS\SetupVse.exe /q")
    Endif
Exit

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...