Jump to content

csjjpm

Members
  • Posts

    8
  • Joined

  • Last visited

csjjpm's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I have also tried 'WinWait' instead but unless it is the top 'active' window then the controlclicks dont work. Is there any Win???? option which will work in the background like 'WinExists'?
  2. I changed all my WinWaitActive to WinExists but when I do 'Go' it runs through and ends before the packages even extracts: >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "P:filesSeqScape.2.5.revBseqscape.au3" /UserParams +>14:22:59 Starting AutoIt3Wrapper v.2.1.0.8 Environment(Language:0409 Keyboard:00000809 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64) >Running AU3Check (1.54.22.0) from:C:Program Files (x86)AutoIt3 +>14:23:00 AU3Check ended.rc:0 >Running:(3.3.8.1):C:Program Files (x86)AutoIt3autoit3.exe "P:filesSeqScape.2.5.revBseqscape.au3" +>14:23:00 AutoIT3.exe ended.rc:0
  3. I do now have it working verbosely as it was all down to the winwaitactive and controlclick config. This is what I have now and it works: Opt('WinDetectHiddenText', 1) $SEQSCAPEINSTALLER="c:netinstseqscapesetup.exe" Run($SEQSCAPEINSTALLER) WinWaitActive("[CLASS:#32770]","Welcome to the InstallShield Wizard") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]", "left") WinWaitActive("[CLASS:#32770]","Information") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]", "left") WinWaitActive("[CLASS:#32770]","Choose Destination Location") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]", "left") WinWaitActive("[CLASS:#32770]","Start Copying Files") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]", "left") WinWaitActive("InstallShield Wizard","InstallShield Wizard Complete") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Finish; INSTANCE:4]") Exit My next problem is I cannot get WPKG to install it. I can see setup.exe is a running process but if it is in the background then AutoIt3 does not do its thing. Does anyone know how I can get AutoIt to do its clicks in the background/hidden? Thanks Paul
  4. Hi, no the software still throws up prompts forcing user intervention. Whoever wrote the original InstallShield package didn't want it to be silent. There isn't any reason for it to be verbose. In my original post I said I'd already tried all these. I have reference -fsetup.iss and edited the setup.ini so cmdline=/s /v/qn. AutoIt is my last (but one) hope. Otherwise I may have to make my own NSIS package.
  5. Slight progress. I've learnt that the install display is supressed by @SW_HIDE so I've removed that. I have also changed Run to the path of the application setup.exe instead of a variable. My code now looks like this: Opt('WinDetectHiddenText', 1) Run("p:filesSeqScape.2.5.revBsetup.exe") ;WinWaitActive("InstallShield Wizard","") ;WinWait("InstallShield Wizard", "60") ;WinActivate("InstallShield Wizard", "") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Finish; INSTANCE:4]") Exit The setup.exe starts up. I get the unpacking progress bar and then the first dialog box waiting for a 'Next' clink but nothing happens. Advice please. Thanks Paul
  6. I've used the Info tool to examine the buttons and would like advice on whether I now have the correct text values: ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:&Next >; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Finish; INSTANCE:4]") For the Text on the Next button the Info tool says it is "&Next >" but the Finish button is just "Finish", does that look correct? Still can't get setup.exe to run.
  7. I've found that the AutoIt icon in the bottom right is flashing a red X. I have read on the forums this will be due to my 'WinWait'. I've changed the code as it was recorded as: _WinWaitActivate(..... which others have said is wrong so I've changed it to: WinWait("InstallShield Wizard", "60") WinActivate("InstallShield Wizard", "") I presume AutoIt is waiting for 'InstallShield Wizard' to launch but it isn't launching. Any ideas? Thanks Paul
  8. Hi, this is my first go using AutoIt. I have an application with an installshield installer. I've tried all the usual switches and repsonse file stuff but cannot get it to shut up and install. So I am trying AutoIt and have created my first script: Opt('WinDetectHiddenText', 1) ;Get environment variable ;$SOFTWARE=EnvGet("SOFTWARE") $SOFTWARE="\\wpkg.myserver.com\wpkg\files" ;Path and filename of the installer executable $SEQSCAPEINSTALLER="""" & $SOFTWARE & "\SeqScape.2.5.revB\setup.exe""" Run($SEQSCAPEINSTALLER, @SW_HIDE) WinWaitActive("InstallShield Wizard","") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Next; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Next; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Next; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Next; INSTANCE:1]") ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Finish; INSTANCE:1]") Exit I have run this on the cmd line with autoit3.exe \path\to\seqscape.au3 Nothing seems to happen. I have also run it from SciTe with the ouput window displaying: >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "P:\files\SeqScape.2.5.revB\seqscape.au3" /UserParams +>10:36:40 Starting AutoIt3Wrapper v.2.1.0.8 Environment(Language:0409 Keyboard:00000809 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64) >Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3 +>10:36:40 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "P:\files\SeqScape.2.5.revB\seqscape.au3" But the software doesn't install. How do I debug this or watch the actual progress on screen to see where it is getting stuck or where I've gone wrong with the script? thanks Paul
×
×
  • Create New...