Jump to content
Sign in to follow this  
khanhvd21

Problems encountered when using AutoIT in the LocalSystem account

Recommended Posts

Hi,

Issue - uninstall older versions of MS Visio and MS Project using Uninstall in the registry. If running from Add / Remove programs, user interaction is required to confirm uninstall. I was unable to find any switches for this process to run silently. I also do not want to start selecting all updates and other components of the original installation so that I can uninstall them manually, as there may be a lot. The installation vendor makes it clean. If I set up the deployment script to run this focus, the script will run as a system and not interact with the desktop.
I have a few questions that need to be answered:
1. When a process runs in the system account, are there any detectable "windows", even though the system user has no records?
2. If so, is it possible to locate and click a specific button on the generated window? 3. Are there any code examples I can share?

 

Tks!

 

John.

Share this post


Link to post
Share on other sites

It should just be MsiExec /x {Guid} /qn /norestart, for example to remove Project Standard 2016 32-bit it would be:

RunWait("MsiExec.exe /X{90160000-003A-0000-0000-0000000FF1CE} /QN /NORESTART")
Or you can hide any window using the @SW_HIDE, although you shouldn't require this for standard msiexec command.
RunWait(@ComSpec & " /c MsiExec.exe /X{90160000-003A-0000-0000-0000000FF1CE} /QN /NORESTART", "", @SW_HIDE)

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...