Visual Studio 2008 Setup Project - c#

I need to build a setup project for an windows application I developed in C#. Along the way, I need the user to be able to set the database server/instance name along with authentication type, and a username /password if they are using SQL authentication. This connection string is stored in my app.config file.
Once setup is complete, a website needs to open that will install a couple of controls that are needed for this application.
I have been looking at how to develop setup projects but I can't seem to figure out how to do what I need to do.
All help is appreciated. Thanks!

you need to create a custom dialog in the setup project as shown Create custom dialogs for use in your Visual Studio Setup projects
One interesting way to do it is to use custom action with "normal" winform like described here
Take a look at Wix, i tested it for a small application/addin, works fine.
For your problem more work to to, but i think if you create your Wix modular you can put the parts together for a new setup application.

You can also build an InstallHelper exe that will run during the standard VS Setup Project as described at http://www.eggheadcafe.com/tutorials/aspnet/ec13b205-9a90-496f-9d7b-ccebdf1d3ca1/build-a-custom-action-ins.aspx.

Related

Deploy a WPF application with .NET 3/3.5 in a single executable

I have developed a WPF application and the customer is planning to deploy the application on DVDs.
My application is really simple and doesn't require any setup process, but I need to assure that if the client doesn't have .NET 3 installed that it will be installed locally (from the DVD) before starting the WPF application.
So, what's the easiest was to add the .NET 3/3.5 package locally on my DVD and assure it'll be installed before running my application? Remeber that my application will be a standalone application.
when you use the publish option...
The Project Properties has a place to specify the dependancies that will need to be downloaded
then you simply check the boxes
there are other more complex ways to go abaout this but for .net 3.5 you don't have to go far
I would suggest using Visual Studio Setup Project for creating a setup package which would check for prerequisites and provide fundamental features like file system, registries, scripting. It is very easy to get started with. Take a look here for a brief walkthrough.

C# How to create a Setup project for a Windows Service to install it automagically?

I have seen multiple Windows Services getting installed in my computer with just an Setup.exe or .msi... is it something special that it needs to be done with the setup project to let such Windows Services installed in a easy way without Installutil.exe?
I have tried and it just doesn't install the Service. I know how to use Installutil but that I would think it's just for testing. I need to be able to install my windows service with an Setup.exe because I want to distribute my Service with its configuration Tray app.
What would be the correct way to install the service and then my app? They both use a same DLL created in the same solution.
Problem while Building a Setup Project for a windows Service?
I looked at the link above but its about the Setup Project which I already know how to do, the problem is how to make my Setup project working... my DLL is getting up in place, the Tray app is working as well, the problem is the Service not getting installed it is just giving me the .exez
but I need it to be installed correctly like be up and running at reboot and in the Service Control Manager.
Option 1
1. Download Wix
2. Download and install Wix Windows Service Setup Project Template
3. Create a new wix setup project and see what you get
This is the easiest way to create a *.msi without any option windows
Option 2
Follow this blog post. Same as option 1 but without the project template. If you go the WiX route sooner or later you will see that the project template provides basic stuff. If you want more advanced stuff you need to learn WiX a little bit and use its candle.exe, light.exe, pyro.exe etc.
Option 3
I wrote a short post how I usually do this.
Good luck
Here is a simple template for creating a *.msi installer for a Windows Service with WiX:
http://www.schiffhauer.com/wix-template-for-installing-a-windows-service/
I was able to specify my DLL dependencies with File tags.

c# Setup Project Localization

I have a desktop windows forms application written in c#, which has a setup up project. The setup project creates the setup in English. I want to make this setup wizard to be multilingual. I want my setup to ask the user which language to choose and it will continue in the language that the user chooses. I couldn't find a way to do in in visual studio 2008. What is the best way to achieve this.
Thanks.
Take a look at Infralutions Globalizer.NET product. It allows you to
localize the Setup (MSI) packages created by Visual Studio into any
language (not just the eight or so supported by Microsoft).
In addition it can produce a mulitlingual setup package that will
automatically select the language to use based on the current locale
of the user
. It has a command line interface allowing it to be
integrated into your automated build process. You can get more
information and download an evaluation version from
http://www.infralution.com/globalizer.html
as per comments..i am hoping that this will helps you .....setup and deplyment also...

Visual Studio: Publish application

I made a simple Windows application to test how I can publish my application.
So what I want to know is how can I publish my application so that it creates an installer so that other users around the world can download, install and use my application?
Thanks
You could use the "setup" project available in visual studio, that creates a MSI file.
Also you may use the publish concept called "click-once-deployment".
Please go through this article that explains the methodology:
http://www.codeproject.com/KB/install/ClickOnce-Deployment.aspx
Create homepage to describe your application information, update somewhere for others to download. Well, you can give a try by creating a site on CodePlex, SourceForge...
You could try ClickOnce.
ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation.
You just need to define which prerequisites you want to include in bootstraper, as described here

visual studio application deploy

I'm trying to create an installer for my application (win form) by visual studio, creating a new project type setup, and am having great difficulty in doing so, for example:
1 When I create the installer and run it installs, but there is the option to uninstall? and I can not install the same application because it already exists on the machine.
2 In dialog window, I see you have the options to create multiple screens and add textbox for example, but where do I set the events of that textbox?
3 º This application works with sqlserver, and I can install it on the machine by the installer, but as I set him to work with my application linq, since I would have to modify the connection string on each machine that I will install the application.
I've researched a lot about these issues and I find no documentation that can teach me how to do this, if anyone knows some please show me,
I appreciate those who can help me, and sorry my english.
I answer your first question at this time due to the lack of time:
In VS, right click the setup project. You have 2 options: Install and Uninstall.
1.) You need to uninstall the program through your operating system. Go to the Control Panel, Programs and uninstall it. Then you can try installing the application.
2.) In design view you can double click the textbox. You will be taken to the method that handles the “TextChanged” event. Write your code there.
3.) If you are installing on a server you need to create a Web Setup project instead of a Setup project. The latter installs files into the file system of a target computer; whereas, the former installs into the virtual directory of a Web server.

Categories