Jump to content

MY SCRIPT STUCKED INSTALLING CATIA - (Moved)


Recommended Posts

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile_x64=cat.exe
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Run_Au3Stripper=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
AutoItSetOption('MouseCoordmode', 0)
Run("C:\Windows\EXPLORER.EXE" & " " & "C:\temp\Catia_R18\CATIA_P2.win_b64\3\setup.exe")
sleep (3000)
WinWait('CATIA V5R18 Welcome')
WinActivate('Welcome')
MouseClick('primary', 591,307,1,0)
Opt("WinTitleMatchMode", 4)
$winMatchdslicense = "[CLASS:#32770]"
Local $hWnd = WinActivate($winMatchdslicense)
MouseClick('primary', 595,303,1,0)
WinWait('CATIA V5R18 Choose Destination Location')
WinActivate('CATIA V5R18 Choose Destination Location')
ControlClick('CATIA V5R18 Choose Destination Location', "", "Button3")
winwait('Confirm creation of directory')
WinActivate('Confirm creation of directory')
ControlClick('Confirm creation of directory', "", "Button1")
WinWait('Environment')
WinActivate('Environment')
ControlClick('Environment', "", "Button3")
winwait('Confirm creation of directory')
WinActivate('Confirm creation of directory')
ControlClick('Confirm creation of directory', "", "Button1")
WinWait('CATIA V5R18 Setup Type')
WinActivate('CATIA V5R18 Setup Type')
ControlClick('CATIA V5R18 Setup Type', "", "Button3")
WinWait('CATIA V5R18 Choose Orbix Configuration')
WinActivate('CATIA V5R18 Choose Orbix Configuration')
ControlClick('CATIA V5R18 Choose Orbix Configuration', "", "Button3")
WinWait('CATIA V5R18 Servers Timeout Configuration')
WinActivate('CATIA V5R18 Servers Timeout Configuration')
ControlClick('CATIA V5R18 Servers Timeout Configuration', "", "Button3")
WinWait('CATIA V5R18 Vault Client Configuration')
WinActivate('CATIA V5R18 Vault Client Configuration')
ControlClick('CATIA V5R18 Vault Client Configuration', "", "Button3")
WinWait('CATIA V5R18 Choose Communication Ports')
WinActivate('CATIA V5R18 Choose Communication Ports')
ControlClick('CATIA V5R18 Choose Communication Ports', "", "Button3")
WinWait('CATIA V5R18 Custom Shortcut Creation')
WinActivate('CATIA V5R18 Custom Shortcut Creation')
ControlClick('CATIA V5R18 Custom Shortcut Creation', "", "Button3") ### STUCKED HERE ANY SUGGESTION
WinWait('CATIA V5R18 Select Documentation')
WinActivate('CATIA V5R18 Select Documentation')
ControlClick('CATIA V5R18 Select Documentation', "", "Button3")
WinWait('CATIA V5R18 Start Copying Files')
WinActivate('CATIA V5R18 Start Copying Files')
ControlClick('CATIA V5R18 Start Copying Files', "", "Button3")
Sleep(1800000)
WinWait('CATIA V5R18 Setup Complete')
WinActivate('CATIA V5R18 Setup Complete')
ControlClick('CATIA V5R18 Setup Complete', "", "Button3")
Sleep(9000)
Run("C:\Windows\EXPLORER.EXE" & " " & "C:\temp\Catia_R18\spk\2\WIN64\StartSPK.exe")
sleep (3000)
WinWait('Welcome to Dassault Systemes Service Pack Setup')
WinActivate('Welcome')
ControlClick('Welcome', "", "Button3")
if WinExists('Running processes') Then
WinActivate('Running processes')
ControlClick('Running processes', "", "Button1")
Else
    EndIf
WinWait('Choose the Service Pack Installation mode')
WinActivate('MediaSPK')
ControlClick('MediaSPK', "", "Button4")
ControlClick('MediaSPK', "", "Button3")
WinWait('Choose the Service Pack Installation mode')
WinActivate('Resume')
ControlClick('Resume', "", "Button3")
Sleep(2000)
WinWait('End of Service Pack Setup')
WinActivate('Finish')
ControlClick('Finish', "", "Button3")
MsgBox (64,"service pack complete","done")

please suggest me what may be problem or any other alternative way to acheive it?

image.thumb.png.e1ad15250975f03208f2acd0e3572fce.png

Link to comment
Share on other sites

the way you are statically waiting is not a good approach to apps of any kind, especially installers.

as Tom Petty said in a song, 'The Waiting is the Hardest part', well it's not really that hard. Can I download it and play with the installer and see what I come up with?

anyway, it it supports silent install, do that instead. much easier and less prone to failures.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

According to Google CATIA supports silent installation.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Yes I do agree but I'm trying to achieve in one click with sp and hf also installed and some modifications through autoit tools now I have completed the script some what but each time while it's running exe's which is inserted to the script it's asking permission any ideas for that

 

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
 Share

  • Recently Browsing   0 members

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