| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Mon Feb 23, 2004 5:40 pm Post subject: auto run for cd..question |
|
|
hello all
I have a question about auto run for cd's meaning when you put a cd in the drive it starts up. i know you have to have a .inf file on cd to make this work however the file i want to start up is a pdf file. how can i make a program to check to see if the user has a pdf reader installed? if they don't then have it install it then open the pdf file? of coures this would have to work on all O.S any one have any ideas on how to do this? or has anyone done this before?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Feb 23, 2004 6:59 pm Post subject: |
|
|
| Make the autorun.inf file execute a exe. The exe would then need to check to see if Adobe Acrobat is installed. If it is then make the exe do a shell execute on the pdf file. You can make this all run invisibly and it would achieve the same results - open the pdf or prompt them to download acrobat and then launch the file. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Mon Feb 23, 2004 7:08 pm Post subject: |
|
|
ok i see what ya mean but how do i check to see if a users has pdf reader installed? i mean what commands and what to check?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Feb 23, 2004 7:13 pm Post subject: |
|
|
I'm not too certain but you can definately check HKEY_CLASSES_ROOT registry section for the .pdf extention to see if anything has been set for it.
Last edited by PGWARE on Mon Feb 23, 2004 7:14 pm; edited 1 time in total |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Feb 23, 2004 7:13 pm Post subject: |
|
|
Usually the easiest way is to check and see if it's installed in either the
registry or check to see if it's program files folder exists.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Mon Feb 23, 2004 8:27 pm Post subject: |
|
|
will that type of check work on all o.s?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 24, 2004 6:08 pm Post subject: |
|
|
that whats i mean the "registry keys" are the same on all o.s? meaning the same location?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 24, 2004 6:31 pm Post subject: |
|
|
ok thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
|