Jump to content

Recommended Posts

Posted

I have a few applications I am trying to "Silent Install". The application itself will install quietly with the correct switches, but it starts a second install of a Device Driver which doesn't install silently. The second install is the active window, but so far I haven't been able to get AutoIT to be able to interact with the window at all other then tell me that the install is the active window using a msgbox. If I use Send ("{Enter}") nothing happens, but if I just hit enter on my keyboard the install continues to the next screen. I also tried ControlClick and ControlSend but neither have worked. I am a total Noob with AutoIT so I probably have some syntax wrong. The screenshot is the last thing I tried with ControlClick.

controlclick.jpg

Posted

Have you tried pre-installing the driver, using something like pnputil.exe, use to use DPInst but isn't supported in WIndows 10 1607 and above.

Posted

For some reason i am getting unable to parse on the winactivate command... But I know its active. I tried this to verify

;Run the Beckwith Installer
Run ("Setup.exe /Q")

;Start the Device Driver Install
Sleep(5000)
;If Not WinActive ("Device Driver Installation Wizard") then
;   WinActivate ("Device Driver Installation Wizard")
;EndIF

Send ("{Enter}")

If Not WinActive ("Device Driver Installation Wizard") Then
   MsgBox(0,"", "Window is Not Active")
Else
   MsgBox(0,"", "Window is Active")
EndIf

The MsgBox will show me the "window is active" message. I've also tried using WinWaitActive instead of sleep but that hasn't helped either.

I had never heard of the PnPutil.exe, but I don't have a separate installer for the device driver. I just have a exe and an msi from the vendor. The exe just calls the msi for the install. I can do the silent install options for either file but I get the separate Device Driver Install with either method.

Posted

For many software, you can simply use the silent switch. The USSF utility (Universal Silent Switch Finder) will help you 😉

Qui ose gagneWho Dares Win[left]CyberExploit[/left]

Posted

Thank you, I ran USSF to double check but it's not showing any switches different then what I have already used.

 Is there not a different command I could try in AutoIT?

Posted (edited)

Hey

1. i had some problems with win 10 with such things...

2. i actually don't know if its the title -> sometimes there is a whitespace behind the title 😜

3. you could try it with handle

4. i had a problem with autoinstall where i had to unfocus and refocus the installer

hope that helps :) 

is it free software? so i could try it myself ?

Edited by Aelc

why do i get garbage when i buy garbage bags? <_<

Posted

The software is free, but you'll have to create an account. It's Beckwith Electric and the software package I am working with is for the S-6200.

#4 is an interesting thought, so I did the following....

;Run the Beckwith Installer
Run ("Setup.exe /Q")

;Start the Device Driver Install
Sleep(5000)
Send ("{LWindown}")
Send ("{ESC}")
Send ("!{Tab}")
Sleep(10000)

If WinExists("Device Driver Installation Wizard") then ; Check if the window exists
WinActivate("Device Driver Installation Wizard")
EndIf
Send ("{Enter}")

I first tried just and alt+tab to swap the active program, but nothing happened. I then manually sent an alt+tab, the program lost focus then a few seconds later the autoIT script grabbed focus again and ended. Enter didn't send, or the window didn't accept it. I then tried sending the Left window key, but ended up with the same results. After that I added the handle part like you mentioned...

;Run the Beckwith Installer
Run ("Setup.exe /Q")

;Start the Device Driver Install
Sleep(5000)
Local $hWnd = WinGetHandle("[CLASS:#32770]")
ControlSend ( $hWnd,"","", "{Enter}")

But the result was the same, the enter seems to be  ignored. Almost like AUTOIT can't actually see into that window

Posted (edited)

hmm funny thing

i don't get the window u have got...

and with your original script 

;Run the Beckwith Installer
Run ("Setup.exe /Q")

it just installed..

i removed it and tried it again without /Q but  that window don't appear

 

maybe it's from one of the other setups? because there are 1 windows update...and DotNetFX40 which i can't even open..

windows update tells me i don't have enough space (> 400gb free :D )

and i got an newer framework...

are you sure it's the right file? :o 

or maybe u have the device in usb port?

btw. what happens if you start TabTalk.exe?

what OS do you use? because i want to run it on VirtualMachine with ur OS Version .. my last hope for you :P 

Unbennnannt.PNG

Edited by Aelc

why do i get garbage when i buy garbage bags? <_<

Posted

i've got a handy autoit function to wait for controls. you should be using control ids or something other than sleeps and mouse clicks if you want repeatable reliability.

give me the download link to it and I can probably help you out.

My resources are limited. You must ask the right questions

 

Posted (edited)
2 hours ago, maniaczs said:
4 minutes ago, Earthshine said:

i've got a handy autoit function to wait for controls. you should be using control ids or something other than sleeps and mouse clicks if you want repeatable reliability.

give me the download link to it and I can probably help you out.

 

DL link is already here. :P but you have to register ... 

I just reupped it just for the fastness.

https://www.file-upload.net/download-13644964/S-6200.zip.html
 

Edited by Aelc

why do i get garbage when i buy garbage bags? <_<

Posted

so for the first setup you can run the following from a cmd command within autoit

setup.exe /qn

then comes the driver, I am working on that one

My resources are limited. You must ask the right questions

 

Posted

weird.. I re downloaded to make sure I didn't have an older version, but I am getting the same thing I was before. No I am definitely running the right installer. If I run it regularly after it finishes installing it launches the Driver install. I don't have it plugged in, I've been running all this in a VM I've been using to test my image (Win 10 LTSC 2019). Hmm, just to see I tried running on my physical desktop and it did the same thing I've been observing. I don't know what to say to what you're seeing...

Posted

i googled a bit

there is another way you can try with #Requireadmin

some topics included problems where they couldn't send because of it (win 10).

 

if it still don't work i will try it on VM

i have to install it first so i will do it tomorrow ...

why do i get garbage when i buy garbage bags? <_<

Posted

i am almost done making it work. the setup installs the .net 4 app and then kicks off the driver installer. if you have UAC turned on, then it takes some doing

My resources are limited. You must ask the right questions

 

Posted

Thank you for your help @Aelc and @Earthshine. Been working on a different application that has no silent install options, anyway I preinstalled the .net framework so that won't be an issue.

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