Re: Link my help file to my application install path



Alexander Halser wrote:

Use only the file name, no directory spec.

A better way is to specify the help file *including* a fully qualified path at
runtime. You could do this in the OnCreate event of your main form:

Application.HelpFile := ExtractFilePath(Application.exename) + 'helpfile.hlp';

IMO this scheme applies to many file types. The "logical" folder is fixed (app, user...), but unknown at compile time. The "physical" folder can be determined at runtime, either hard coded (as above), or by evaluating a prefix like %appdir% or {$DELPHI}, which returns a single directory or an search path. Some pathes are determined during installation, others when a project is opened (prj-dir), and they can all be stored in an INI file or in the registry, if necessary.

DoDi
.



Relevant Pages

  • App hosted at new, unknown server
    ... I have my application set up to email me every time it restarts. ... thats not the unknown part. ... that I dont know who they are or why they are running my app. ... webpage is not very helpful in identifying them (surprise, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Arse and ass
    ... unknown. ... A recent word, app. ... of dialect or slang origin. ...
    (alt.usage.english)
  • Re: Whats finally keyword good for?
    ... Logging is an additional idea for tracking the bug, you still shouldn't let your app continue after unknown circumstances occurred. ...
    (microsoft.public.dotnet.languages.csharp)
  • New Error When I Start
    ... about 5 minutes while something hidden and unknown to me is executing. ... If I try to execute an app during that time, ... I have scanned TaskManager, but see ...
    (microsoft.public.windowsxp.general)