0

I'm trying to achieve a requirement in Pre-requisites part of my package: The package should be able to check for the presence of a specific Operating System or Microsoft Patch on the target machine and block installation if the specified OS&patch is not found. I want to pass this information from Configuration xml or ini file, so that installer need not to be edited and build again for changes in requirements.

Any ideas on how to achieve this!!

sameer
  • 3
  • 1

1 Answers1

0

Microsoft typically publishes the files affected by patches and their version number. You can use that to determine if the patch is applied.

As for the config file portion, I've never done this as if I make a change to an installer I generally want to rebuild it. I guess you could write a custom action to replace AppSearch/LaunchConditions and have it be data driven from an XML file instead of the built in tables but I'm still not sure I'd do it.

Christopher Painter
  • 54,556
  • 6
  • 63
  • 100
  • Thanks Christopher for you answer. I Will try to write a Custom Action and see how it goes!! – sameer Dec 25 '10 at 13:19
  • You could also consider a process of automating the creation of a transform and then applying that transform to your MSI. In other words have MSI v1 on the shelf and create transform v1 to output MSI v1t1. Then create transform v2 and apply it again to MSI v1 to create MSI v1t2. This way you have a repeatable process that doesn't require custom actions. – Christopher Painter Dec 25 '10 at 15:10