Jump to content

Recommended Posts

Posted

I am not an AutoIT user/scripter & have a requirement to install AutoIT on several Windows 10 dev machines via ConfigManager. Downloaded the current realease AutoIt v3.3.14.5.

Created a simple, straightfoward install using the downloaded EXE & "/S". It installs to the expected " \Program Files (x86)\AutoIt3" folder.

Also need to create a comanion "Uninstall" for same. What is the syntax and/or how do I call "Uninstall.exe" from the program install to complete this uninstall? 

IF I attempt to run the "Uninstall.exe" from an elevated command prompt, it throws a "NSIS Error - error launching installer" dialog - which seems to indicate that the NSIS compiled "Unistall.exe" itself is broken/corrupt??

Searching the forum, I cannot find an answer.

Thanks in advance!

Posted (edited)

Thank you both... I am running UNINSTALL as admin , but checked for the uninstall string in the registry.

I found the uninstall string for AutoIt in the "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3" location. Command line is as I expected: "C:\Program Files (x86)\AutoIt3\Uninstall.exe"

Still digging. Firing the Unstall.exe in the AutoIT install folder, but fighting McAfee to run it outside of SCCM.

Thanks again.

Edited by gmoney
Updated after more digging
Posted

I tested the following line and it worked perfectly. This was on Win10 Enterprise on a VM local machine, no security software.

Run("C:\Program Files (x86)\AutoIt3\Uninstall.exe /S")

Have you tried adding #RequireAdmin to the top of your script? How about RunAs instead of Run (domain credentials can be tricky with this)? What about whitelisting the script/exe in McAfee?

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