setup-project

c# setup project get radio buttons value

坚强是说给别人听的谎言 提交于 2019-12-04 05:51:13
问题 I've started to create installer for my application using Setup Project in Visual Studio, I've made User Interface with two radio buttons. There it is what i'm talking about I want to get access to values of these radiobuttons in c#, but I completely have no idea how. Can any1 help me ? 回答1: Assuming that getting them in C# means that you have a custom action installer class that you wish to pass the values to: DOMAINLOCALVALUE appears to be the name of the property associated with the

Overriding “Textboxes” dialog fields from the command line in MSI installer (Visual Studio 2010 Web Setup)

纵然是瞬间 提交于 2019-12-04 05:29:36
问题 Background I have a Web Setup project in Visual Studio 2010. In the User Interface section, I have a custom Textboxes dialog. These text fields have property names like EDITA1, EDITA2. I have a Custom Action which makes use of these properties: CustomActionData = /foo="[EDITA1]" /bar="[EDITA2]" /zip="[BLARB]" In the code for handling this custom action, these parameters are available in the Context.Parameters dictionary public override void Install(System.Collections.IDictionary stateSaver) {

Visual Studio Set-Up Doesn't uninstall previous version of the build

不羁的心 提交于 2019-12-04 03:40:04
I need to constantly release a new executable with modifications to send to the end user. The Set-UP Projects Properties are set to RemovePreviousVersion = True DetectNewerInstalledVersion = True When I release a new build, I increment the Version AND change the Product Code. (Since I am using Visual Studio 2010 - when you increment the Version it automatically changes the product code, but I've tried to change it manually also). When the build is done - the previous version doesn't uninstall. The settings are below: EDIT: After some more research I've found that fileVersion of the project

How to set “Run as administrator” flag on shortcut created by MSI installer

三世轮回 提交于 2019-12-03 20:53:28
I have a Setup and Deployment project in Visual Studio 2010. I would like the installer to create two shortcuts to the executable of another project in my solution. One normal shortcut that simply runs the application using current credentials and another which has the Run as administrator flag set, thereby ensuring that the user is asked for credentials with administrative rights when clicking the shortcut. Running the application with administrative rights enables certain features that are otherwise not available. Setting this flag doesn't seem to be possible at first glance. Can this be

Duplicate messages in output when building VS 2013 setup project

感情迁移 提交于 2019-12-03 10:05:06
I have a VS2013 setup project that builds the setup that installs the exes produced by two C# projects. When I build the setup project I get duplicate messages as if there are two build processes. I removed one of the two exes from the output of the setup project but I still get the duplicate messages. ------ Starting pre-build validation for project 'SetupWindowsService' ------ ------ Starting pre-build validation for project 'SetupWindowsService' ------ ------ Pre-build validation for project 'SetupWindowsService' completed ------ ------ Pre-build validation for project 'SetupWindowsService'

Visual Studio setup project: run CustomActions/process as current user not system account

烂漫一生 提交于 2019-12-03 08:19:30
I'm using a setup project in visual studio 2010 for a c# outlook add-in (Office 2010/2013) and an other standalone tool. During the installation I kill all instances of outlook, afterwards I want to restart an instance of outlook. In my addin project I added an installerclass and added an InstallEventHandler(AfterInstallEventHandler) where I execute Process.Start("Outlook"); While the same command simply opens Outlook in an other compiled class, in the context of the installer outlook opens in the profile creation assistant. I also tried to run said working compiled exe as an user defined

Installer won't overwrite existing app

半世苍凉 提交于 2019-12-03 03:38:19
问题 I have a Visual Studio 2010 solution with 8 projects. It also has a Setup project which I build to create the installation. It works fine when it's the first installation on a client PC. However, I then modify my project, and build a new Setup, and pass it onto clients. When this happens, the client has to first, manually, uninstall the last installation, and then run the setup. If they run the setup, without uninstallaing, it seems it doesn't overwrite existing files (exe as well as the dlls

“Unable to update dependencies of the project” after committing to Subversion

我的未来我决定 提交于 2019-12-03 03:23:38
问题 I have a setup project in .NET. When I save the project and the other projects to subversion, the setup project no longer compiles. I get the error "Unable to update dependencies of the project." 回答1: There is a long discussion thread about this on MSDN. It seems like there are many possible causes. The discussion includes a few links for this problem from Microsoft. Here is a hotfix for VS2005 and here is a workaround for VS2010. 回答2: Closing VS2010 and then re-opening it has always worked

Is there any Haskell-land equivalent to the Ruby-land's Bundler et. al and, if not, how would a project so structured be contrived?

半腔热情 提交于 2019-12-03 03:14:17
问题 Note to readers : Bear with me. I promise there's a question. I have a problem to solve and think to myself "Oh, I'll do it in Ruby." $ bundle gem problemsolver create problemsolver/Gemfile create problemsolver/Rakefile create problemsolver/.gitignore create problemsolver/problemsolver.gemspec create problemsolver/lib/problemsolver.rb create problemsolver/lib/problemsolver/version.rb Initializating git repo in /tmp/harang/problemsolver Remove the comment on s.add_development_dependency "rspec

How do I fix 'Setup project with custom action file not found' exception?

帅比萌擦擦* 提交于 2019-12-03 01:19:11
I am trying to create a setup project for a Windows Service. I've followed the directions at http://support.microsoft.com/kb/816169 to create the setup project with no trouble. I want to be able to get a value during the installation in order to update the app.config with the user's desired settings. I added a Textboxes (A) dialog to retrieve the values. I set the Edit1Property property to "TIMETORUN", and in my Primary Output action's CustomActionData property I put in the following: /TimeToRun="[TIMETORUN]\" . So far so good. Running the setup I can retrieve the TimeToRun value from the