I would like to show a pdf file during my installation.
This is what I'm doing and what goes wrong.
READMEFILE=TARGETDIR ^ @Release_Notes;
RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE);
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
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
Started by
danger716
, Sep 02 2004 21:29
3 replies to this topic
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.
Greetings
Tanetal
Maybe it helps to remove the shell open extension "%1" from the command line.
Greetings
Tanetal
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.
Stefan Krüger
InstallSite.org twitter facebook