Jump to content
Sign in to follow this  
ChromaMan

Creating script to install firmware update silently

Recommended Posts

ChromaMan

I'm new to this and thought this would be easier. It sure seemed easy looking at the winzip tutorial. I have attached my simple script and the details of Window Info and the simple script I'm using.

Don't know why I can't get past the NEXT.... Must be my fault but not sure what it is.

This works fine when I install manually of course.

There are only two screens for the firmware update. I get the app to open up but not get past the Next>

In the script, since the focus is already on the button, I tried to issue an ENTER command but that doesn't work.

Thanks.

post-71084-0-47874800-1332533824_thumb.j FFZNFWUPN.au3

For the Window Im trying to get past NEXT on.txt

Share this post


Link to post
Share on other sites
Melba23

GBARR,

Please pay attention to the section in which you post - "Examples" is not for support questions. :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
ChromaMan

Sorry, I posted this in General Help and support. Where should this be posted?

Share this post


Link to post
Share on other sites
Melba23

GBARR,

I posted this in General Help and support

No you did not - I moved it here. :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
ChromaMan

Oh, I'm sorry. Thanks for moving it. A bit late in the day.

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, GBARR. There may be an easier way to accomplish the install, without having to bother with duplicating button presses. Most installations support silent switches. If you run the code below, what do you see?

#include <Constants.au3>

$net = Run(@ComSpec & " /c <PATH TO EXECUTABLE> /?", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

While 1
    $line = StdoutRead($net)
    If @error Then ExitLoop
    MsgBox(0, "STDOUT read:", $line)
Wend

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
ChromaMan

I get a messagebox that says STDOUT read: with nothing after "read:" and then an OK button. I did replace <PATH TO EXECUTABLE> with C:Drivers......

I did try to run the executable with the /? to see if there were any silent switches and there aren't any.

Share this post


Link to post
Share on other sites
stormbreaker

:oops: Well, if you are unable to do so, I suggest using AU3Record tool in the Extras folder for this purpose. Besides, its simple to work with.

Regards


----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites
ChromaMan

Got it working ok. In conjunction with AU3Record and making a correction to an entry that AU3Record made (the screen window wording was incorrect for the last screen) , I was able to get the installer to run silent.

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

×