Adding a SQL CE database - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rick001
Posts: 2
Joined: Tue Jan 15, 2013 6:13 am

Adding a SQL CE database

I am trying to create an installer for my project which uses a SQL CE database. When i run the installer created by Advanced Installer, i get an error stating that the database was not found. I am new to this so may be i am doing wrong. I did add the database and other .dll files needed to deploy it in the Visual studio, Solution Explorer and when i publish the project from studio, and then use the one click deployment setup file provided on publishing the app runs fine, the database gets deployed too. But i can replicate the same using the installer. Please provide me with a step by step instruction to get it done.

Once again I would point out that i am really new to all these, thus i am sorry if i am asking stuff that is really easy.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding a SQL CE database

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand your scenario. If you just want to deploy the related files on a certain location, then you can add those file on our "Files and Folders" page. Also, if you have added the "SQLConnectionDlg" dialog on "Dialogs" page, then you can remove it because there's no need to use it in this scenario.

If is not the case, please give us more details about your scenario (maybe exemplify)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rick001
Posts: 2
Joined: Tue Jan 15, 2013 6:13 am

Re: Adding a SQL CE database

Thanks I used the Files and Folder option and that solved my problem. Though I now have came across a different problem, you see the app for which I was creating the installer needs, Microsoft SQL Server Compact 4.0 and .Net Frame work 4.5 installed in the system before my app can run. Is there a way I could make the installer install these two when it is run, if the system on which the installer is being run doesn't already have them installed. I have the standalone installer for the .Net and the SQL Server with me. Also, the SQL Server is platform depended i.e there are two different installer one for the X86 and one for X64.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding a SQL CE database

Hello,

In order to achieve what you want you should add the related packages as prerequisites to your main project. Also, you can use our ".NET Framework 4.5" and "SQL Server Compact" predefined prerequisite packages.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”