2

I have built a C# winform application in Visual Studio 2012. I want to publish the application to the world.

  1. What is the difference between publishing by Visual Studio and giving the "release" folder to someone ?

  2. I'd rather like giving the "release" folder because there are no installations to the user if there is the framework. But the user can see all the database files. Is there anyway to hide them and make that release folder as a single ".exe" file where user cannot see the databases of it ?

user3218743
  • 579
  • 2
  • 8
  • 28

2 Answers2

3
  1. When you publishing project in VS, you creating a ClickOnce package. When you building project with Release build configuration you have the same executables as builded with Debug configuration, but debug config is optimized for debugging. If you want give application to user you should build it with Release config. [What is ClickOnce]

  2. You can use a installer for your app. It's a good practice. And if you want you can write a script for example to create a shortcut on desktop or write smt in Windows Registry, etc. About free Installers you can read here. My choise is InnoSetup - open source and easy to use.

Community
  • 1
  • 1
Olexii
  • 476
  • 4
  • 5
  • Thank you. Great answer. Do it hide the database files and other stuff ? (means is it readable to the user) – user3218743 May 25 '14 at 18:12
  • Thanks! Sure, it will be readable to user because db file (SQL CE or similar) should be stored in program folder, but typical user without special knowledge don't know how to open DB and read data. If you want more security you can also encrypt your db by password. – Olexii May 25 '14 at 22:22
0

When you're giving a release folder you're actually giving the executable file and it will work just by clicking on the executable(if the framework in installed).

If you're publishing the application using the clickonce, it has to be installed(desktop based) before it can be executed.

I've been using installshield to prepare the installer which takes care of including all the required libraries as well.

Sunil
  • 150
  • 7