custom-action

installing 3rd party applications in C# installer

爷,独闯天下 提交于 2019-12-12 03:49:46
问题 I've created an installer in VS2010 for installing my application, but it has some 3rd party prerequisites such as python. I've tried to include the additional installers as embedded resource, extract them as files and run them (as custom actions). It works, but seems like running 2 installers at the same time is impossible, so when these installers are installed from my installer, I get an error. How can I install these 3rd party applications during my application installation? (The

How can I use installscript to detect Excel.exe running?

不羁岁月 提交于 2019-12-12 03:35:02
问题 Ive been trying to detect the excel process in my installshield installer. I have a custom action that runs after appsearch and pops a window if it finds the process and displays a warning to the user. I have tried using some old examples I found on installsite.org and using the findWindow() call. Neither seems to find excel.exe in the process list. Here is a snippet of code I was using when trying the findwindow export prototype MyTestFunction(HWND); function MyTestFunction(hMSI) HWND nHwnd;

C# Setup Project Custom Action to save the installation directory to custom setting file

柔情痞子 提交于 2019-12-12 03:23:53
问题 I am trying to make an application using windows installer as it's install method. When the installation succeeds I want to get the path where the primary output is located that I configured in the installer. In my case the primary output is in the folder [ApplicationData(Installroot)]\Bin\ . I also have a custom settings file called App.Settings in 1 my Class Library which controls several settings like file locations who are relative to the install location. So the idea is that when the

How to use properties to set the installation path?

谁说我不能喝 提交于 2019-12-12 02:50:03
问题 I want to know how to set the installation path of the copied files by using properties. So, please let anyone explain the answer. 回答1: If You are using a bootstrapper, You can define a variable like that: <Variable Name="INSTALLFOLDER" bal:Overridable="yes" Type="string" Value="[ProgramFilesFolder]"/> This variable has the ProgramFilesFolder as default, but it can be overwritten. You can set it either in Process.Start (when the bootstrapper is called by an EXE) as parameter or - if You have

Rails 3 - Unable to create a new post while at the SHOW view of another Post

一笑奈何 提交于 2019-12-12 02:06:44
问题 I have a model named "Post". I want to use a modal form to create a new post while at the SHOW view of another post. Meaning while I am viewing the post named "John" in its show view, I would like to be able to create a new post from right there. The problem I have is that the ID of the new post remains the same as the post I am viewing, and causes the update action to be fired instead of the create action. Any suggestions on how to handle this? 回答1: Build a new post with Post.new and use

Suppress an MSI error code

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:57:26
问题 I get error 2803: dialog view did not find a record for the dialog . Its because I have explicitly removed the FilesInUse dialog from my installer. This is a dialog that is sometimes requested for presentation by msiexec when there are file locks. My installer logic does not explicitly ever try to show this dialog. My installer has custom actions to kill processes that are locking files, so there is never a problem with ignoring this message and then doing an installation (but for this

How to pass TARGETDIR into CustomActionsData?

感情迁移 提交于 2019-12-12 00:28:49
问题 I have a VS2010 setup project. I want to pass the TARGETDIR parameter to the Install custom action. /TARGETDIR="[TARGETDIR]" and /TARGETDIR="[TARGETDIR]\" are wrong. So, what is the right method? 回答1: In addition to the brackets you must include quotation marks and a trailing backslash: /name="[TARGETDIR]\" MSDN link here. 来源: https://stackoverflow.com/questions/11753054/how-to-pass-targetdir-into-customactionsdata

Will this code create an EventLog at installation time?

左心房为你撑大大i 提交于 2019-12-11 21:16:24
问题 Following the advice of Henk, I've created a Setup Project in VS10 with the aim of adding a custom action. This custom action will hopefully add an EventLog whilst running as admin (ie during installation) rather than having my app throw an exception on OSes with UAC. Unfortunately, I don't ordinarily have access to an OS that uses UAC. The next time I do, I hope the installation will go smoothly. With that in mind, is there anything in the below code which is obviously wrong? using System;

How to hide or disable Cancel button in WIX Installer?

偶尔善良 提交于 2019-12-11 20:53:01
问题 I am new to WiX installer. I need to Hide or disable the cancel button in WIX installer when progress bar is running. I have googled but did not find some useful link to hide the cancel button. I found this: Hiding the Cancel Button During an Installation, but still have no idea how to use a custom action. Is there anyone who can give me some guidance to achieve this? I have done the following things to hide the cancel button but it's not working. First of all, i have written a custom action

Can WiX custom actions be imported from a setup library or is there another method to achieve the same functionality?

允我心安 提交于 2019-12-11 19:35:12
问题 I have a program that is composed of 4 different setup libraries. What I would like to do is completely compartmentalize these libraries so that I can easily reuse them or limit the functionality of the program based on what gets installed. Currently, all of my custom actions are declared inside the installer itself. I would like to have these custom actions reside in their respective setup libraries as well as specify them in the installexecutesequence. Is this something that is possible