Skip to content

Instantly share code, notes, and snippets.

@texhex
Last active December 10, 2015 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save texhex/4397299 to your computer and use it in GitHub Desktop.
Save texhex/4397299 to your computer and use it in GitHub Desktop.
Rem Retrieve program files folder for the installation of the BIN file
Rem ----- 32 / 64 bit Batch Helper by TeX HeX - http://www.texhex.info/
if defined ProgramFiles(x86) GOTO WinX64
Rem This seems to be a 32-bit machine
SET IsX64=0
SET PrgFiles=%ProgramFiles%
GOTO Exec
:WinX64
SET IsX64=1
SET PrgFiles=%ProgramFiles(x86)%
GOTO Exec
:Exec
REM Install Foxit Reader Enterprise
msiexec /i "%~dp0EnterpriseFoxitReader545.0114_enu.msi" /qn /norestart /l*v "%TEMP%\FoxitReader_InstallLog.txt" MAKEDEFAULT=1 LAUNCHCHECKDEFAULT=0 VIEW_IN_BROWSER=1 STARTMENU_SHORTCUT=1 DESKTOP_SHORTCUT=0
REM Import Elevation Policy for Internet Explorer
reg import "%~dp0foxit_IEProtMode.reg"
REM Copy any Add-ons (.BIN) files to the installation folder
copy "%~dp0*.bin" "%PrgFiles%\Foxit Software\Foxit Reader\" /y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment