[转载于]
Bootstrap Manifest Generator – How To Setup Custom Pre-Requisites
Recently I was attempting to create a deployment package that has customised pre-requisites i.e I wanted my installer to detect if AJAX Extensions 1.0 was installed and if not ask the user to install it.
I found this link talking about how to do it..
http://www.codeplex.com/MSAjax10SetupPrereq
Which lead me to download the Bootstapper Manifest generator from http://www.codeplex.com/bmg
I was a bit lost with what to do so hopefully this will save you the pain I went though.
(Note: the BMG is really buggy. Most of the system checks don’t work, and once you add a file system check and save your project you can no longer open your bootstrap project. But given it is free it’s better than attempting to write the XML by hand)
-
Run the BMG tool.
-
Create a new Package Manifest. Give it a name, AJAX
-
Add a file, choose the AJAX Extension installer .msi.
-
Give it a name, this will be the name that appears in your installer so make it something nice like “Microsoft ASP .Net 2.0 AJAX Extensions 1.0″
-
Build it.
-
Add a File check. Set the file name to System.Web.Extensions.dll, turn off the search, and enter the default path to the ASP Net folder.
-
Switch to the “Install Conditions” tab and add a line that says:
-
Type - By Pass If
-
Property - AJAX (or the name you gave your system check
-
Comparison - Exists
-
http://www.codeproject.com/KB/aspnet/Add_Custom_Prerequisite.aspx
http://msdn.microsoft.com/en-us/library/142dbbz4(VS.80).aspx