Thread: Re: [GD-Windows] detecting installed application
Brought to you by:
vexxed72
From: Dirk R. <ri...@ph...> - 2006-07-25 08:32:39
|
What happens if you run the PDF document via the ShellExecute command = when no PDF reader is installed? Does the command fail or is the user = annoyed with the choose your application dialog? If you can make the = command fail then that would be the most secure check whether acrobat is = installed... Dirk=20 -----Urspr=FCngliche Nachricht----- Von: gam...@li... = [mailto:gam...@li...] Im Auftrag = von Research Gesendet: Dienstag, 25. Juli 2006 10:13 An: Gam...@li... Betreff: [GD-Windows] detecting installed application Hi, Is there an easy way to detect whether a specific application is = installed=20 in Windows? Our game runs from the CD tray (no install) and I want to provide a link = to=20 our PDF manual. If the player has Acrobat installed, I want to open the=20 file, it they don't have acrobat installed, I want to ask the player if = they=20 want it installed or not. So I need some way to detect whether Acrobat = is=20 already installed. Cheers, Brett=20 -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |
From: Research <res...@ga...> - 2006-07-25 08:38:34
|
I thought it would pop up that dialog that asks how to choose which=20 application to open the file. I didn't think it would fail and return=20 control to me. I'll check on this though... ----- Original Message -----=20 From: "Dirk Ringe" <ri...@ph...> To: "Game Development for MS Windows"=20 <gam...@li...> Sent: Tuesday, July 25, 2006 4:32 PM Subject: Re: [GD-Windows] detecting installed application > What happens if you run the PDF document via the ShellExecute command w= hen=20 > no PDF reader is installed? Does the command fail or is the user annoye= d=20 > with the choose your application dialog? If you can make the command fa= il=20 > then that would be the most secure check whether acrobat is installed... > > Dirk > > -----Urspr=FCngliche Nachricht----- > Von: gam...@li...=20 > [mailto:gam...@li...] Im Auftrag = von=20 > Research > Gesendet: Dienstag, 25. Juli 2006 10:13 > An: Gam...@li... > Betreff: [GD-Windows] detecting installed application > > Hi, > Is there an easy way to detect whether a specific application is instal= led > in Windows? > > Our game runs from the CD tray (no install) and I want to provide a lin= k=20 > to > our PDF manual. If the player has Acrobat installed, I want to open the > file, it they don't have acrobat installed, I want to ask the player if= =20 > they > want it installed or not. So I need some way to detect whether Acrobat = is > already installed. > > Cheers, > Brett > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= =20 > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 > > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= =20 > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 > >=20 |
From: Jurjen K. <jka...@ni...> - 2006-07-25 08:40:45
|
I'm pretty sure it does. There is a specific return code to indicate = that there is no known binding for a specific type of file. (E_NOASSOC or something?) -----Oorspronkelijk bericht----- Van: gam...@li... [mailto:gam...@li...] Namens = Research Verzonden: dinsdag 25 juli 2006 10:36 Aan: Game Development for MS Windows Onderwerp: Re: [GD-Windows] detecting installed application I thought it would pop up that dialog that asks how to choose which=20 application to open the file. I didn't think it would fail and return=20 control to me. I'll check on this though... ----- Original Message -----=20 From: "Dirk Ringe" <ri...@ph...> To: "Game Development for MS Windows"=20 <gam...@li...> Sent: Tuesday, July 25, 2006 4:32 PM Subject: Re: [GD-Windows] detecting installed application > What happens if you run the PDF document via the ShellExecute command = when > no PDF reader is installed? Does the command fail or is the user = annoyed=20 > with the choose your application dialog? If you can make the command = fail=20 > then that would be the most secure check whether acrobat is = installed... > > Dirk > > -----Urspr=FCngliche Nachricht----- > Von: gam...@li...=20 > [mailto:gam...@li...] Im Auftrag = von > Research > Gesendet: Dienstag, 25. Juli 2006 10:13 > An: Gam...@li... > Betreff: [GD-Windows] detecting installed application > > Hi, > Is there an easy way to detect whether a specific application is = installed > in Windows? > > Our game runs from the CD tray (no install) and I want to provide a = link=20 > to > our PDF manual. If the player has Acrobat installed, I want to open = the > file, it they don't have acrobat installed, I want to ask the player = if=20 > they > want it installed or not. So I need some way to detect whether Acrobat = is > already installed. > > Cheers, > Brett > > > = -------------------------------------------------------------------------= > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to = share=20 > your > opinions on IT & business topics through brief surveys -- and earn = cash > = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 > > > > = -------------------------------------------------------------------------= > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to = share=20 > your > opinions on IT & business topics through brief surveys -- and earn = cash > = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 > >=20 -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |
From: Research <res...@ga...> - 2006-07-25 08:54:03
|
Okay, it looks like it returns SE_ERR_NOASSOC which looks like it can wor= k.=20 Thanks for the help! ----- Original Message -----=20 From: "Jurjen Katsman" <jka...@ni...> To: "'Game Development for MS Windows'"=20 <gam...@li...> Sent: Tuesday, July 25, 2006 4:40 PM Subject: Re: [GD-Windows] detecting installed application > I'm pretty sure it does. There is a specific return code to indicate th= at > there is no known binding for a specific type of file. (E_NOASSOC or > something?) > > -----Oorspronkelijk bericht----- > Van: gam...@li... > [mailto:gam...@li...] Namens=20 > Research > Verzonden: dinsdag 25 juli 2006 10:36 > Aan: Game Development for MS Windows > Onderwerp: Re: [GD-Windows] detecting installed application > > I thought it would pop up that dialog that asks how to choose which > application to open the file. I didn't think it would fail and return > control to me. I'll check on this though... > > ----- Original Message -----=20 > From: "Dirk Ringe" <ri...@ph...> > To: "Game Development for MS Windows" > <gam...@li...> > Sent: Tuesday, July 25, 2006 4:32 PM > Subject: Re: [GD-Windows] detecting installed application > > >> What happens if you run the PDF document via the ShellExecute command=20 >> when > >> no PDF reader is installed? Does the command fail or is the user annoy= ed >> with the choose your application dialog? If you can make the command f= ail >> then that would be the most secure check whether acrobat is installed.= .. >> >> Dirk >> >> -----Urspr=FCngliche Nachricht----- >> Von: gam...@li... >> [mailto:gam...@li...] Im Auftrag= =20 >> von > >> Research >> Gesendet: Dienstag, 25. Juli 2006 10:13 >> An: Gam...@li... >> Betreff: [GD-Windows] detecting installed application >> >> Hi, >> Is there an easy way to detect whether a specific application is=20 >> installed >> in Windows? >> >> Our game runs from the CD tray (no install) and I want to provide a li= nk >> to >> our PDF manual. If the player has Acrobat installed, I want to open th= e >> file, it they don't have acrobat installed, I want to ask the player i= f >> they >> want it installed or not. So I need some way to detect whether Acrobat= is >> already installed. >> >> Cheers, >> Brett >> >> >> ----------------------------------------------------------------------= --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to shar= e >> your >> opinions on IT & business topics through brief surveys -- and earn cas= h >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >> _______________________________________________ >> Gamedevlists-windows mailing list >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows >> Archives: >> http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >> >> >> >> ----------------------------------------------------------------------= --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to shar= e >> your >> opinions on IT & business topics through brief surveys -- and earn cas= h >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >> _______________________________________________ >> Gamedevlists-windows mailing list >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows >> Archives: >> http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >> >> > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= =20 > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= =20 > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >=20 |