Click here to Skip to main content
15,891,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everybody..!
i have written
Help.ShowHelp(this, Application.StartupPath + "\\" + "HelpFile.chm");
on button click event in c# windows based application and here i m able to open .chm file as well as by pressing F1 key..
But....,
When i create .msi and install to another machine F1 is not working to open the .chm help file..!

please give me some idea for that...! Thanks
Posted

1 solution

Hello,

Probably, you put the chm file into wrong folder during setup?

Another possible issue: be sure that F1 pressing is handled by your handle (you can simpify display message box to be sure).

Also can be bcs of you place chm in program files - due UAC system may not allows to perform changes in Program Files folder, but chm once loading creates an chw file - try to make your application help folder in UserData, and put your chm file in there.

Regards,
Maxim.
 
Share this answer
 
Comments
Dnyanesh Wahiley 8-Oct-12 7:48am    
yes sir i have done it all but when i click F1 on other machine after installed my Application... that time it just process but not open the help file..!
Maxim Kartavenkov 8-Oct-12 7:58am    
Maybe help viewer executable is missed, are you available to open that chm file by clicking on it?
Try the next staements instead of yours:

Assembly _assembly = Assembly.GetExecutingAssembly();
string _path = Path.GetDirectoryName(_assembly.Location);
Directory.SetCurrentDirectory(_path);
Help.ShowHelp(this, _path + "\\" + "HelpFile.chm");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900