setup-project

Visual Studio 2010 - RemovePreviousVersions

随声附和 提交于 2019-11-29 23:13:00
I have a Visual Studio 2010 Deployment Project with the following settings: DetectNewerInstalledVersion = True InstallAllUsers = True RemovePreviousVersions = True The project I am building has several DLLs that due to the legacy way that serialization was implemented the file versions for this project can not be incremented (which we are in the process of changing). How can I get the setup project to remove the existing files entirely (or at least overwrite with all the new files)? Maybe I need to script an uninstall in the installer (can someone link me to do this, I can't find) I have

How can I create a windows installer MSI that does not require admin access

烈酒焚心 提交于 2019-11-29 17:58:52
问题 I've created an MSI windows installer that installs a plug-in which I wrote for a piece of software used at my office. However, a number of users here don't have admin rights to their computers, and IT is getting frustrated having to install the plug-in for them. My installer does nothing but copy a couple files, to locations that the users would otherwise have access to copy files to. Is there some way to modify my Setup project so that the resulting MSI does not require administrator rights

How to add additional custom window to VS setup projects UI flow

狂风中的少年 提交于 2019-11-29 16:54:30
I'm using a VS 2008 setup project to deploy my application to client computer. Now I need to add custom UI Window to get some information form user for set up process. As example, there should be a form to enter user information after click next button of the destination folder search window. How can I do this? If you want to get user input using custom UI during the MSI deployment best approach is to create the .wid extension files. this is the type of UI files that you see during the MSI installation( where you select the installation path etc ). Even though visual studio doesn't have

How to move all referenced DLLs into seperate folder in c#?

谁说胖子不能爱 提交于 2019-11-29 15:18:06
问题 I have a solution with 3 projects in it. 2 of the projects are referencing log4net, and a couple of others DLLs. When I create the install package and add project output for each of the projects - it drops the DLLs into the main "Application Folder". If I drag these DLLs into a seperate folder I've created in the Setup Project, the applications will not run saying "Cannot find log4net". I want these DLL references in something like "bin" or any name really, just not the main folder they add

VSTS Online Building Setup Projects?

给你一囗甜甜゛ 提交于 2019-11-29 14:09:52
I have a .NET Console app with a setup project I am trying to port to VSTS Online (visualstudio.com) to make use of the source control and well as adding automated build/deploy. I've got the code uploaded just fine and it builds great, but am struggling with getting it to produce a MSI. I've tried introducing a command line task after the solution build to run devenv.com but I can't quite get that to work. Any thoughts on getting a setup project to build its MSI? Thanks! EDIT: Here's the command line task I tried: Tool: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv

Is it possible to register environment variables in Setup Wizard project?

蹲街弑〆低调 提交于 2019-11-29 13:47:16
I am creating a Visual Studio 2008 Setup Wizard for my program http://support.microsoft.com/kb/307353 I see that it is possible to add registry entries, etc.. Is there a possibility to register windows environment variable without writing a custom action? And if I must write a custom action, what is the least painful way to do so? michaelmoo Warning : Please do not use this approach . It is dangerous. Use built-in MSI features for environment variable update. Example : Writing straight to HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment - Path will wipe out whatever is already

General failure building bootstrapper

房东的猫 提交于 2019-11-29 09:13:06
while doing the build of my dontnet 4.0 project setup i'm getting following errors An error occurred generating a bootstrapper: Unable to finish updating resource for E:\project\Setup\Debug\setup.exe with error 8007006E E:project\Setup\Setup.vdproj Setup General failure building bootstrapper E:\project\Setup\Setup.vdproj Setup Unrecoverable build error E:\project\\Setup\Setup.vdproj Setup I am using dotnet framework 4 and MSVS 2010. sha This happens because The .NET framework version required by the setup project is different than the .NET framework version targeted by the application. To

How can I set application settings at install time (via installer class)

£可爱£侵袭症+ 提交于 2019-11-29 04:38:00
I have a Visual Studio setup project that has an Installer class. In the installer class I set a setting as follows: MessageBox.Show(Properties.Settings.Default.MySetting); Properties.Settings.Default.MySetting = "Foo"; Properties.Settings.Default.Save(); MessageBox.Show(Properties.Settings.Default.MySetting); The problem is that even though I know that this code is being executed (I am doing other stuff), the setting is never set!! The message boxes do suggest that the value is being set, but when I go to the .config file the value is still blank! Anyone have any ideas why and/or a possible

.net Setup Project: How to pass multiple CustomActionData fields

心不动则不痛 提交于 2019-11-29 04:06:05
In a .net "Setup Project", it is possible to add one or more custom screens in the setup wizard, with fields (e.g. text boxes) where the user can enter additional installation parameters. A custom field can then be passed to a "Custom Action" class library project, to handle the user field. The image below shows how the property "ServerName" gets mapped to the EDITB1 text field: Within the Custom Action class, the property is accessed as follows: string serverName = Context.Parameters["ServerName"]; Question: how can one specify multiple properties (for multiple text boxes) to the Custom

Setup Project in Visual Studio 2010 Requires .NET 4.0

馋奶兔 提交于 2019-11-29 02:18:50
问题 When setting up a Setup Project in Visual Studio 2010 and even to I removing all the prerequistes .NET 4.0 is still required on the computer that runs the Installation. Deploying with ClickOnce works but is not an option, but at least it doesn't ask for .NET 4.0. Is there a way to create a Setup Project in Visual Studio 2010 that doesn't require .NET 4.0 on installation? Edit This is one of the test configurations i've tested And this is what it looks like when I run setup.exe or the .msi 回答1