Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > File installation - condition evaluated recursively
 

File installation - condition evaluated recursively

Hi,

I am trying to create a Deployment Project with Visual Studio 2005 based on a checkbox condition.

If a checkbox isselected during the installation, the setup would create a new folder (that I have called 'src') under the installation path, and copy some file structureinside it. I have added these files to the project by drag&drop them to File System à ‘src�folder on my Deployment Project.

The problem that I am experiencing is that even though I set 'src' condition property to evaluate the checkbox (Condition: 'CHECKBOXA1 = 1', AlwaysCreate:'False', Transitive:'False'), the setup will always create the folder and its content no matter the value of the checkbox. I guess that this is happening because the condition is not evaluated for EVERY file/folder within ‘src�

They happen to be more than a hundred items so I was wondering if there is any way of making the condition recursively, so it only has to be checkedat the ‘src�folder.

Thank you in advance

Juan.

Juan J_  Monday, March 05, 2007 12:33 PM

Well, I've just found a solution:

Select all the added files to the Deployment project on the Solution Explorer and set the Condition property to CHECKBOXA1 = 1. It only creates the file structure if you click the checkbox!

Before, I was trying to set that property by selecting the files and folders from the File System browser panel.

Regards,

Juan

Juan J_  Monday, March 05, 2007 2:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Error installing: "cannot download the application" - help?
• Clickonce and installation files
• REMOVEABLE MEDIA AUTORUN PREVENTION
• Resigning manifests with mage.exe doesn't update publisherIdentity element.
• AppVerifier and ClickOnce
• Windows Installer, ClickOnce or Windows Installer Xml (WIX)
• Problem In Creating Nested msi Package
• ClickOnce & Custom Actions
• ClickOnce error - "Value does not fall within the expected range."
• Can't create text file output from C# Windows Forms app when deployed with Windows Installer