Jump to content

Hide windows BEFORE they show up


 Share

Recommended Posts

Hi folks,

my company wants a script to uninstall and reinstall a software. The clue is, that no user should take notice that we do something on his/her machine.

So what I need is, hiding windows before the user is able to see it. Is this possible in AutoIT?

Here's what I've until now:

Run( "d:\daten\vpn\setup.exe ADD_REMOVE", "", @SW_HIDE )
$do = 1
While $do = 1
    If WinExists( "Confirm File Deletion" ) Then
        ExitLoop
    EndIf
WEnd
WinSetState( "Confirm File Deletion", "", @SW_HIDE )
ControlClick( "Confirm File Deletion", "", "Button2" )

HINT: It's only a small part of the complete script... :P

So is anybody out there who is able to help a frustrated programming guy...? :)

Link to comment
Share on other sites

  • Moderators

Most uninstall software have switches to run them silently. The "clue" is to check the software and find out what those switches are.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Yes, I tried that, but I found no switches to do that...

Is there no possibility in AutoIT?

I've never been satisfied with the way to do it, because they always see the window first, even if it's for a split second.

You want a silent install it sounds like, why don't you tell us the name of the vpn program, and maybe someone already knows the switches you'd need.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

The program is Checkpoint SecuRemote. And it is a silent uninstall.

Thanks a lot!!

EDIT:

I've found it myself... :)

The commandline is:

[Drive]\[Program Files Dir]\InstallShield Installation Information\[installShield ID]\setup.exe ADD_REMOVE -s -f1[Drive]\[Program Files Dir]\InstallShield Installation Information\[installShield ID]\uninst.iss

But anyway thanks for your help!!

Edited by tdp.nephlim
Link to comment
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
 Share

  • Recently Browsing   0 members

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