MSFN Forum: autoit reinstall app - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage ˇ MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

autoit reinstall app Rate Topic: -----

#1 User is offline   N3tz 

  • Group: Members
  • Posts: 4
  • Joined: 06-April 09

Posted 30 April 2009 - 08:20 PM

hi i from argentine :thumbup

google translate

the unattended program In first installation remains perfect
But when I reinstall it, the process stays bsplayer.exe opened
I tested with if Winexist () But I did not obtain results
Some solution for When installs or reinstall, close proccess bsplayer.exe

Thank you very much!!!!

bsplayer 2.27

Quote

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('BSPlayer PRO 2.27.959.exe')
WinWait("BS.Player PRO Setup ","Please review the li")
If Not WinActive("BS.Player PRO Setup ","Please review the li") Then WinActivate("BS.Player PRO Setup ","Please review the li")
WinWaitActive("BS.Player PRO Setup ","Please review the li")
Send("{ENTER}")
WinWait("BS.Player PRO Setup","Welcome to the BS.Pl")
If Not WinActive("BS.Player PRO Setup","Welcome to the BS.Pl") Then WinActivate("BS.Player PRO Setup","Welcome to the BS.Pl")
WinWaitActive("BS.Player PRO Setup","Welcome to the BS.Pl")
Send("{ENTER}")
WinWait("BS.Player PRO Setup ","Choose which feature")
If Not WinActive("BS.Player PRO Setup ","Choose which feature") Then WinActivate("BS.Player PRO Setup ","Choose which feature")
WinWaitActive("BS.Player PRO Setup ","Choose which feature")
Send("{ENTER}")
WinWait("BS.Player PRO Setup ","Choose Install Locat")
If Not WinActive("BS.Player PRO Setup ","Choose Install Locat") Then WinActivate("BS.Player PRO Setup ","Choose Install Locat")
WinWaitActive("BS.Player PRO Setup ","Choose Install Locat")
Send("{ENTER}")
WinWait("BS.Player PRO Setup","Additional install o")
If Not WinActive("BS.Player PRO Setup","Additional install o") Then WinActivate("BS.Player PRO Setup","Additional install o")
WinWaitActive("BS.Player PRO Setup","Additional install o")
Send("{ENTER}")
WinWait("BS.Player PRO Setup","Select default langu")
If Not WinActive("BS.Player PRO Setup","Select default langu") Then WinActivate("BS.Player PRO Setup","Select default langu")
WinWaitActive("BS.Player PRO Setup","Select default langu")
Send("{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN
}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}")
WinWait("BS.Player PRO Setup ","Installation Complet")
If Not WinActive("BS.Player PRO Setup ","Installation Complet") Then WinActivate("BS.Player PRO Setup ","Installation Complet")
WinWaitActive("BS.Player PRO Setup ","Installation Complet")
Send("{ENTER}")
WinWait("BS.Player PRO Setup ","Completing the BS.Pl")
If Not WinActive("BS.Player PRO Setup ","Completing the BS.Pl") Then WinActivate("BS.Player PRO Setup ","Completing the BS.Pl")
WinWaitActive("BS.Player PRO Setup ","Completing the BS.Pl")
Send("{ENTER}")
If Not WinActive("Información de Registro"," Registro de BSp") Then WinActivate("Información de Registro"," Registro de BSp")
WinWaitActive("Información de Registro"," Registro de BSp")
Send("{SHIFTDOWN}xxx{SHIFTUP}xxxxx{TAB}xxxxxxxxxx{ENTER}{TAB}{ENTER}")
WinWait("Información","Gracias por registra")
If Not WinActive("Información","Gracias por registra") Then WinActivate("Información","Gracias por registra")
WinWaitActive("Información","Gracias por registra")
Send("{ENTER}")
EndIf

;Cierra Aplicacion
Sleep("200")
ProcessWait("bsplayer.exe", 10)
ProcessClose("bsplayer.exe")
Exit

This post has been edited by N3tz: 30 April 2009 - 08:48 PM



#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 01 May 2009 - 02:50 AM

Hi from Australia :)

I am not sure if I understand correct but perhaps this may help you. It is cleaned up and added some possible improvements.
 
Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("MouseCoordMode", 0)

; close instance of bsplayer.exe
If ProcessExists("bsplayer.exe") Then
	ProcessClose("bsplayer.exe")
EndIf

; use quoted double quotes with paths that contain spaces
$pid = Run('"BSPlayer PRO 2.27.959.exe"')
; if Run() sets @error then exit
If @error Then Exit 1

_WinWaitActive("BS.Player PRO Setup", "Please review the li")
Send("{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Welcome to the BS.Pl")
Send("{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Choose which feature")
Send("{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Choose Install Locat")
Send("{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Additional install o")
Send("{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Select default langu")
Send("{DOWN 23}{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Installation Complet")
Send("{ENTER}")
_WinWaitActive("BS.Player PRO Setup", "Completing the BS.Pl")
Send("{ENTER}")
_WinWaitActive("Información de Registro", " Registro de BSp")
Send("{SHIFTDOWN}xxx{SHIFTUP}xxxxx{TAB}xxxxxxxxxx{ENTER}{TAB}{ENTER}")
_WinWaitActive("Información", "Gracias por registra")
Send("{ENTER}")

;Cierra Aplicacion
ProcessWait("bsplayer.exe", 10)
ProcessClose("bsplayer.exe")
ProcessWaitClose($pid)

Exit

Func OnAutoItStart()
	; run one script instance only
	If WinExists(@ScriptName & '_Interpreter') Then Exit
	AutoItWinSetTitle(@ScriptName & '_Interpreter')
EndFunc

Func _WinWaitActive($title, $text = "")
	; window wait functions
	WinWait($title, $text)
	WinActivate($title, $text)
	WinWaitActive($title, $text)
EndFunc
 


#3 User is offline   N3tz 

  • Group: Members
  • Posts: 4
  • Joined: 06-April 09

Posted 01 May 2009 - 11:01 AM

works, thank you very much mhz :thumbup Posted Image

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy