Jump to content

Foxit Reader


bobthenob

Recommended Posts

foxit reader

Run ("foxitreader_setup.exe")
Winwaitactive("Foxit Reader Install Wizard")
send('{ENTER}')

Winwaitactive("Foxit Reader Install Wizard","Foxit Reader End User License Agreement")
send('{ENTER}')

controlclick("Foxit Reader Install Wizard","Use default settings",1014)

Winwaitactive("Foxit Reader Install Wizard","Destination location:")
send('{ENTER}')

Winwaitactive("Foxit Reader Install Wizard","Setup has successfully")
Send('{ALT}')
controlclick("Foxit Reader Install Wizard","Setup has successfully",1008)

send('{ENTER}')

Winwaitactive("Foxit Reader")
send('{ENTER}')

Winwaitactive("Foxit Reader 1.3")
send('{ALT}{up}{up}{ENTER}')

EXIT

Link to comment
Share on other sites

  • 1 year later...

Wow, lots of threads about Foxit, but only one describing the AutoIt method of install? That's just wrong :rolleyes:

Here's how I'm doing it to accomplish a silent install, with balloon tip indicator, that places a shortcut to the program in the Accessories directory, registers the program as the default PDF reader, and opens the program on first run with no advertising:

1. Get the zipped version directly from Foxit and put the executable in a directory of your choosing.

2. Put this registry file in the same directory, I called mine "adverts.reg:"

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader\MainFrame]
"AdvertiseIndex"="6"
"ShowEditorAd_908"="0"
"ShowReaderAd_908"="0"
"ShowTypewriterAd_908"="0"
"ShowPOAd_908"="0"
"ShowSDKAd_908"="0"

3. Run this AutoIt script from the same directory:

TrayTip('Unattended Installation', 'Installing Foxit PDF Reader . . . please wait . . .', 0, 1)
FileCopy( @ScriptDir & "\FoxitReader.exe", @ProgramFilesDir & "\Foxit Software\Foxit Reader\", 9)
FileCreateShortcut( @ProgramFilesDir & "\Foxit Software\Foxit Reader\FoxitReader.exe", _
@ProgramsCommonDir & "\Accessories\Foxit PDF Reader.lnk")
RunWait( @ProgramFilesDir & "\Foxit Software\Foxit Reader\FoxitReader.exe -register")
RunWait( @Comspec & ' /C regedit /S ' & @ScriptDir & '\adverts.reg', '', @SW_HIDE )
TrayTip("clear tip","",0)

Done! As Darth Vader would say, "all too easy." Edited for typos :blushing:

Edited by blinkdt
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
  • Recently Browsing   0 members

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