[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

Help file location different than default installation directory

I have an application that stores the help file and other supporting stuff in "c:\program files\MyApp\help\MuApp.hlp" as defined in Project|Options.  The problem is, when users install the program to something other than the default location, my application can't find the help file.  And an ugly window pops up forcing the user to either find the help file themselves or forget about using the help.  Many of my users are not especially computer literate, so I'd like to avoid this.  A few users are highly computer literate so I don't want to take out the option of installing to somewhere other than the default location.

So, the question is: How can I program my application to look for the help file in a "/help" directory off of the directory where the application is installed?

BTW thanks to all the EE experts who helped me get the application this far...
0
prstein
Asked:
prstein
  • 2
1 Solution
 
rwilson032697Commented:
Like this:

Application.HelpFile := ExtractFilePath(Application.ExeName) + '\Help\MyHelp.hlp';

(Put this in the DPR line after you initialise the Applicatiuon object...)

Cheers,

Raymond.
0
 
rwilson032697Commented:
Actually, you could even try:

Application.HelpFile := 'help\myhelp.hlp\';

Cheers,

Raymond.
0
 
prsteinAuthor Commented:
Thanks very much! I knew there had to be a (relatively) simple solution.

Paul
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now