请问一下,我用inno setup打包后,开始菜单和桌面的快捷方式不能调用帮助文档,安装目录里面的便可以,请问这是为什么?
帮助文档打开代码:
var
HelpFileName:string;
begin
Helpfilename:=ExtractFilePath(Application.ExeName) + '帮助.chm';
if FileExists(Helpfilename) then
ShellExecute(handle,'Open', '/帮助.chm', NIL,NIL,SW_SHOWNORMAL)
else
MessageBox(handle,'帮助文档丢失!','提示', mb_ok+mb_iconinformation);
end;
帮助文档打开代码:
var
HelpFileName:string;
begin
Helpfilename:=ExtractFilePath(Application.ExeName) + '帮助.chm';
if FileExists(Helpfilename) then
ShellExecute(handle,'Open', '/帮助.chm', NIL,NIL,SW_SHOWNORMAL)
else
MessageBox(handle,'帮助文档丢失!','提示', mb_ok+mb_iconinformation);
end;
http://community.csdn.net/Expert/topic/4694/4694340.xml?temp=.9373743