I have deployed a windows setup file with compact SQL db (local database). Now I want to upgrade the setup file without deleting the existing local database.
Could anyone help me how I can proceed with this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s hard to give you an exact answer without knowing how your current installer is authored but basically consider the following points:
1) If you are doing Major Upgrades, where is your RemoveExistingProducts scheduled? Be careful you aren’t asking the installer to do a full uninstall / reinstall as you’d get the database file reinstalled.
2) Take a look at the Component element’s NeverOverwrite attribute.
3) Also consider the Component element’s Permenant attribute if you’d like the SDF to remain on uninstall so that subsequent reinstall will have the same data.