Include MS Database in Winforms Project using Intellilock

Dennis Vogel
Dennis Vogel used Ask the Experts™
on
I have a Winforms project I want to distribute to others and I need to include the projects MS SQL Server database.

If I publish the project there is only an application file.

But I need to obfuscate the programs exe with Intellilock (which creates its own exe in a folder named Locked).

How can I include the database when I distribute the program?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Create an installer with inno setup compiler, add your database to the inno compiler script.
It will create a setup.exe (or what ever you'd like to call the install app.)
you tell it where to install the app and also any other files you wish to include.

Author

Commented:
I just realized the .NET framework may also need to be installed and I did not see that option in the Inno Compiler site.

Thanks
What version windows? It gets downloaded as part of windows updates. Or depending on version, user may have to go into programs and feature > turn on feature for certain options. (i.e. .net 3.5) just give them installation pre-requisite instructions

Author

Commented:
I need a better way. I cannot ask the user to turn on a feature or download .net 4.5. Thanks again.

Author

Commented:
Your comment reminded me I have InstallShield and it will install dot net.

My plans are to include the database mdf put it in the AppData / Roaming folder. So I gave you an "Assisted Solution."

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial