Jump to content

Hiding Installation window with changing title


 Share

Recommended Posts

Hey There. So I really tried to get this to work without asking and only by searching and thinking :sweating: But it looks like I can't do it on my own.I'm making a silent install script for internet download manager. the thing is the title of the Installation window changes after each step. So I ended up adding WinSetState 9 times :geek: and still it doesn't fully hide the Installation and I see splash of every window.

I think it should be posible to hide all windows in one command with using Class Or $hWnd but I couldn't figure it out.

So anybody can show me the Direction? :pirate:

Thanks in Advance :thumbsup:

Here Is The Code :

Run("idmansetup.exe")
WinWaitActive("Internet Download Manager Setup")
WinSetState("Internet Download Manager Setup", "", @SW_HIDE)
WinWaitActive("Internet Download Manager Installation Wizard")
WinSetState("Internet Download Manager Installation Wizard", "", @SW_HIDE)
Opt('SendKeyDelay',300)
ControlClick("Internet Download Manager Installation Wizard", "", "[CLASS:Button; INSTANCE:2]")
WinWaitActive("Please read IDM license")
WinSetState("Please read IDM license", "", @SW_HIDE)
ControlClick("Please read IDM license", "", "[CLASS:Button; INSTANCE:2]")
WinWaitActive("Choose Destination Location")
WinSetState("Choose Destination Location", "", @SW_HIDE)
ControlSend("Choose Destination Location", "", "[CLASS:Button; INSTANCE:7]", "{SPACE}")
ControlClick("Choose Destination Location", "", "[CLASS:Button; INSTANCE:2]")
WinWaitActive("Start Installation of Internet Download Manager")
WinSetState("Start Installation of Internet Download Manager", "", @SW_HIDE)
ControlClick("Start Installation of Internet Download Manager", "", "[CLASS:Button; INSTANCE:2]")
WinWaitActive("Installing")
WinSetState("Installing", "", @SW_HIDE)
WinWaitActive("Installation Complete")
WinSetState("Installation Complete", "", @SW_HIDE)
ControlClick("Installation Complete", "", "[CLASS:Button; INSTANCE:3]")
WinWait("IDM browser integration")
WinSetState("IDM browser integration", "", @SW_HIDE)
ControlClick("IDM browser integration", "", "[CLASS:Button; INSTANCE:1]")
WinWait("Windows Internet Explorer")
WinSetState("Windows Internet Explorer", "", @SW_HIDE)
ProcessClose ( "iexplore.exe" )
Sleep(2000)
ProcessClose ( "idman.exe" )
Link to comment
Share on other sites

  • Moderators

If you do a forum search on "Internet Download Manager" you will see other discussions from people who tried to automate the installation of this loathsome software, or were unable to remove all traces of the crap left behind when trying to uninstall it. In one of these threads, I even emailed the company to ask them directly, and the response did not inspire confidence that they are on the level.

I wish you well in your endeavors but, in essence, that piece of software is a turd.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

If you do a forum search on "Internet Download Manager" you will see other discussions from people who tried to automate the installation of this loathsome software, or were unable to remove all traces of the crap left behind when trying to uninstall it. In one of these threads, I even emailed the company to ask them directly, and the response did not inspire confidence that they are on the level.

I wish you well in your endeavors but, in essence, that piece of software is a turd.

So I guess it's not possible then :oops:  Thanks for reply.

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