Hi,
I would like to kindly ask for an answer if anybody knows.
Do I have to have Visual Studio 2008 installed on somebody's computer if I want to install the C# application that I have made and publish (to install it from the setup file I made for)?
Thank you.
Loading

Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 20, 2011, 3:51 AM EDT
Install service using InstallUtil.exe
To install or uninstall windows service (which was created using .NET Framework) use utility InstallUtil.exe. This tool can be found in the following path (use appropriate framework version number).
To install .NET service run command similar to this (specify full path to your service).
To uninstall .NET service use the same command with parameter
/u.Install service programmatically
To install service programmatically using C# see the following class ServiceInstaller in c-sharpcorner.com article.
Sam HobbsRank #107 · 20.5K reputationPosted Oct 20, 2011, 10:55 AM EDT
Look for articles about what is redistributable, as in the .NET Framework 2.0 Redistributable Package Reference article.
NelRank #2,060 · 702 reputationPosted Oct 21, 2011, 3:29 AM EDT
And the version I use is .net framework 3.5 sp1.
Sam HobbsRank #107 · 20.5K reputationPosted Oct 21, 2011, 7:00 AM EDT
I think it depends on whether your application uses a database that already exists in the system before installation of your application or if your application creates the database. The solution is different depending on which of those are true. If the database already exists, then your setup program must either find it or prompt the user to tell you where it is. If your setup program creates the database then it is probably possible for the setup to create it and then configure the application to use the database from the location it is created at.
NelRank #2,060 · 702 reputationPosted Oct 25, 2011, 1:29 AM EDT
I changed the path for the database, and chose it from the local area network, but it didn't work again on the computer where I installed it. It showed that the installation completed successfully, but it doesn't work, doesn't open when I try to run it.
raghavendra setty8 reputationPosted Oct 25, 2011, 1:43 AM EDT
NelRank #2,060 · 702 reputationPosted Oct 25, 2011, 2:14 AM EDT
The path i.e. the connection string that I use is:
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="\\Name of the computer\Users\Public\Kazneni bileti VS\Kazneni bileti.mdb""