"Alhambra Eidos Desarrollo"
<Al************ *********@discu ssions.microsof t.comwrote in message
news:2F******** *************** ***********@mic rosoft.com...
Only question more, how I test if the dll is installed yet ?? Can I add
any
condition anyway in Setup Project ??
The test will be like
if !File.Exists("c :\windows\syste m32\mscrv71.dll ")
There is a "Condition" Property in the properties window for the file
that you added in the File System Editor. The condition needs to be
satisfied for the file to be installed. However, the syntax for the
Condition is specific to the installer, so it does not accept a C#
expression like the one you wrote above. Unfortunately, I am not familiar
enough with the installer to tell you the expression that will check that
the file doesn't exist.
I imagine that you want to preserve the contents of your database when a
newer version of your program is installed. However, it is quite likely that
the new version of your database will contain some schema changes relative
to the previous version, so you will need to execute some code to "update"
the existing database. I would suggest installing the new file to a temp
folder, and then running a Custom Action (programmed in C# inside an
Installer Class) to move and reorganize your data or files as needed.