Swimming_Bird Posted May 2, 2005 Share Posted May 2, 2005 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 More sharing options...
totoymola Posted May 2, 2005 Share Posted May 2, 2005 Hi. If it's an Inno Setup, why don't you just use the switch? Link to comment Share on other sites More sharing options...
DLF Posted May 2, 2005 Share Posted May 2, 2005 Try a test run with the /? or /help switches to see what the options are. Or maybe ask on the x-setup forum on the website? Link to comment Share on other sites More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 Hi. If it's an Inno Setup, why don't you just use the switch? <{POST_SNAPBACK}>i wasnt aware of a general switch to input the serial. i know the silencing switches but i've never heard of a serial switch.Try a test run with the /? or /help switches to see what the options are. <{POST_SNAPBACK}>neither of those commands worked Link to comment Share on other sites More sharing options...
S0mE0nesMiNd1 Posted May 3, 2005 Share Posted May 3, 2005 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 More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 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.<{POST_SNAPBACK}>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 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 More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 this is my spy screen>>>>>>>>>>>> Window Details <<<<<<<<<<<<<Title: Setup - XQDC X-Setup ProClass: TWizardFormSize: X: 388 Y: 316 W: 503 H: 392>>>>>>>>>>> Mouse Details <<<<<<<<<<<Screen: X: 656 Y: 338Cursor ID: 2>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<RGB: Hex: 0x3261BB Dec: 3301819 Link to comment Share on other sites More sharing options...
S0mE0nesMiNd1 Posted May 3, 2005 Share Posted May 3, 2005 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 More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 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.<{POST_SNAPBACK}>i'll remake the script and repost. should be in like 10 min or less Link to comment Share on other sites More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 hrm i may have found the issue, at some point the next button changes from TButton3 to TButton4 Link to comment Share on other sites More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 This new code didnt work eitherRun ( "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 More sharing options...
S0mE0nesMiNd1 Posted May 3, 2005 Share Posted May 3, 2005 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 More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 i'd love if i could deal with this using switches only. but i dont know of any way. Link to comment Share on other sites More sharing options...
S0mE0nesMiNd1 Posted May 3, 2005 Share Posted May 3, 2005 last I checked, (i have an old ver on my cd) it was a simple switch like /SILENT or /s or /S. I dont know about the new version. Link to comment Share on other sites More sharing options...
Swimming_Bird Posted May 3, 2005 Author Share Posted May 3, 2005 last I checked, (i have an old ver on my cd) it was a simple switch like /SILENT or /s or /S. I dont know about the new version.<{POST_SNAPBACK}>but how do i pass the serial number? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now