MattHiggs

Portableapps.com auto-installer

1 post in this topic

#1 ·  Posted

So I am not sure what has changed with the portableapps.com launcher, but when I go to install new portable applications using the built in search for apps function, the install menus for those applications (which previously never appeared and the apps just auto-installed) now require that the user go through the setup menus for each portable app you want to install, and if you want to install..say...all of them... this will lead to a lot of tedious menu navigation.  I actually wrote this script to automate the install menu navigation when installing apps from the portableapps.com launcher:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Version=Beta
#AutoIt3Wrapper_Res_SaveSource=y
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#AutoIt3Wrapper_Add_Constants=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Opt ( "WinTitleMatchMode", 2 )

While 1
    Sleep ( 300 )
    If WinExists ( "PortableApps.com Platform", "OK" ) Then
        $next10 = WinActivate ( "PortableApps.com Platform", "OK" )
        ControlClick ( $next10, "", 2 )
    EndIf
    If WinExists ( "PortableApps.com Installer", "I &Agree" ) Then
        $last = WinActivate ( "PortableApps.com Installer", "I &Agree" )
        ControlClick ( $last, "", 1 )
    EndIf
    If WinExists ( "PortableApps.com Installer", "&Next >") Then
        $lastreal = WinActivate ( "PortableApps.com Installer", "&Next >" )
        ControlClick ( $lastreal, "", 1 )
    EndIf
    If WinExists ( "PortableApps.com Installer", "&Install") Then
        $lastreal1 = WinActivate ( "PortableApps.com Installer", "&Install" )
        ControlClick ( $lastreal1, "", 1 )
    EndIf
    If WinExists ( "PortableApps.com Installer", "&Finish") Then
        $lastreal2 = WinActivate ( "PortableApps.com Installer", "&Finish" )
        ControlClick ( $lastreal2, "", 1 )
    EndIf

WEnd

 

1 person likes this

Share this post


Link to post
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