2

I saw this: Detecting if a program is already installed with NSIS.

I want to ask the pretty much the same question for Inno Setup 5.

But basically my question is: Is there any way to check if a program (driver) is installed already on the computer so that i skip the install of the drivers from my [run] section?

Community
  • 1
  • 1
Paul
  • 193
  • 1
  • 11
  • 1
    You should be able to check for the registry key and use http://www.jrsoftware.org/isfaq.php#conditional – Joachim Isaksson Mar 27 '12 at 16:15
  • 1
    Or make a [`Check`](http://www.jrsoftware.org/ishelp/index.php?topic=scriptcheck) function in a `[code]` section. – TLama Mar 27 '12 at 16:17

1 Answers1

2

Yes it is possible to check. How easy depends on what you want to check for. If the driver package creates a certain registry key then you can use a Check: parameter that calls RegKeyExists or similar.

The Upgrades article on the ISXKB wiki gives an example of how to check for entries added to the Add/Remove programs list.

Deanna
  • 23,876
  • 7
  • 71
  • 156