MSFN Forum: foxit pdf reader - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

foxit pdf reader Rate Topic: -----

#1 User is offline   wickerwolf 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 19-April 06

Posted 16 August 2006 - 03:20 PM

hey, ive made a silent istall for this but how can i have it so its the default program for opening .pdf files automatically without haing to open the program first and set it to the default pdf viewer?


#2 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 16 August 2006 - 03:44 PM

You only need the EXE. I rename it to PDFread.exe and put it in %SystemRoot%\PDFread.exe then apply this reg file.

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 User is offline   InTheWayBoy 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 709
  • Joined: 16-August 04

Posted 16 August 2006 - 04:17 PM

I do the same as mazin does, I drop the exe (which I rename to foxit.exe) into a directory and then run an AutoIt script to handle all the dirty work. The bulk of it is registry changes, here is the script:

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!

#4 User is offline   wickerwolf 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 19-April 06

Posted 16 August 2006 - 06:14 PM

Thanks both methods work great :)

#5 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 23 August 2006 - 03:09 AM

Easier, yet:

%SystemRoot%\PDFread.exe -Register

No need to regs, unless for tweaking.

#6 User is offline   gyrene2083 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 25-August 06

Posted 02 October 2006 - 07:55 AM

Mazin, I was wondering how would I put that in the RunOnceEx.cmd file?

Is it like this?

Quote

REG ADD %KEY%\005 /VE /D "FoxIt Reader" /f
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%? :huh:
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 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 02 October 2006 - 12:27 PM

Foxit Reader 2.0 for Windows is out (Sep 12, 2006).

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 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 03 October 2006 - 10:15 AM

**Deleted**

This post has been edited by kof94: 03 October 2006 - 02:00 PM


#9 User is offline   gyrene2083 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 25-August 06

Posted 03 October 2006 - 11:34 AM

I'm not familiar on how to make the script run, as I'm not familiar with AUTOIT. How can I implement that in the RunOnceEx.cmd file?

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 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 03 October 2006 - 02:01 PM

Check out AutoIt here.

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 User is offline   rado354 

  • nLited user
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,611
  • Joined: 29-May 05

Posted 03 October 2006 - 02:30 PM

Here is an addon for Foxit Reader 2.0 made with AutoIt script:

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 User is offline   gyrene2083 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 25-August 06

Posted 03 October 2006 - 03:45 PM

I compiled the file. So, I'm guessing I have to put it in my Runonceex.cmd file like this?


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 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 03 October 2006 - 04:34 PM

@gyrene2083

You got it!

@rado354

Didn't meen to be treadin' you buddy :unsure:

This post has been edited by kof94: 03 October 2006 - 04:35 PM


#14 User is offline   gyrene2083 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 25-August 06

Posted 03 October 2006 - 04:50 PM

SWEET, and I went to that AutoIt site and it suggested "Windows Admin Scripting Little Black Book". They posted the second edition. But, I looked through my own library, because the black book part rang a bell, and viola I have the first edition. Don't remember why I got it, but I have it.

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 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 04 October 2006 - 01:50 PM

You geek :P .

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 User is offline   rado354 

  • nLited user
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,611
  • Joined: 29-May 05

Posted 04 October 2006 - 03:35 PM

View Postkof94, on Oct 3 2006, 04:34 PM, said:

@rado354

Didn't meen to be treadin' you buddy :unsure:


LOL, sorry mate!

I didn't see you posted the au3 file :blushing:

#17 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 08 December 2006 - 11:35 AM

I say: make it easy, use Inno Installer (you have then also the most silent switchess)
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


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy