foxit pdf reader
#1
Posted 16 August 2006 - 03:20 PM
#2
Posted 16 August 2006 - 03:44 PM
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\Foxit PDF Reader\MainFrame] "ShowTollBar"="1" "ShowStatusBar"="1" "ShowMenu"="1" "MainShowCmd"="3" "ShowFullScreen"="0" "CheckRegister"="0" [HKEY_USERS\.DEFAULT\Software\Local AppWizard-Generated Applications\Foxit PDF Reader\MainFrame] "ShowTollBar"="1" "ShowStatusBar"="1" "ShowMenu"="1" "MainShowCmd"="3" "ShowFullScreen"="0" "CheckRegister"="0" [HKEY_CLASSES_ROOT\.pdf] @="AcroExch.Document" [HKEY_CLASSES_ROOT\AcroExch.Document] "EditFlags"=dword:00000000 "BrowserFlags"=dword:00000008 @="" [HKEY_CLASSES_ROOT\AcroExch.Document\shell] @="Open_With_PDF-Reader" [HKEY_CLASSES_ROOT\AcroExch.Document\shell\Open_With_PDF-Reader] @="Open With PDF-Reader" [HKEY_CLASSES_ROOT\AcroExch.Document\shell\Open_With_PDF-Reader\command] @="PDFread.exe \"%1\""
#3
Posted 16 August 2006 - 04:17 PM
RegWrite("HKCR\.pdf","","REG_SZ","FoxitReader.Document")
RegWrite("HKCR\.pdf","Content Type","REG_SZ","application/pdf")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}","","REG_SZ","PDF Document")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\AuxUserType\2")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\AuxUserType\3","","REG_SZ","Foxit Reader")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\DefaultExtension","","REG_SZ",".pdf, PDF Files(*.pdf)")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\DefaultIcon","","REG_SZ",$AFI_BASE&"\usr\"&$AFI_XXX&"\Foxit.exe,1")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\InprocHandler32","","REG_SZ","ole32.dll")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\LocalServer32")
RegWrite("HKCR\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\ProgID","","REG_SZ","FoxitReader.Document")
RegWrite("HKCR\FoxitReader.Document","","REG_SZ","PDF Document")
RegWrite("HKCR\FoxitReader.Document","BrowseInPlace","REG_SZ",1)
RegWrite("HKCR\FoxitReader.Document\CLSID")
RegWrite("HKCR\FoxitReader.Document\DefaultIcon","","REG_SZ",$AFI_BASE&"\usr\"&$AFI_XXX&"\Foxit.exe,1")
RegWrite("HKCR\FoxitReader.Document\protocol\StdFileEditing\server")
RegWrite("HKCR\FoxitReader.Document\protocol\StdFileEditing\server")
RegWrite("HKCR\FoxitReader.Document\shell\open\command","","REG_SZ",'"'&$AFI_BASE&'\usr\'&$AFI_XXX&'\Foxit.exe" "%1"')
RegWrite("HKCR\MIME\Database\Content Type\application/pdf","CLSID","REG_SZ","{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}")
RegWrite("HKCR\MIME\Database\Content Type\application/pdf","Extension","REG_SZ",".pdf")
RegWrite("HKU\.Default\Software\Foxit Software\Foxit Reader\MainFrame","ShowEditorAd_908","REG_SZ",0)
RegWrite("HKU\.Default\Software\Foxit Software\Foxit Reader\MainFrame","ShowReaderAd_908","REG_SZ",0)
RegWrite("HKU\.Default\Software\Foxit Software\Foxit Reader\MainFrame","ShowTypewriterAd_908","REG_SZ",0)
RegWrite("HKU\.Default\Software\Foxit Software\Foxit Reader\MainFrame","ShowPOAd_908","REG_SZ",0)
RegWrite("HKU\.Default\Software\Foxit Software\Foxit Reader\MainFrame","ShowSDKAd_908","REG_SZ",0)
RegWrite("HKCU\Software\Foxit Software\Foxit Reader\MainFrame","ShowEditorAd_908","REG_SZ",0)
RegWrite("HKCU\Software\Foxit Software\Foxit Reader\MainFrame","ShowReaderAd_908","REG_SZ",0)
RegWrite("HKCU\Software\Foxit Software\Foxit Reader\MainFrame","ShowTypewriterAd_908","REG_SZ",0)
RegWrite("HKCU\Software\Foxit Software\Foxit Reader\MainFrame","ShowPOAd_908","REG_SZ",0)
RegWrite("HKCU\Software\Foxit Software\Foxit Reader\MainFrame","ShowSDKAd_908","REG_SZ",0)
You can't just use this one since I have my custom network paths, but you should be able to hack it.
Oh, and there are some extra settings in there that disable the little pink ad bar. Since it's not changing anything I think it would be okay, but if a mod doesn't think it's cool I'll change it if they want me to.
And yes, there are duplicates in there...some apply to the current user, and others to the default user profile. I do this because I don't run these installs during the unattended, but under a 'special' user I make for these tasks. Because of that the 'special' users profile is already created so it won't pull the reg settings from the default profile.
Good luck!
#5
Posted 23 August 2006 - 03:09 AM
%SystemRoot%\PDFread.exe -Register
No need to regs, unless for tweaking.
#6
Posted 02 October 2006 - 07:55 AM
Is it like this?
Quote
REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\foxit.exe" /GROUP="1-Applications" /f
REG ADD %KEY%\050 /V 2 /D "REGEDIT /S %systemdrive%\Foxit.reg" /f
Foxit.reg, being the code you provided for the application, stored in the %SystemDrive%?
Oh and one more thing, what the h3ck, is the /f switch stand for?
This post has been edited by gyrene2083: 02 October 2006 - 08:04 AM
#7
Posted 02 October 2006 - 12:27 PM
Check their site at www.foxitsoftware.com!
I suggest you download the ZIP Package (zip) not the Installer (exe).
Unzip the downloaded archive (foxitreader.zip) and put the
extracted "FoxitReader.exe" in: $OEM$\$$\ in your UACD!
When you set up Windows, the directory is translated to
X:\Windows, where X is your System Drive.
Hence, the path to your app will be X:\Windows\FoxitReader.exe!
Being in Windows directory, your system KNOWS where to find it.
And since your Install directory will be deleted in the end,
I'd suggest you put "Foxit.reg" in $OEM$\$1\Install\; this will be
translated to X:\Install.
Hence, the path to your reg file will be X:\Install\Foxit.reg!
Be careful: if file name in X:\Windows is FoxitReader.exe,
you must keep the same name in your Foxit.reg.
In my reg file, I name it PDFread.exe because I renamed
my file in $OEM$\$$ to PDFread.exe!
Now that everything is supposed to be done well, add these lines to
your RunOnceEx.cmd:
REG ADD %KEY%\050 /VE /D "FoxIt Reader 2.0 - Tweaking and Registering" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %SystemDrive%\Install\Foxit.reg" /f
That's it!
Ah, the /f switch?
Being used with REG ADD, it's actually useless!
Sometimes, it's harmful, too.
I said that long ago.
It's function is to force overwriting strings in the Registry, if any.
However, I'm always using it with REG DELETE.
OFF TOPIC: /GROUP switch is used with INNO installers ONLY!
This post has been edited by mazin: 02 October 2006 - 12:45 PM
#8
Posted 03 October 2006 - 10:15 AM
This post has been edited by kof94: 03 October 2006 - 02:00 PM
#9
Posted 03 October 2006 - 11:34 AM
Also, I had two off topic questions.
First question, I have a few programs that are NULLSOFT packaged. I found this out using the Installer Tools. When I right clicked the executible this is what I got.
Nullsoft ® Installer
setup.exe /Option
(All switches MUST be upper case. No double quotes)
Install Options
/D=x:\dirname
Install program to path.
/NCRC
Skip CRC check.
Display Options
/S
Silent mode.
CMenu Options
AutoIt Usage
Create the Au3 template script.
Edit any variables at the start of the script, and add shortcuts, that require deletion.
Refer to the CMenu Help Guide. It displays sample highlighted items, to edit.
Compile the script, into an exe, and keep it with the installer.
Run the compiled exe, to install.
Command line Usage
To silently install, use the switch:
Setup.exe /S
I tried it with the /S switch, and I still had to interact with the prog to install it. I also, tired the /D=x:\dirname, and that didn't work at all. Then I saw the CMenu options for AutoIt. How can I make the script to make this prog run? (I did read the help me file, but it wasn't helpful to me).
Second question, I also checked the TweakUI and this is what I got back;
InstallShield 2003 ® Installer
setup.exe /Option
Install Options
/a
Add following parameters to the archived msi.
/v
Parameters used after this, are passed to the *.msi inside a package.
Display Options
/s
Silent install *.exe packaged.
/qn
Silent install *.msi.
/qb
Silent install *.msi with progress window.
User Options
AutoIt Usage
Create the Au3 template script.
Edit any variables at the start of the script, and add shortcuts, that require deletion.
Refer to the CMenu Help Guide. It displays sample highlighted items, to edit.
Compile the script, into an exe, and keep it with the installer.
Run the compiled exe, to install.
;
If extraction chosen, then run Identity Installer again, when complete.
Command line Usage
To silently install, use:
setup.exe /s /v"/qn"
To silently install, if installer extracted, then use:
setup.msi /qn
I tried all the switches in there and I still didn't get it to install, any ideas on how I can make this work? I would greatly appreciate any help.
#10
Posted 03 October 2006 - 02:01 PM
Its's very usefull when installers don't have silent switches (and more).
I'd suggest anyone seriously into unattended installations to get used to using it, your gonna need it sooner or later.
Anyway this is what you need to do:
- Install AutoIt
- Redownload my Foxit.au3 from this post
- Download foxitreader_setup.exe.
- Put my Foxit.au3 and foxitreader_setup.exe in the same dir
- Right click Foxit.au3 and click "Compile"
Your done. Now you have an AutoIt wrapped installer.
This post has been edited by kof94: 03 October 2006 - 02:07 PM
#11
Posted 03 October 2006 - 02:30 PM
http://www.msfn.org/...showtopic=83618
You can decompile it and check how it works
This post has been edited by rado354: 03 October 2006 - 02:31 PM
#12
Posted 03 October 2006 - 03:45 PM
REG ADD %KEY%\005 /VE /D "FoxIt Reader 2.0" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\apps\FoxIt\FoxIt.exe" /f
#13
Posted 03 October 2006 - 04:34 PM
You got it!
@rado354
Didn't meen to be treadin' you buddy
This post has been edited by kof94: 03 October 2006 - 04:35 PM
#14
Posted 03 October 2006 - 04:50 PM
So, that should be a good place to start, right? I also, have a couple of VB books too. Come, to think of it, how the h3ll did I get these books? Sorry, thinking aloud!lol
#15
Posted 04 October 2006 - 01:50 PM
I just messed with other peoples scripts and read the manual!
Oh, and I do cheat abit by using a script generator first and then tidy it up and add features.
I think you'll be the one dishing out the advice soon.
Happy scripting.
#16
Posted 04 October 2006 - 03:35 PM
#17
Posted 08 December 2006 - 11:35 AM
My installer has pdf association, JavaScript Support, GDI+ and full support for English, Dutch, German and Language
http://arcovink2.goo...FoxitReader.exe
Components:
-Helpfile
-GDI+
-JavaScript Support
Tasks:
-Desktopicon
-Quicklaunchicon
This post has been edited by arco: 09 December 2006 - 02:42 AM
- ← Help installing Norton Internet Security 2007 silently
- Application Installs
- Internet Explorer Standalone&Customization installer tool →



Help
Back to top









