Help - Search - Members - Calendar
Full Version: Send Serial to X-Setup
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Swimming_Bird
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.
CODE
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")
totoymola
Hi. If it's an Inno Setup, why don't you just use the switch? smile.gif
DLF
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?
Swimming_Bird
QUOTE (totoymola @ May 2 2005, 05:26 PM)
Hi.  If it's an Inno Setup, why don't you just use the switch? smile.gif
*


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.


QUOTE (DLF @ May 2 2005, 05:26 PM)
Try a test run with the /? or /help switches to see what the options are.
*

neither of those commands worked
S0mE0nesMiNd1
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:
CODE
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")
Swimming_Bird
QUOTE (S0mE0nesMiNd1 @ May 2 2005, 06:12 PM)
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.gif 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.
Swimming_Bird
this is my spy screen

CODE
>>>>>>>>>>>> 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
S0mE0nesMiNd1
QUOTE
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 smile.gif Ill look into your script and what may be wrong with it.
Swimming_Bird
QUOTE (S0mE0nesMiNd1 @ May 2 2005, 06:19 PM)
QUOTE
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
Swimming_Bird
hrm i may have found the issue, at some point the next button changes from TButton3 to TButton4
Swimming_Bird
This new code didnt work either
CODE
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", "")
S0mE0nesMiNd1
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.
CODE
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")
Swimming_Bird
i'd love if i could deal with this using switches only. but i dont know of any way.
S0mE0nesMiNd1
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.
Swimming_Bird
QUOTE (S0mE0nesMiNd1 @ May 2 2005, 06:43 PM)
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.
*

but how do i pass the serial number?
S0mE0nesMiNd1
Check the registry after a successful install with it. A good way to search is by entering part of the serial in the registry search.
swampy
/VERYSILENT works. I just installed it.

Registration info (XSPLicense.ini} is in %ProgramFiles%\X-Setup Pro\bin

I made a winrar sfx of the ini

CODE
;The comment below contains SFX script commands

Path=X-Setup Pro\bin
SavePath
Silent=1
Overwrite=1
Swimming_Bird
QUOTE (swampy @ May 2 2005, 07:24 PM)
/VERYSILENT works. I just installed it.

Registration info (XSPLicense.ini} is in %ProgramFiles%\X-Setup Pro\bin

I made a winrar sfx of the ini

CODE
;The comment below contains SFX script commands

Path=X-Setup Pro\bin
SavePath
Silent=1
Overwrite=1

*

rock on



Edit: If anyone cares this is what the ini contains
CODE
[License]
Product=X-Setup Pro
SerialN=xxxx-xxxxx-xxxx

[Setup Information]
LastAccessOn=2005-05-02 19:40:29

[License-old]
SerialN=




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.