Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

How do you lauch a .pdf file

3 replies to this topic


  • Members
  • 3 posts

Posted 02 September 2004 - 21:29

I would like to show a pdf file during my installation.

This is what I'm doing and what goes wrong.
if (RegDBGetKeyValueEx ("\\SOFTWARE\\Classes\\.pdf", "",nvType , svValue,nSize)=0) then
RegDBGetKeyValueEx ("\\SOFTWARE\\Classes\\"+svValue+"\\shell\\open\\command","",nvType , svValue, nSize);
LaunchAppAndWait (svValue,READMEFILE, NOWAIT);

The default value for command is:
"C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" "%1"
@Release_Notes is set to my pdf.

This gets passed to LaunchAppAndWait.

Adobe will open and give a message a that it can't find the file. If you click on ok, it opens the file.

What am I doing wrong?

Thanks for any help in advance


  • Members
  • 2 posts

Posted 21 October 2004 - 12:21

I suppose the second parameter, "%1", included in the command line gets passed AS IS, which means, adobe tries to open a file called %1, doesn't find it, and shifts to the next passed file, name @Release_Notes, and succeeds.

Maybe it helps to remove the shell open extension "%1" from the command line.




  • Full Members
  • 407 posts

Posted 22 October 2004 - 08:55

Take a look at http://www.installsi...htm#findacrobat
Maybe this can help you ...
Gruß / regards

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 22 October 2004 - 13:38

You could also look at "Open HTML Page in Default Browser / Launch Associated Application" on the same page. Although it talks about HTML the same approach should work for PDF.