setup-project

How to run a “.bat” file during installation?

China☆狼群 提交于 2019-12-17 06:34:19
问题 In a Setup project the executable files such as ".exe , .dll , .js , .vbs" are acceptable but there is no way to run a .bat file in a Custom Action. The question is how to run the *.bat files during installation? 回答1: Well, after much searching and trial and error I have solved this. I'm not sure if this is the best way, but it works. Here's the scenario: I have an application I would like to deploy via a Visual Studio Setup project. In addition to my application files, I would like to create

some computers, the “Windows Installer” is retrieved again from the C # program that was loaded when the program was run

狂风中的少年 提交于 2019-12-14 04:03:45
问题 I have packaged a C# application using VSI_bundle.exe, and when it is installed on some PC's, the following message appears when trying to run the application. Windows Installer >>> "Please wait while Windows configures (Product Name)" The application will then run fine, but when I turn it off and back on again, I get the same situation again. How can I fix this? 回答1: As others have pointed out, this seems to be a Windows Installer self-repair or "resiliency" issue. Launching your application

how to create setup for excel addin?

懵懂的女人 提交于 2019-12-13 18:35:16
问题 I have a created an excel addin application in vb.net using vs2010.The application is working fine while running from IDE. Now I want to create a setup for the application to install the same addin in other system. How can I do this? I created a setup project and added the dll of the addin and created setup file. When I installed it in other machine, installation was succesful. However I could not see the addin in excel when i opened it. Can someone help me on this? 回答1: The list of Excel Add

Create a setup for windows form application Without Administrator password while install

霸气de小男生 提交于 2019-12-13 07:49:56
问题 I have developed a windows form application in visual studio. Now, I would like to install that windows application on my PC without administrator privilege. How can I create a setup. (I already installed Photo Pad image editor application on my PC without administrator privilege). 回答1: Your best bet is to use ClickOnce . It doesn’t require admin rights to install typical apps. One of the reasons is because ClickOnce apps install for the current user and not for everyone on the local machine.

C# custom action windows form focused issue

*爱你&永不变心* 提交于 2019-12-13 04:43:43
问题 Background: I used Visual Studio setup project to deploy one of C# application to client windows server. While installing the application I need to setup a scheduled task in the server as well For this I used a Custom Action feature in the setup project. What I did is created a windows form with input fields and "ok" button and once user enter values and click on the "ok" button task will be created. I added this custom task in Install and Commit steps in Custom Action . Issue : Everything

unregister an .ocx in 'onbeforeinstall' event of Installer class then try to register it on install but couldnt done

馋奶兔 提交于 2019-12-13 02:32:04
问题 Hi , I tried to unregister and delete an .ocx & a .dll from the System32(XP 32 bit os)/SysWow64(64bit OS) of the machine using C# code. I had written the Unregister & Delete code in the override method OnBeforeInstall(IDictionary savedState) of installer class.When I tried to install the .msi the files(.ocx & .dll) get Unregistered, but at the install completes the new files not get registred ie its not present in the System32 folder. Is the OnBeforeInstall event deletes the new files? Please

Setup project , Custom Installer, Connection string

大兔子大兔子 提交于 2019-12-13 02:25:21
问题 I'm working on a setup project. In a separate library project I created a custom installer by inheriting from System.Configuration.Install.Installer and added the generated .dll as a custom action.(Install step). I added an app.config file to the library project where I store a connection string which I need to make a connection to Sql Server. Once I run the setup project, the custom installer doesn’t retrieve the connectionString stored in the app.config file. Where can I store the

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

隐身守侯 提交于 2019-12-12 19:34:56
问题 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 the setup to create the database that the application needs? OR how can I restore the database to the client machine during the setup? Another related question, what

I have made an installer for MyProgram but the uninstall shortcut that it creates leaves behind empty folders

半城伤御伤魂 提交于 2019-12-12 18:17:20
问题 I have created an installer for MyProgram using the Visual Studio Installer (Visual Studio Setup Project). It is called "MyProgram Setup.msi". It installs the program fine and if it is uninstalled using the Add/Remove Programs control panel then everything gets removed as it should. The problem is that I want to add a shortcut to the "User's Programs Menu" under the program shortcut called "Uninstall MyProgram". I have tried doing this in 3 different ways and in all 3 ways if MyProgram is

How to create a C++ MSI Custom Action DLL using Visual Studio 2010?

隐身守侯 提交于 2019-12-12 15:16:55
问题 If I want to abort an installation in a C# custom action, it will have to display an unwanted "1001 Error" message box. To avoid this I once used a C++ project which can abort the installation without the message box. I'm trying to create this C++ project again but the only tutorial I found on the internet http://www.codeproject.com/Articles/1747/MSI-Custom-Action-DLL isn't updated since 2002. How can I do the same on VS 2010? 回答1: That example is outdated. The easiest way today is to