Benzal Posted June 17, 2005 Share Posted June 17, 2005 As it doesn't have an installer I created an sfx file:pdfreader.exe fileThe 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 Link to comment Share on other sites More sharing options...
Benzal Posted June 17, 2005 Author Share Posted June 17, 2005 Soz this should maybe be in the application section but it doesnt concern silent switches.... Link to comment Share on other sites More sharing options...
Clint Posted June 17, 2005 Share Posted June 17, 2005 As it doesn't have an installer I created an sfx file:pdfreader.exe fileThe 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<{POST_SNAPBACK}>you can use this to register it and it will open when klicking those pdf'sWindows 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\"" Link to comment Share on other sites More sharing options...
Benzal Posted June 17, 2005 Author Share Posted June 17, 2005 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... Link to comment Share on other sites More sharing options...
matthewk Posted June 19, 2005 Share Posted June 19, 2005 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? Link to comment Share on other sites More sharing options...
Benzal Posted June 21, 2005 Author Share Posted June 21, 2005 Where do you put those reg files???? Link to comment Share on other sites More sharing options...
Vadikan Posted June 22, 2005 Share Posted June 22, 2005 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. Link to comment Share on other sites More sharing options...
Benzal Posted June 22, 2005 Author Share Posted June 22, 2005 Thanx 4 all your help, I will be trying that out... Link to comment Share on other sites More sharing options...
Benzal Posted June 22, 2005 Author Share Posted June 22, 2005 (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 June 22, 2005 by Benzal Link to comment Share on other sites More sharing options...
MHz Posted June 22, 2005 Share Posted June 22, 2005 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 ReaderAppCopyright=FoxitAppName=Foxit PDF ReaderAppVerName=Foxit PDF Reader v1.3DefaultDirName={pf}\FoxitShowLanguageDialog=yesAppendDefaultGroupName=falseDisableProgramGroupPage=trueAllowNoIcons=trueDirExistsWarning=no[Registry]Root: HKCR; SubKey: .pdf; ValueType: string; ValueData: FoxitReader.Document; Flags: uninsclearvalueRoot: HKCR; SubKey: .pdf; ValueType: string; ValueData: application/pdf; ValueName: Content Type; Flags: uninsdeletevalueRoot: HKCR; SubKey: FoxitReader.Document\Shell\Open\Command; ValueType: string; ValueData: """{app}\FoxitReader.exe"" ""%1"""; Flags: uninsdeletevalueRoot: HKCR; Subkey: FoxitReader.Document\DefaultIcon; ValueType: string; ValueData: {app}\FoxitReader.exe,1; Flags: uninsdeletevalue Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now