setup-project

Correct way to uninstall a Windows service?

I've got a windows service, built using C#, that is installed via a VS2008 setup project, and am having a couple of problems occurring with the uninstall process: Service is not stopped prior to uninstalling When the uninstall routine runs, it throws up an error about files being in use. Clicking continue completes the installer correc...

How do I get the Setup Wizard to stop downloading .net 4 Client Profile?

I have a web application which is entirely .net 3.5. I have created a Setup project using the wizard making sure that I selected 3.5 from the targeted famework. When I have built the setup.exe and the Windows Installer Package and I have tried to install it on a test machine it prompts straight away to download and install the .net fra...

How to Update the installed Window Application (Creating Patches)

hi, i have requirement. i have created the window application and i have created the setup of that application that has been installed to client machine. Now the requirement is that if i will do the further modification to the project the client not need to install whole application again instead client only need to install Update of ...

Uninstall non-setup created files

Hey everyone. I have a Setup project (MSI) in VS2008 which installs my project. Within the project, I create a settings file, for the application, in the SpecialFolder.CommonApplicationData + \\"settings" folder (the two slashes are in the C# code for escaping). However, the uninstaller doesn't get rid of this for me when it removes th...

Outlook AddIn setting data through Setup project

Hello, I have a question regarding to a project I'm actually working on: I'm doing an Outlook AddIn, and as you know, when you create a new project of this type, visual studio creates for you the Setup project too. I would like to customize my setup project to ask the user for his username and password (because the addin will connect t...

How can I use from Setup Project

Hi My project has now finished and I want create a setup file . What shoud I add in Application Folder in File System section ? Where and how can I add my icon of project , database , recource and essential dll file? Thanks ...

Change textbox value programatically on Visual Studio Setup project.

I'm developing a Setup project using Visual Stual Studio 2008 using language C#. I added a Dialog with 4 textboxes to allow the users to provide some needed information. Is there any way to fill the value of one of the textboxes programatically, and the user only validate is it's correct and changes it if necessary. ...

How to change the contents of a file included in an *.msi with VBScript

Given an installer generated with a VS2010 Setup Project, I would like to swap out a .NET DLL with another one without changing the name. I am already altering the msi file according to this question, swapping out the contents of an entry in the "Binary" table. I have located the file in question using Orca. It resides in the only cabi...

Adding Several layers of folders that contain .XSD Schemas to a .NET 2005 setup project

I need to add .xsd schemas to deploy on a target machine in my .NET 2005 setup project. I've added individual schemas in the past with no problem. In this scenario, I have four folders that each contain several sub-folders and schemas at every level. Is there an easy way to add this in "one shot"? If not, the alternative is to create...

unhandlex exceptions when using new after implementing a setup project in visual studio 2010

Hey I have my little client application which - when started - creates some user defined objects on the heap via "new" pHistory = new CHistory; This was no problem and everything ran fine until yesterday. I wanted to deploy my application and did decide to use a "Setup Project" from Visual Studio 2010. http://msdn.microsoft.com/en-u...

How to execute custom action before installing files when using VS's Setup Project?

Hello, I have a simple VS setup project. On the first screen user inputs database name and credentials to access it. Then user clicks 'Next' button and files are copied. I would like to add one check which should be executed after user typed database name and credentials, but before copying files. This check should hit the database and ...

Creating a new user account during the installation process

Hi, I need to install a windows service running under a given user. It is working with an existing user (ServiceProcessInstaller = User) but when the user does not exist then it should be created before the service install happens. The user must be a mamber of administrators. How should I do it? (VS2008, C#) Thank You. -- Hudgi ...

CF: Setup DLL (template missing)

Im trying to create setup for my cf app. I cant seem to find the project template "Win32 Smart Device DLL" under visual c++. What am i missing? ...

Install webapplication in a new web site?

How do I install a web application as a web site in IIS6 using the regular Web Setup Project? I do not want to install the application as a virtual directory in "Default Web Site", but a new web site (and if possible create the site during the installation). Also, is it possible to select the ASP.Net 4 Application pool as default in the...

Deployment Project not Removing Previous Project COM References

I have a Microsoft Visual Studio Deployment Project that generates a basic setup.exe and appropriate MSI file. I leave the UpdateCode alone, but change the ProjectCode and Version on each build. I've also set the RemovePreviousVersions property to True. However, after I upgrade a machine, it seems as though any class flagged with COM doe...

Why does my Visual Studio Setup Project launch IE when installation is complete?

I have this Visual Studio 2010 Setup Project for installing my application. On (clean) Windows 7 32bit installations, it starts Internet Explorer after installing my application. On my own machine (Windows 7 64bit), this doesn't happen. Do you have an idea what could be the issue here? The default browser on my machine is chrome. On the...

Specifying c:\ProgramData folder in Setup project?

I am using a Windows Installer deployment project in VS 2010 to create an installer for a small demo project. The demo needs to install a SQL Compact database file (MyData.sdf). The demo can't install the database to the application folder on the user's machine--I get an "access denied" error if I do that. So, the logical place to instal...

Setup project with two primary outputs using common dependencies

I have a solution in visual studio with 4 projects - 2 windows form applications, a class library and a setup project. The 2 windows forms applications both reference the class library project. My setup project includes the primary outputs for both windows forms application, and the detected dependencies include the class library. I'v...

create and restore a mysql db using a setup project (installer) in VS.Net

What is the best practice for creating an installer for a winform application. The application is supposed to install the following without connecting to internet. .Net Framework 3.5sp1 MySQL Server My SQL Connector Restore Mysql db Update Config file with the MySQL uname/pwd. I have all the msi files for installing the above mentio...

Install VC++ Runtime 64-bit if system is 64-bit

I am creating a Visual Studio 2010 Setup project for installing my application. My application works by having multiple executable for different system bitness, and detects if you are running on a 32-bit or 64-bit system. I'd like to have the Visual C++ 2010 x64 Runtime installed by the installer if it is a 64-bit system. Setting this a...