Jump to content

Recommended Posts

Posted

As it doesn't have an installer I created an sfx file:

pdfreader.exe file

The problem I have is that it does put the actual prog in the right directory but how do I make my unattented setup create automatically a link either on the desktop or in the start menu???

thanx 4 any help


Posted
As it doesn't have an installer I created an sfx file:

pdfreader.exe file

The problem I have is that it does put the actual prog in the right directory but how do I make my unattented setup create automatically a link either on the desktop or in the start menu???

thanx 4 any help

you can use this to register it and it will open when klicking those pdf's

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdf]
@="pdf_auto_file"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}]
@="PDF Document"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\AuxUserType\2]
@="PDF"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\AuxUserType\3]
@="Foxit PDF Reader"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\DefaultExtension]
@=".pdf, PDF Files(*.pdf)"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\DefaultIcon]
@="C:\\PROGRA~1\\Foxit\\PDFReader.exe,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\DocObject]
@="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\InprocHandler32]
@="ole32.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\Insertable]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\LocalServer32]
@="C:\\PROGRA~1\\Foxit\\PDFReader.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\MiscStatus]
@="32"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\Printable]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\ProgID]
@="FoxitReader.Document"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\Verb\0]
@="&Edit,0,2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}\Verb\1]
@="&Open,0,2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document]
@="PDF Document"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\CLSID]
@="{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\DefaultIcon]
@="C:\\PROGRA~1\\Foxit\\PDFReader.exe,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\DocObject]
@="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\Insertable]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\protocol]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\protocol\StdFileEditing\server]
@="C:\\PROGRA~1\\Foxit\\PDFReader.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\protocol\StdFileEditing\verb\0]
@="&Edit"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell\open\command]
@="\"C:\\PROGRA~1\\Foxit\\PDFReader.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell\open\ddeexec]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell\print\command]
@="C:\\PROGRA~1\\Foxit\\PDFReader.exe /dde"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell\print\ddeexec]
@="[print(\"%1\")]"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell\printto\command]
@="C:\\PROGRA~1\\Foxit\\PDFReader.exe /dde"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document\shell\printto\ddeexec]
@="[printto(\"%1\",\"%2\",\"%3\",\"%4\")]"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\pdf_auto_file]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\pdf_auto_file\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\pdf_auto_file\shell\open\command]
@="\"C:\\Program Files\\Foxit\\PDFReader.exe\" \"%1\""

Posted

Thats a good idea but where do I put the reg file, do I just call it from WPI:

So with blocknote create a pdfreader reg file and then execute that from WPI is that correct...

Posted

I just put fox.exe in %windir%\system32 and use these reg lines:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
"Application"="fox.exe"

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList]
"a"="fox.exe"
"MRUList"="a"

[HKEY_CLASSES_ROOT\Applications\fox.exe]
[HKEY_CLASSES_ROOT\Applications\fox.exe\shell]
[HKEY_CLASSES_ROOT\Applications\fox.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\fox.exe\shell\open\command]
@="\"%windir%\\system32\\fox.exe\" \"%1\""

This is the approach I have done for some time for apps that I use on a normal basis that are small in file size. Which way is better/What is the difference?

Posted

You can put them anywhere, just launch the REG file from any batch file.

If you use wpi, there are two lines: Reg before or reg after (or something like that). You can use either one to specify the path to the file.

Posted (edited)

Thanx it worked...

Just 1 question about these reg files, how did you find all these values to include...

In other words, how did you learn to create them????

Or was it a simple copy of reg files found 4 other progs????

Edited by Benzal
Posted

All those registry entries are not needed. Only 4 are needed. First run of the program, will add the rest in.

Here is an Inno Setup script. For anyone interested.

; Source files should be in folder named {app}, next to this script.

[Files]
Source: {app}\FoxitReader.exe; DestDir: {app}
Source: {app}\rd_eula.txt; DestDir: {app}
Source: {app}\readme.txt; DestDir: {app}
[Icons]
Name: {commonstartmenu}\Foxit PDF Reader; Filename: {app}\FoxitReader.exe; WorkingDir: {app}; IconFilename: {app}\FoxitReader.exe; Comment: PDF Reader; IconIndex: 0
[Setup]
OutputBaseFilename=Foxit PDF Reader
AppCopyright=Foxit
AppName=Foxit PDF Reader
AppVerName=Foxit PDF Reader v1.3
DefaultDirName={pf}\Foxit
ShowLanguageDialog=yes
AppendDefaultGroupName=false
DisableProgramGroupPage=true
AllowNoIcons=true
DirExistsWarning=no
[Registry]
Root: HKCR; SubKey: .pdf; ValueType: string; ValueData: FoxitReader.Document; Flags: uninsclearvalue
Root: HKCR; SubKey: .pdf; ValueType: string; ValueData: application/pdf; ValueName: Content Type; Flags: uninsdeletevalue
Root: HKCR; SubKey: FoxitReader.Document\Shell\Open\Command; ValueType: string; ValueData: """{app}\FoxitReader.exe"" ""%1"""; Flags: uninsdeletevalue
Root: HKCR; Subkey: FoxitReader.Document\DefaultIcon; ValueType: string; ValueData: {app}\FoxitReader.exe,1; Flags: uninsdeletevalue

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...