conditional actions in a deployment project

Hi

A few queries / how do I's with regards to deployment projects.


When installing my application I want to see if a certain registry entry exists (one containing a directory path) and if it does I'll use that to copy some files into that folder ...

How do I do this ?

Thanks
Bruce

[323 byte] By [BruceBaker] at [2007-12-24]
# 1

Hi, Bruce,

I'm assuming that we're talking about setup projects here. When you select a file in the File System Editor in the setup project, you'll note that one of the properties is called "condition" -- you can specify under what conditions that file will install in that setup. Condition specifications can get fairly gnarly, and I'm certainly no expert on it, but for more information on how to specify the condition, see ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_deploy/html/dfd11341-223d-45d7-a23e-2ffedb1eb573.htm and the various links on that page to the syntax & references.

--Matt--*

MatthewGertzMS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...