C# Windows Forms Application with MS-Access deployment - c#

What is the easiest way to deploy a c# winforms application that uses an ms-access database? Using Visual Studio 2010's Installer, I cannot seem to get the database deployed to a common directory for all users of the PC to access it.
Searching the web, I have found tons of issues, but no simple solutions.

you can't find a directory that can be accessed by all users of the PC? maybe you can deploy the database to a special directory using the special enum named Environment.SpecialFolder, such as "CommonApplicationData" or "CommonProgramFiles".

Related

Problem with the create of the c# project ، I can't click OK [duplicate]

I would assume this just means I'm missing a dependency, but I cant create ANY type of project (console application, web app, windows form, etc.). I am running VS 2012 premium.
You are probably attempting to save your projects to a directory location for which you do not have write permission. It might be a network drive somewhere. Changing it to a local directory worked for me.

Publishing C# application with Wix and MS-Access

I have created a visual studio app with an access database and connected the two using a connection string. The database is in the same folder that the solution is in.
Is this how this should be set up to allow the app to run on a different system? Or is there something else I need to do with the database when creating the installer? (assuming the other systems that it will run on WILL have access and the correct .NET framework installed).

Run a .net project on a system with IIS but no Visual Studio

I have a MVC 5 web application that is working fine. But due to internal security reasons and restrictions of my organization, I cannot host it as a website. My current requirement is to make this app run on a particular computer that has IIS installed on it but no Visual Studio.
My application makes use of MS-SQL database, Entity Framework, C# razors and all other .NET dependencies that are usual in a MVC app, and my target framework is 4.5.1 .
What I Found : I googled a lot, what I got is to create a Virtual Directory using the inetmgr and create the application under that directory. But since already the application is created I cannot go for this fix.
Please help me out by providing some links to refer to or steps to solve this.
Thanks in advance for any help.
What you will need to do is to either:
Use Visual Studio to publish the website directly onto the machine which is hosting the IIS application, as shown here.
Use Visual Studio an publish the application to a folder location on your machine and then use remote desktop or some other method to move the published DLL's to the virtual directory of the application.
Essentially both of them do the same thing, but sometimes due to security reasons, option 2 is easier to accomplish.

Develop and Deploy the software which made in C#.Net

I know how to develop C# Winform application, but don't know anything about deployment/distribution for C#. Please say the technologies, procedures, and other setup for my objective.
Objective:
I like to develop and deploy[distribute] one small application software in C# .Net 3.5. I want some capabilities for the distribution that like other software products. ie. I want to develop software with installation wizard, set icon, and run even who didn't have any visual studio[Likewise, how the other software product like java games run without people must not installed the JDK.].
1) If you need an installer you will have to use some install wizard software. Examples are: InstallShield or WISE.
2) Otherwise you do not have to do much, just copy everything from your bin\Release folder to the other computer and run the exe file.
You can use the WiX Toolset to make installers, which also integrate into build processes if you are using a build server. It can be used to make .exe, .msi and various other types of installations, including patches.
As far as I know it's one of the more commonly used installer frameworks, and you can find it here: http://wixtoolset.org/
Deploying Applications, Services, and Components Here you can read about many of the ways you can develop and deploy services from Visual Studio 2013. There are plenty but all are well documented to suit the most different needs.
From the source
Create a setup program: You can create a setup program by using InstallShield Limited Edition, which is free. http://msdn.microsoft.com/en-us/library/dn531020.aspx
Deploy a desktop application: By using ClickOnce deployment, you can publish a desktop application to a web server or a network
file share. Users can then install the application with a single click. http://msdn.microsoft.com/en-us/library/t71a733d.aspx

Install WinForms application without admin rights

I develop a Windows Forms application using VS 2008. Application will be deployed in Corporate Environment: a network (VPN, LAN) is in several cities, many PC clients Windows XP; and there is a only Server Win2003, with several WCF Services, Windows Service, shared folders, and Database that use the WinForms app. Network is WORKGROUP, not domain.
The users in PC Clients has NOT admin rights. Only can install applications the only admin.
It is required automatized&easy way to install "desattended" the WinForms application for all users. I want get way to easy installations in PC Clients.
We don't want use ClickOnce. NOT use click once. Now, I have MSI (setup.exe) of WinForms App.
If if required another program, source code, scripting, etc, any sample code ??
any suggestions for my architecture network ??
Use XCOPY Deployment for more details.
Use InnoSetup and install the application to %LOCALAPPDATA%\MyApp, which is denoted as {localappdata}\MyApp in an ISS file.
Make sure your application uses Registry keys in HKEY_CURRENT_USER only. You can set these up using Root: HKLM
Set PrivilegesRequired to lowest.

Categories