Changes

Foxit Reader

1,167 bytes removed, 09:38, 3 November 2011
Configuration Scripts: Keep it simple, no need for that level of complexity
==Other Configuration Scripts==
=== Foxit Reader 4.3 ==Post-Install scripts:* remove IE integration* no auto update* remove ads* remove register dialog=
 File '''settings.bat''':Remove Internet Explorer integration
<source lang="dos">
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:
</source>
REM User settings STEP 1Remove adverts: 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 entriesREM 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"=<source lang="%ALLUSERSPROFILE%dos" IF EXIST %%G\NTUSER.DAT (> REG LOAD HKU\OneUser reg add "%%GHKCU\NTUSER.DAT" >> NUL: call usersettings.bat HKEY_USERSSoftware\OneUser REG UNLOAD HKUFoxit Software\OneUser >> NUL:) REM Default user (for new users) - This one was probbably hidden from previous loopREG LOAD HKUFoxit Reader\OneUser MainFrame"%ALLUSERSPROFILE%\..\Default User\NTUSER.DAT" >> NUL:call usersettings.bat HKEY_USERS\OneUserREG UNLOAD HKU\OneUser /v ShowAd /d 0 /f >> NUL:
</source>
 File '''usersettings.bat''' (used by settings.bat)Remove Ask button:
<source lang="dos">
REM %1 should be somethnig like HKEY_CURRENT_USER or HKEY_USERSreg add "HKCU\Software\Foxit Software\Foxit Reader\S-MainFrame" /v RemoveAskBtn /d 1-5-21-3xxxxxxxx-2xxxxxxx-3xxxxxxxx-1000/f >> NUL:</source>
REM no auto updatereg add "%1\Software\Foxit Software\Foxit Reader\AutoUpdate Info" /v IsAutoUpdate /d 0 /f >> NULRemove registration dialog:reg add <source lang="%1\Software\Foxit Software\Foxit Reader\AutoUpdate Infodos" /v AutoUpdateCycle /d 0 /f >> NUL:REM remove addsreg add "%1\Software\Foxit Software\Foxit Reader\MainFrame" /v ShowAd /d 0 /f >> NUL:reg add "%1\Software\Foxit Software\Foxit Reader\MainFrame" /v RemoveAskBtn /d 1 /f >> NUL:reg add "%1HKCU\Software\Foxit Software\Foxit Reader\MainFrame" /v ShowRegisterDlg /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>
No Firefox / Internet Explorer integration (just for Display in browser check box)
<source lang="dos">
reg add "HKCU\Software\Foxit Software\Foxit Reader\MainFrame" /v DisplayInBrowser /t REG_DWORD /d 00000000 /f >> NUL:
</source>
[[Category:Silent Installers]]
577
edits