Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How can I not install a file if its already exist in the drive ?
 

How can I not install a file if its already exist in the drive ?

Hi all,

I am developing an installer setup msi file with the UI of Windows Installer Deployment on Visual studio 2008.
Look in here http://msdn.microsoft.com/en-us/library/2kt85ked%28VS.80%29.aspx if you does not know what i mean.
Basically i am using the File system Editor of visual studio in order to add files at installation phase.
I would like to not install a file if its already exist in the user's envrionement.
I was looking at the different file installation properties in http://msdn.microsoft.com/en-us/library/ddtk4a95%28VS.71%29.aspx#vxconfileinstallationpropertiesanchor3.
But i cannot find a property which does not install the file its already exist on the user's machine. How can I dot that ?

Thanks

Godeffroy  17 hours 24 minutes ago
What kind of file is it? A binary or a data file?

Keep in mind that if this file you're referring to is in the Application folder in Program Files then the user can choose another folder and won't even attempt to replace it. What underlying problem are you trying to solve?
Phil Wilson
PhilWilson  10 hours 51 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• how to write my own Winforms control and use it in IE
• Multi-language .NET Framework install from CD
• Missing Package
• GenerateBootstrapper - my own programs
• Some important Qs about msi file and windows installer (Urgent)
• Can No longer deploy VS2003 Web Projects
• How do we deploy a linked Web-Windows Application using Click Once deployment
• Closing a program upon Uninstall
• Use Encryption and Obfuscation with ClickOnce
• Problems with ClickOnce security in Visual Basic 2008 and passing command line arg