?
Solved

How to detect using INNO?

Posted on 2007-08-01
6
Medium Priority
?
479 Views
Last Modified: 2010-04-05

Hello group,

In my installatino script (using INNO) I need to make sure if Excel is installed already or not. What is the method that I can detect it or any other application is installed?

Regards,
ak
0
Comment
Question by:akohan
  • 4
  • 2
6 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 2000 total points
ID: 19612129
Use the RegKeyExists function and look for any of the Excel installation keys.

From INNO help:

Prototype:
function RegKeyExists(const RootKey: Integer; const SubKeyName: String): Boolean;

Description:
Returns True if the specified registry key exists.

Example:
begin
  if RegKeyExists(HKEY_CURRENT_USER, 'Software\Jordan Russell\Inno Setup') then
  begin
    // The key exists
  end;
end;

Kevin
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 19612143
For example, Excel 2003 installs this key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel

Kevin
0
 

Author Comment

by:akohan
ID: 19612627


Hi Kevin,

the 11.0 stands for the Excel version. right? I'm afraid if a user has 2007 Excel installed then can I trust this path or should I conisder other steps ?


Regards,
ak
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 19612700
I'm not certain but I believe 2007 is 12.0.

Kevin
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 19612704
  < 8  then Excel 95 or earlier
   = 8 then Excel 97
   = 9 then Excel 2000
   = 10 then Excel 2002 or XP
   = 11 then Excel 2003

Kevin
0
 

Author Comment

by:akohan
ID: 19619764

Kevin,


Thank yoiu so much. I need to ask you another question but have to open a new question. I'm hoping you will find it.

Regards,
ak
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question