Jump to content

Send Serial to X-Setup


Recommended Posts

I was wondering how i can send the serial to the X-Setup install. I can tell its an inno installer.

EDIT:

Here is the autoit script i tried to use but it didnt work it would run the setup but then the script would just pause.

Run ( "xqdcXSP-Setup-EN.exe" )
WinActive ("Setup - XQDC X-Setup Pro")
WinwaitActive ("Setup - XQDC X-Setup Pro")
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlClick ("Setup - XQDC X-Setup Pro", "", "TRadioButton1")
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlClick ("Setup - XQDC X-Setup Pro", "", "TNewCheckListBox1")
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlSend ( "Setup - XQDC X-Setup Pro", "", "TEdit1", @ProgramFilesDir & "\X-Setup Pro" )
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlClick ("Setup - XQDC X-Setup Pro", "", "TPasswordEdit1")
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlSend ( "Setup - XQDC X-Setup Pro", "", "TPaswordEdit1", "xxxxxx-xxxxxx-xxxxxx" )
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")
sleep (500)
WinwaitActive ("Setup - XQDC X-Setup Pro", "Setup has finished installing XQDC X-Setup Pro on your computer. The application may be launched by selecting the installed icons.")
ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")

Link to comment
Share on other sites


Looks liek the problem with your AutoIT Scripts is the WinWaitActive. Your telling it to wait on something that wont appear. My Window title is "Setup - Xteq-dotec X-Setup Pro" You must make sure ALL capitilization, spaces, dashes, EVERYTHING is the EXACT same. Easiest way to make sure is to use the AutoIT Window Spy.

Also - this is a very poor script. The least you can do is replace the "Sleeps" with more WinWaitActive. Example:

Run("Setup.exe")
WinWaitActive("Setup - Xteq-dotec X-Setup Pro" , "xxxxxx") // Where xxxxx is something it says in the box, example, "Welcome to"
ControlClick("BLAHBLAH")
WinWaitActive("Setup - Xteq-dotec X-Setup Pro" , "Select folder")
ControlClick("BLAHBLAH")

Link to comment
Share on other sites

Looks liek the problem with your AutoIT Scripts is the WinWaitActive. Your telling it to wait on something that wont appear. My Window title is "Setup - Xteq-dotec X-Setup Pro" You must make sure ALL capitilization, spaces, dashes, EVERYTHING is the EXACT same. Easiest way to make sure is to use the AutoIT Window Spy.

i did copy it directly from the spy, but i'll look again.

Edit: i am a huge noob when it comes to autoit. i know very few commands so forgive my poor scripting :blushing: the reason i had the sleeps was just so it wouldnt go too fast but i'll modify the script as you said and do it.

Link to comment
Share on other sites

this is my spy screen

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title: Setup - XQDC X-Setup Pro
Class: TWizardForm
Size: X: 388    Y: 316    W: 503    H: 392

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 656 Y: 338
Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB: Hex: 0x3261BB Dec: 3301819

Link to comment
Share on other sites

ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")

Also - For something like this, the middle quotations are supposed to have the "Text" that is in the AutoIT Window Info on the button, for buttons that say "Next" it is typically "&Next >". So it should be "Setup - XQDC X-Setup Pro", "&Next >", "TButton4" Assuming thats what the Text is.

EDIT: seems i have an old ver. of X-Setup. Thanks for the tip :) Ill look into your script and what may be wrong with it.

Link to comment
Share on other sites

ControlClick ("Setup - XQDC X-Setup Pro", "", "TButton4")

Also - For something like this, the middle quotations are supposed to have the "Text" that is in the AutoIT Window Info on the button, for buttons that say "Next" it is typically "&Next >". So it should be "Setup - XQDC X-Setup Pro", "&Next >", "TButton4" Assuming thats what the Text is.

i'll remake the script and repost. should be in like 10 min or less

Link to comment
Share on other sites

This new code didnt work either

Run ( "xqdcXSP-Setup-EN.exe" )
WinActive ("Setup - XQDC X-Setup Pro")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Welcome to the XQDC X-Setup Pro Setup Wizard" )
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "License Agreement" )
ControlClick ("Setup - XQDC X-Setup Pro", "I &accept the agreement", "TRadioButton1")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Internet Version Check" )
ControlClick ("Setup - XQDC X-Setup Pro", "", "TNewCheckListBox1")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Information" )
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Select Destination Location" )
ControlSend ( "Setup - XQDC X-Setup Pro", "", "TEdit1", @ProgramFilesDir & "\X-Setup Pro" )
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Select Additional Tasks" )
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "License" )
ControlClick ("Setup - XQDC X-Setup Pro", "", "TPasswordEdit1")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Serial Number" )
ControlSend ( "Setup - XQDC X-Setup Pro", "", "TPaswordEdit1", "xxxxx-xxxx--xxxxx" )
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Ready to Install" )
ControlClick ("Setup - XQDC X-Setup Pro", "&Install", "")
WinwaitActive ("Setup - XQDC X-Setup Pro", "Setup has finished installing XQDC X-Setup Pro on your computer. The application may be launched by selecting the installed icons.")
ControlClick ("Setup - XQDC X-Setup Pro", "&Finish", "")

Link to comment
Share on other sites

Indeed very odd. We need an autoIT Expert like MHZ or NoLogic, because this is even too much for me. There are some hidden things like the checkboxs. Also, I noticed the changing TButton Stuff too. Oh, and as for yours, you STILL have to have the other stuff in addition to the text I mentioned (No empty quotations unless its empty in the AutoIT Spy Window). Anyhow, this was working for the first few things, the rest an expert needs to do.

Run ( "xqdcXSP-Setup-EN.exe" )
WinwaitActive ("Setup - XQDC X-Setup Pro" , "Welcome to")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >" , "TButton2")


WinWaitActive("Setup - XQDC X-Setup Pro" , "License Agreement")
ControlClick ("Setup - XQDC X-Setup Pro", "I &accept the agreement", "TRadioButton1")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "TButton3")


WinWaitActive("Setup - XQDC X-Setup Pro" , "Internet Version Check")
ControlClick ("Setup - XQDC X-Setup Pro", "", "TNewCheckListBox1")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "TButton3")


WinWaitActive("Setup - XQDC X-Setup Pro" , "Information")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "TButton4")

WinWaitActive("Setup - XQDC X-Setup Pro" , "Select Destination Location")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "TButton4")

WinWaitActive("Setup - XQDC X-Setup Pro" , "Select Additional Tasks")
ControlClick ("Setup - XQDC X-Setup Pro", "&Next >", "TButton4")

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
  • Recently Browsing   0 members

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