setup-project

Automatically Start Windows Service on Install

我与影子孤独终老i 提交于 2019-12-11 03:53:25
问题 I have a Windows service and an MSI installer (setup project) for it. The setup project has custom actions for install and uninstall with args of /install and /uninstall respectively. I would like the service to start immediately after the install. All my service does is starts a process. When the service is stopped, it does process.Close(); . I have tried doing var sc = new ServiceController( "MyProcess" ); sc.Start(); The process starts, but the event log message saying the service has

COM Component Registration during .NET Setup Project

做~自己de王妃 提交于 2019-12-10 19:33:01
问题 I have a project which uses a COM Component from Microsoft, which doesn't come with the system, and the default setup of this COM Component only installs the samples, it does not run regsvr32 on the component to make it available via add reference or for that matter, helping the CLR find the DLL. The application I'm shipping uses this DSOFile sample to edit OLE file properties. It's for internal purposes. How do I add a native component to a setup project and have the wizard run the correct

How to make the msi overwrite program if a previous version exist?

给你一囗甜甜゛ 提交于 2019-12-10 15:42:41
问题 I am using Visual Studio 2010, I am working on a windows application and while trying to make an automatic updater for it faced a serious problem. When the program find a new version and trying to install it, it couldn't because of two reasons: 1 - the application is exist in my program files. so that window appears 2 - the application is already opened " the form that performed the update process ". The problem doesn't have any relation with the version number. It's about the program

How to modify contents / replace a binary of an .msi file as a post-build step?

泄露秘密 提交于 2019-12-10 11:09:17
问题 When building a Visual Studio 2010 Setup project with a CustomAction on x64 systems, Visual Studio includes the wrong version of InstallUtilLib.dll : It installs the 32bit shim, which will not work for CustomActions compiled as 64-bit (a requirement in my case, since it depends on 64-bit native dlls). Installing such a .msi results in the System.BadImageFormat exception. According to this post (64-bit Managed Custom Actions with Visual Studio), the solution is to open the resulting .msi in

What's the easiest way to install 100s of files in a Visual Studio setup project

假如想象 提交于 2019-12-10 10:19:08
问题 I have a standard c# application that acts as a GUI front end for a an "R" statistics engine. "R" consists of approx 600 files in approx 50 different folders and can be "installed" on a machine through xcopy deployment. I would like to package up both the R engine and my c# gui into one setup.exe so that the user doesn't need to go and install R first and then my c# application seperately. I know that I can produce a setup project and then add in the R files one by one but adding all 600

Will a VS2008 setup project update Net 3.5 SP1?

微笑、不失礼 提交于 2019-12-10 10:19:03
问题 I just started using the WPF WebBrowser that is included in Net 3.5 SP1. I built my setup project (which I have been using prior to moving to 3.5 SP1) and installed it on a test machine but the WebBrowser was not available. What must I do to be sure that the setup.exe/msi combination checks for and installs SP1? 回答1: Open the properties of the Setup Project, then click on the Prerequesites button. Then check the prerequisites to install. Then you can define how the user gets the pre-reqs.

FileNotFoundException in Visual Studio Setup and Deployment Project when trying to load custom config

≡放荡痞女 提交于 2019-12-10 10:04:24
问题 I'm trying to call a custom action within my Setup & Deployment project to update some items within the app.config on my app. I've wrapped up the custom config section in the usual way, e.g.: [ConfigurationProperty("serviceProvider", IsRequired = true)] public string ServiceProvider { get { return (string)base["serviceProvider"]; } set { base["dataProviderFactory"] = value; } } I've set the custom action to be called during the Install section of installation just after base.Install

Register and unregister a DLL in a Windows Setup Project

二次信任 提交于 2019-12-10 07:04:39
问题 I have couple of dll files that need to be registered/unregistered when a Windows installer is installed/uninstalled respectively. I tried the following - Created a .bat file to register the dll. The issue is I am not able to add a .bat file using 'Custom Actions' in Setup Project. Also, how to run unregister dll while uninstalling ? Please advice. Thanks. 回答1: Below info is my register dll step: 1:Add "Common Files Folder". 2:Add your want to register dll files into this folder. 3:Modify dll

Setup Project for Visual Studio

天大地大妈咪最大 提交于 2019-12-09 23:36:09
问题 If I right click the setup project and go to "User Interface". We will see "Start". if I right click and choose "Add Dialog" At Add Dialog, Choose "Customer Information" If I go to the properties of "Customer Information", there is a tab called "Serial Number Template". It is to check whether the correct number is typed in when the program is installed. I m not sure how does it work. Anyone? 回答1: I don't really know what your question is. Yes, the "Serial Number Template" allows you to add a

Signed exe becomes unsigned after adding project output in setup package using visual studio 2008

安稳与你 提交于 2019-12-07 22:24:28
问题 I have created a msi setup package using visual studio 2008. I have added a project's output (exe project), which is signed at post build, to the setup package. The project is signed at the output directory (bin\Release). but when install the setup package, the exe found unsigned at the installed location. Why is the signing becomes invalid ? When i add it as a file it is signed. But when i add it as Project Output to the setup project it becomes unsigned. (I'm doing signing process at post