Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Batch File to Detect if Application Installed

11 Apr 2013   #1

Windows 8.1
Batch File to Detect if Application Installed

Hey everyone! I'm making a batch file for a computer repair company I'm with and I'm trying to automate as much stuff as possible and speed things up. As of this moment, I got all the major components of a batch file that retrieves information about the computer (Manufacturer, Model #, Serial #, etc.) then it opens up our site and logs that information in the site's database for the user's later review. Now, our site is programmed for netscape based browsers (Opera, FireFox, Chrome) and has some serious issues with Internet Explorer. So what I'm trying to find out is how do I make a batch file detect if a netscape based browser is installed and then open the site up in that browser? Any alternatives to this would be nice, we're trying not to completely redesign the website but will if it has to be done.

My System SpecsSystem Spec
11 Apr 2013   #2

Windows 7 Ultimate x64

I can think of 2 quick solutions, and neither are 100% reliable really.
One would be to check for the existence of the folder in program files, using an IF EXIST c:\program files\opera\nul............ and assuming it will be there. However it has problems if the user installed to a non standard location and you'll have to watch out for 32/64 bits versions which go to different folders.
Another way would be to check for the existence of the registry key un HKLM\Software\Opera, using REG QUERY command (check the actual key created beforehand, I'm just inventing here, but the idea is that). This also fails when the user is using the portable installations of browsers, which are registry-free.

In the long run, the only sure method would be to fix the site to make it work in IE. It's really common that non-IE browsers run the sites as they should, yet IE has problems frequently due to being standards-incompatible. While it's more work, I would ask a web developer to do the fix and workaround those IE bugs to make the site work properly everywhere. It's a very common problem unfortunately.
My System SpecsSystem Spec
16 Apr 2013   #3

Windows 8.1

Ok, well thank you.
My System SpecsSystem Spec


 Batch File to Detect if Application Installed

Thread Tools

Similar help and support threads
Thread Forum
Batch file to start an application once a service has started
Hi All New to the thread, but i am looking for some help. I want to create a batch file that will start on Windows start up, that will keep checking to see if a certain service has started then once the service has started it runs an application, then the batch file stops. The reason is...
General Discussion
Need a Batch file or similar for "detect display" in display settings.
Hi, I need a batch or similar type file that will "detect display" from (Control Panel\All Control Panel Items\Display\Screen Resolution). HP dv6 use switchable graphics and they can be seriouly problematic to update. Anyway the only way i can use the latest driver is if i put up with aero...
Performance & Maintenance
How do I detect a dual boot through a batch file
Here is my issue. I have employees installing dual booting on computers, effectively bypassing security software that is installed. Is there a batch I can run to detect this, and output the results to a file ( on the network of course ) or something of that nature? I need a way to circumvent...
Installation & Setup
Detect Escape key with batch file
I want to separate the escape key in a batch file from all others. If I use "choice", all keys would have to be listed. "errorlevel" seems to return "0" for every key because "choice" is not used. thanks...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:16.
Twitter Facebook Google+