Adding Registry Keys to windows 7 and XP

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

vipzzz
User
Posts: 6
Joined: Fri Jul 08, 2011 10:04 am

Adding Registry Keys to windows 7 and XP

Post by vipzzz »

Hello All,

I am new member here.

I have a question and i hope it makes sense. I want to add few registry keys as a .reg file that makes sure:-

- The file association is set that the PDF is set to PDF Xchange viewer ( i think i have done now)
- Set a reg key that the " Display from browser is ticked"
- Create a key to hide the AD's section is ticked
- AND to turn off any notifications such as defualt PDF application and displaying PDF on the browser as this application is the main application we use in our business.

Hope this all makes sense.

Hope to speak to you all soon.

Vip
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Adding Registry Keys to windows 7 and XP

Post by Stefan - PDF-XChange »

Hello Vipzzz,

I am afraid that some of those registry changes you want to make are stored in quite some places in the registry - e.g. the file associations and default applications - they are not in e.g. HKEY_CURRENT_USER\Software\Tracker Software\
So the better solutions would be to make sure that you assign those associations at install time - there are quite some parameters you ca specify in both the .exe and .msi installers.

Another option is to export all settings from one instance of the Viewer - and import them in another - although I am not sure whether this will set file associations and browser plug-in settings as well - but it's worth a try, and it will rectainly work for the third and fourth things you want to achieve (hide the add bar and disable prompts).

Best,
Stefan
vipzzz
User
Posts: 6
Joined: Fri Jul 08, 2011 10:04 am

Re: Adding Registry Keys to windows 7 and XP

Post by vipzzz »

Hello Stefan,

Thanks for the FAST reply.

I have managed to find the file associations key which is:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdf]
@="PDF-XChangeViewer.1"
"PerceivedType"="document"
"Content Type"="application/pdf"

This works 100% fine.

The reason i am asking all these question is that the company i work are starting to role out PDF Xchnage and uninstalling Adobe PDF reader and on few manchines there are alot of confusion and alot of non linked file associations.

The keys I have found and might b helpful are:

Thought this will tick the hide ad tick box but doesnt.
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Registration]
"HideAD"=dword:00000001

This selects the display in browser but the message prompt keep on coming up everytime i open the application
[HKEY_LOCAL_MACHINE\SOFTWARE\Tracker Software\PDFViewer\FileAssociations]
"DisplayInBrowser"=dword:00000001

These two keys i thought they will stop showing those messages everytime you open the application but dont.
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmDisplayPDFInBrowser]
"UserChoice"=dword:00000007

[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmMakeDefaultPDFViewer]
"UserChoice"=dword:00000006
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Adding Registry Keys to windows 7 and XP

Post by Vasyl - PDF-XChange »

Hi, Vip.
Thought this will tick the hide ad tick box but doesnt.
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Registration]
"HideAD"=dword:00000001
It works for PRO version only.
These two keys i thought they will stop showing those messages everytime you open the application but dont.
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmDisplayPDFInBrowser]
"UserChoice"=dword:00000007
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmMakeDefaultPDFViewer]
"UserChoice"=dword:00000006
Add two values to skip prompting:
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmMakeDefaultPDFViewer]
"Show"=dword:00000000
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmDisplayPDFInBrowser]
"Show"=dword:00000000


BUT, if you wanted to install the PDF-association for our PDF-Viewer then I recommend you use next method:
launch our exe with command line:
PDFXview.exe /MakeAssoc --- sets the PDF-assoc for the our viewer
PDFXview.exe /MakeAssoc:web=yes --- sets the PDF-assoc for the our viewer and enables displaying PDF in the browsers
PDFXview.exe /MakeAssoc:web=no --- sets the PDF-assoc for the our viewer and disables displaying PDF in the browsers

Best
Regards
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
vipzzz
User
Posts: 6
Joined: Fri Jul 08, 2011 10:04 am

Re: Adding Registry Keys to windows 7 and XP

Post by vipzzz »

Hello Vasyl,

Thanks for your quick reply!!!

We do have a full pro version of PDF Xchange, its a company license 200 + i think!

I have added the 2 values you have suggested and not made any changes.

Vip
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Adding Registry Keys to windows 7 and XP

Post by Stefan - PDF-XChange »

You are welcome Vip,

Please let us know how it goes :)

Cheers,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Adding Registry Keys to windows 7 and XP

Post by Vasyl - PDF-XChange »

Hi, Vip.

If there are still any problems - please send us a bug-report (via the Viewer -> Help -> Report a problem) with "Include your printers and SETTINGS..." option checkbox enabled and we will investigate it..

Note: Any of these registry tricks will work only if you used the NON-portable version. To detect it - look to program folder, if folder contains the portable.dat file - your version is portable.

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
vipzzz
User
Posts: 6
Joined: Fri Jul 08, 2011 10:04 am

Re: Adding Registry Keys to windows 7 and XP

Post by vipzzz »

Hello,

I have attached an outlook mail item that has all the information.

The version i am using is not portable.

Thanks for your speedy reponse.

Vip
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Adding Registry Keys to windows 7 and XP

Post by Vasyl - PDF-XChange »

Hi,

Thanks for the report.

Please try this .reg and let me known about result, close program before launching the .reg file.
It works properly for me...

Best
Regards.
You do not have the required permissions to view the files attached to this post.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
vipzzz
User
Posts: 6
Joined: Fri Jul 08, 2011 10:04 am

Re: Adding Registry Keys to windows 7 and XP

Post by vipzzz »

Hello,

Thanks for the .reg file.

Im still having the problem that the dialog box for the display browser option appears everytime I open PDF Xchange. Even though "Display in Browser" option is ticked.

Im very confused!!! :shock:

Vip
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Adding Registry Keys to windows 7 and XP

Post by Vasyl - PDF-XChange »

Hi, Vip.

Please check one place by regedit:

[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmDisplayPDFInBrowser]
The "Show" value should be 0 (zero)
The "UserChoice" value should be 6 (six == "yes")

the values under the key:
[HKEY_CURRENT_USER\Software\Tracker Software\PDFViewer\Prompts\ConfirmMakeDefaultPDFViewer]
- should be the same

Also I have attached the updated reg file - try it please.

If it does not work - try to run the program with command line:
PDFXCview.exe /MakeAssoc:web=yes

Best
Regards.
You do not have the required permissions to view the files attached to this post.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Adding Registry Keys to windows 7 and XP

Post by Stefan - PDF-XChange »

Hello Vipzzz,

It was pleasure speaking with you earlier today over the phone.
As promised I spoke with Vasyl, and he told me that the best and most elegant solution is:
1. run the Viewer installer under admin
2. run the main exe with command line (under admin also)
PDFXCview.exe /MakeAssoc:web=yes
- and check whether the association for other user accounts are affected - if not please let us know.

Best,
Stefan
vipzzz
User
Posts: 6
Joined: Fri Jul 08, 2011 10:04 am

Re: Adding Registry Keys to windows 7 and XP

Post by vipzzz »

Thanks for your reply,

Is this sutible for deploying those changes to over 200 users or is this done one bye one on all the machines?

Can you explain how you want me to run PDFXCview.exe /MakeAssoc:web=yes, i have never done this before.

Sorry.

Thanks

Vip
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Adding Registry Keys to windows 7 and XP

Post by Stefan - PDF-XChange »

Hello Vipzzz,

Yes it should be suitable for deployment on any number of machines.

You can run the MakeAssoc command from the command line as the administrator on a machine where the Viewer is already installed.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Adding Registry Keys to windows 7 and XP

Post by Vasyl - PDF-XChange »

Hi, Vip.
Can you explain how you want me to run PDFXCview.exe /MakeAssoc:web=yes, i have never done this before.
When /MakeAssoc:web=yes is specified in command line then PDFXCview.exe will:

1. write some values to:
[HKEY_CLASSES_ROOT\.pdf]

2. write info to:
[HKEY_CLASSES_ROOT\PDF-XChangeViewer.1]

3. setup the:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice]

4. install MIME-type to enabling the plugin for IE-browser:
[HKEY_CLASSES_ROOT\Mime\Database\Content Type\application/pdf]

5. add/setup the flag "DisplayInBrowser" in:
[HKEY_LOCAL_MACHINE\SOFTWARE\Tracker Software\PDFViewer\FileAssociations]

6. if exists mozilla-browsers (FireFox, Opera, Chrome) - it installs the browser-plugin for pdf viewing and add the sub-key to:
[HKEY_LOCAL_MACHINE\Software\\MozillaPlugins]

7. send the "pdf-association-changed" notify to the system.

If you launched it under the restricted user it will display the UAC for obtaining the administrator privileges for writing to HKEY_CLASSES_ROOT and HKEY_LOCAL_MACHINE...

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.