Hello,
I need to create a project that can be used for installs and upgrades. When the user is upgrading, the old database needs to be backed up prior to uninstall. After install, the data needs to be imported into the new database.
I'm on Advanced Installer "Professional". I built a Visual Studio project connected to a SQL Server Express database with about 35 tables. The .mdf and the .ldf database files are located in the Application folder with the rest of the files. This works fine the first time a user installs my software. But what about upgrades? The user's data will be lost because the old database files will be uninstalled.
Should I build a custom action and use SQL Script to accomplish this? Should I build a function into my application that performs this task? What is the best practice? I've been searching for information on this topic but I haven't found much in the documentation.
Thanks!
Jason
FOLLOW US
Get the latest news in Application Packaging