aiuse

Windows still viible

5 posts in this topic

#1 ·  Posted (edited)

Hi,

I tried like this but windows/screens are still not hidden. It does go each step and completed. All steps were visible, not hidden. Please help.

 

Run("setup.exe", "",@SW_HIDE)
WinWaitActive("Software Setup")
WinSetState("Software Setup", "",@SW_HIDE)
Send("!n")
WinWaitActive("Software Config")
WinSetState("Software Config","",@SW_HIDE)
Send("{ENTER}")

 

Edited by aiuse

Share this post


Link to post
Share on other sites



#2 ·  Posted

Are you sure that the installer can't use silent switches for example below are some of the most common:

Setup.exe /s
Setup.exe /silent
Setup.exe /verysilent
Setup.exe /q
Setup.exe /quiet
Setup.exe /s /v" /qb /norestart"
Setup.exe /s /v" /qn /norestart"

Share this post


Link to post
Share on other sites

#3 ·  Posted

no silent switch available for that .exe. thanks

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Have you tried using the window handle?

Local $hWnd = WinWait("Software Setup", "", 10)
WinSetState($hWnd, "", @SW_HIDE)

Also, I suspect that your Send funcs will fail if the window in not visible.  You should use ControlClick or another appropriate Control* function to manipulate the hidden GUI.

What is the setup.exe installer for? What application?

Edited by spudw2k

Share this post


Link to post
Share on other sites

#5 ·  Posted

@ spudw2k - I tried as you suggested. the screen minimized and stayed on the task bar and completed. I want to hide it totally. I will try with control function also. This program was created internally by someone long time ago. It is the company accounting software. I am trying to uninstall it silently from employees computer and they have new software. Not found uninstall string info in registry.

the new code is here please tell me how to hide this for 0 visibility

Run("setup.exe", "",@SW_HIDE)
WinWaitActive("Software Setup")
Local $hWnd = WinWait("Software Setup", "", 10)
WinSetState($hWnd, "", @SW_HIDE)

Send("!n")
WinWaitActive("Software Config")
Local $hWnd = WinWait("Software Setup", "", 10)
WinSetState($hWnd, "", @SW_HIDE)

Send("{ENTER}")

 

Thanks

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

  • Similar Content

    • Skysnake
      By Skysnake
      Hi
      Only on some Windows 10 PCs do I get the issue that the Run() fails with the   @SW_HIDE = Hidden window (or Default keyword) option.  Not all Win10 machines, only some, but then consistently.  I have put UAC to lowest level, no joy.  As if the OS does not allow the hidden window to be created...
      Seems that @SW_MINIMIZE = Minimized window or  @SW_MAXIMIZE = Maximized window does not suffer the same fate.
      I will have more info in a day or so.
      Anybody else with similar experience?
      Skysnake
    • RedShade
      By RedShade
      Hi guys! I need your help again!
      During the execution of the script new windows are constantly appearing.
      I decided to use this script:
      Do $aWinList = WinList() For $i=1 To $aWinList[0][0] Step 1 WinSetState ( $aWinList[$i][0], "", @SW_HIDE ) Next Until ProcessExists("Installer.exe")="0" But this is script is really bad, because this this script is too slow (Windows have time to appear on the desktop).
      Is there any way to assign to all future windows option @SW_Hide?