setup-project

How to deploy sample source, with reference assemblies correctly?

Hi There, I'm developing a .NET class library, along with some sample sources. So, My solutions consists of the library, the sample VB to illustrate the library, and a setup project to deploy it all. The sample has a project dependency on the class library, and the setup project is configured to deploy the Class library (i.e. the output...

Web Setup Project - Getting the Current Machine Name

I've got a web setup project with a custom screen in it that asks for a machine name. Is there anyway to prepopulate this field with the current machines name? For the case that I need it for just including "Localhost" does not meet my requirements. "Environment.MachineName" will return the machine name within a code block which would...

Application can't find app.config file when run at Windows Startup

Recently, I added a setup project to my application. In the setup project, I added a registry value that would start my application at windows startup to the HKLM\Software\Microsoft\Windows\CurrentVersion\Run key. When the application runs from this location, it crashes with a System.NullReference exception (it can't find my app.config f...

How to create a Visual Studio Setup Project registry value with the application install path?

I have a very simple application installer that needs to add an action to the shell menu of all files (HKCR*\shell), and I've run into a brick wall: how do I insert the installed path of the application into a registry value? I've tried everything I can think of: [Path] [ApplicationFolder] [ApplicationPath] [InstallPath] [InstallRoot]...

VS Setup Project: Add Start Menu link to a file in a Merge Module

I have created a new Visual Studio Setup Project that uses the output of another Merge Module project. The Merge Module contains files that will be installed into the "x:\program files\\Documentation". One of these files is "documentation.pdf". I would like to add a link to the Start Menu in the Setup Project to the documentation PDF. Th...

Checking MVC.net is installed from Web Setup Project

Hi, Does anyone know of an elegant way to check form a web setup project (as a pre condition maybe?) that MVC.net is installed on the target machine? Is the registry the best way? Or a windows installer search? Many Thanks, ...

COM Interop, isolation and excluding duplicate references

We are using a COM DLL provided by Microsoft (dsofile.dll) in a C# dll written by us (Assembly A). In order to avoid having to register the COM dll, I have switched the Isolated property on the reference to dsofile.dll to true. This means that when we compile our dll, visual studio copies dsofile.dll, Interop.DSOfile.dll and Native man...

How to install a custom desktop application database to SQL Express?

Hi, I have a WPF desktop application that uses a custom database for storage. I need to prepare a setup project (from Visual studio 2008) (full setup, not ClickOnce). I can add the to the list of prerequisites to the application and it does install during the setup of the application. My question is: How can I run a script during th...

Visual studio setup project error

When building my setup project I get the following error : An error occurred while validating. HRESULT = '80004005' Anyone know about this issue? ...

Specify Windows Service Name on install with Setup Project

Objective: In support of a Windows Service that may have multiple instances on a single machine, use a Setup Project to create an MSI capable of: Receiving user input for Service Name Installing service Serializing Service Name from 1 (so that the proper name can be used in logging and uninstall) My initial hope was to set Service Na...

Installer only installs to root on x64 systems

My MSI installer created with Visual Studio 2008 refuses to install the app in the designated directory and instead will only install the app in the root directory. If I take the same MSI and install in on an x86 system the installer installs the app in the directory specified. I am developing the app and MSI on Server 2008 and Win7 RC...

Include folder in setup project

I want to include a folder in a setup project so when i deploy that setup the complete folder is also deployed to the install location ...

Setup Project RemovePreviousVersions timing issue

I have an application that is installed on the clients v.8.0. I have made a new version 9.0 and want to use RemovePreviousVersions to remove the old version and install the new one. I have custom actions setup up in the v.8.0 to clear out all of the directories that were created while the app was being used. In my v.9.0 I have a custom a...

VS2008 Setup project

I have a VS2008 Setup project that installs my app nicely. I want to be able to specify the name of the shortcut it creates on the desktop. I have added an extra screen in the install where you can type the shortcut name. How do I get this typed text into the name of the Shortcut that gets created? ...

Force overwrite of App.config during installation

We currently have 4 installers for our client software: ClientSetupTest ClientSetupProduction ClientUpdateTest ClientUpdateProduction The only differences between them are that Setup contains the Crystal Reports redistributable files, and Update doesn't. Test and Production just specifies which environment they run in and the only d...

Customizing Repair option in MSI

I have a Visual Studio Setup Project that is very basic except for one modification. I have two different libraries that I would like installed based on the user's selection. I added a checkbox screen and conditions to the files. They can install either component or both components. This all works fine. Now for my requirement. Let'...

Strange behaviour of Visual Studio while trying to make windows installer package

I have serious problem with Visual Studio, I'm trying to create Windows Installer package, so i have created new setup project, but the "Add Project Output Group" function doesn't work. The drop-down lists are empty, so i can't do absolutely nothing. Does anyone know why? ...

Is it possible to change variables on Visual Studio setup project based on referenced DLL?

I don't want to replace every file when I change some product information like version, product name and author name. A Visual Studio setup project has constant variables like TARGETDIR, SystemFolder and so on. Is it possible to change setup project properties based on a referenced DLL? PS. Can WiX do this? ...

.NET setup project and uninstaller

I have created a VS setup project for my app. It install the app to user-defined location and creates several shortcuts in the start menu. It also creates an entry in Control Panel/Add or Remove Programs that can be used to uninstall the application. I would like to know if there is a way to create a start menu entry (next to other entr...

How can I generate a MSI package name according to its version?

In a Visual Studio setup project, is there a way to generate automaticaly the MSI fileName according to the current application version number? ...