Changes
added post-install scripts
</source>
=Configuration scripts=
== Foxit Reader 3.1 ==
Post-Install scripts:
* remove desktop link
* remove FF plugin
* remove IE integration
* no auto update
* remove adds
File '''settings.bat''':
<source lang="dos">
REM remove desktop link
DEL /Q "%ALLUSERSPROFILE%\Desktop\Foxit Reader.lnk"
REM remove FF plugin
DEL /Q "%PROGRAMFILES%\Mozilla Firefox\plugins\npFoxitReaderPlugin.dll"
REM remove IE integration
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document /v EditFlags /t REG_DWORD /d 00000002 /f >> NUL:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E} /f >> NUL:
REM User settings STEP 1: set currently loaded registry user entries
FOR /F %%G IN ('reg query HKEY_USERS^|find "HKEY_USERS\"^|find /V "_Classes"') DO (
call usersettings.bat %%G
)
REM User settings STEP 2: set currently unloaded registry user entries
REM This will fail to load registry entries for users that are currently logged in (those are already set by STEP 1)
FOR /D %%G in ("%ALLUSERSPROFILE%\..\*") DO IF NOT "%%G"=="%ALLUSERSPROFILE%" IF EXIST %%G\NTUSER.DAT (
REG LOAD HKU\OneUser "%%G\NTUSER.DAT" >> NUL:
call usersettings.bat HKEY_CURRENT_USER\OneUser
REG UNLOAD HKU\OneUser >> NUL:
)
REM Default user (for new users) - This one was probbably hidden from previous loop
REG LOAD HKU\OneUser "%ALLUSERSPROFILE%\..\Default User\NTUSER.DAT" >> NUL:
call usersettings.bat HKEY_CURRENT_USER\OneUser
REG UNLOAD HKU\OneUser >> NUL:
</source>
File '''usersettings.bat''' (used by settings.bat):
<source lang="dos">
REM %1 should be somethnig like HKEY_CURRENT_USER or HKEY_USERS\S-1-5-21-3xxxxxxxx-2xxxxxxx-3xxxxxxxx-1000
REM no auto update
reg add "%1\Software\Foxit Software\Foxit Reader\AutoUpdate Info" /v IsAutoUpdate /d 0 /f >> NUL:
reg add "%1\Software\Foxit Software\Foxit Reader\AutoUpdate Info" /v AutoUpdateCycle /d 0 /f >> NUL:
REM remove adds
reg add "%1\Software\Foxit Software\Foxit Reader\MainFrame" /v ShowAd /d 0 /f >> NUL:
REM no FF and IE integration (just for Display in browser check box)
reg add "%1\Software\Foxit Software\Foxit Reader\MainFrame" /v DisplayInBrowser /t REG_DWORD /d 00000000 /f >> NUL:
</source>
=Configuration=