custom-action

Installer changes PATH variable, changes don't show up in Command Shell

Hi, I added a custom install action to my installer to add one of my installation directories to the System PATH environment variable. After I run the installer, the PATH variable reflects the changes (when I access it through the Control Panel::System applet), but when I start a new command shell, the PATH variable does not reflect the ...

UI During Custom Installer Action

What is the correct way to display UI during a custom installer action? I would like my UI to be modal on the install dialog, or alternatively, I'd like a way to display text/progress from my custom action in the installer dislog. The installer is a VS2005 setup project and the custom action is a C# Installer-derived class. ...

Visual Studio 2005 locks up when attaching to process

I have a simple C++ DLL that implements a few custom actions for a WiX installer. Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears. But today, whenever I attach to the process, I get the "Microsoft Visual Studio is Busy" b...

Wix Custom Actions with WixUI_Minimal

So, I'm trying to, after an application finishes installing (though in truth, it really doesn't matter when the secondary application is run, since it doesn't interact with the installed files during installation), run another program which is bundled with the application. Pertinent code (with various stuff replaced with "...": <direct...

Mark MSI so it has to be run as elevated Administrator account

I have a CustomAction as part of an MSI. It MUST run as a domain account that is also a member of the local Administrators account. It can't use the NoImpersonate flag to run the custom action as NT Authority\System as it will not then get access to network resources. On Vista/2008 with UAC enabled if NoImpersonate is off then it will...

Installing Capicom without SelfReg: Wix Custom Actions Not Found (Err 2721)

After following the advice in this question successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the user's system folder. However, I'm getting error 2721, which seems to be a custom action not found error, from what I'...

How to add a WIX custom action that happens only on uninstall (via MSI)?

Hello, I would like to modify an MSI installer (created through WIX) to delete an entire directory on uninstall. I understand the there RemoveFile and RemoveFolder options in WIX, but these are not robust enough to recursively delete an entire folder that has content created after the installation. I noticed the similar entry here (h...

How to use enterprise library logging in a .NET custom action

I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get configuration information to the Enterprise Library in the context of my custom action running insi...

How do I write custom action DLL for use in an MSI?

This is a question I intend to answer myself, but please feel free to add other ways to accomplish this. I was packaging an application for use on a wide variety of configurations, and I determined that the most reliable way to perform custom logic within my MSI would be to write my own custom action DLL that would be able to read/writ...

I require a MSI Custom action that copies a file from the MSI source directory

Hello, I'm creating a installer for a c# windows project using VS 2008. I'm trying to write a custom action that copies a settings file from the source directory of the MSI file stored on a file server (e.g. \server\fileshare\myappinstaller\mysetting.xml) to the target directory on the computer on which my application is been installed ...

How do I show Error Message using Managed Custom Actions with Windows Installer

I am writing a managed custom action. I am using the DTF Framework from Windows Installer Xml to wrap the managed dll into a usable CA dll. The CA does what it is supposed to, but I am still having trouble with error handling: Dim record As New Record(1) ' Field 0 intentionally left blank ' Field 1 contains error number record(1) = 275...

How-To: Copy dependent assembly in case it is not in GAC?

I am building a Setup Package using VS2008. This is a regular setup package installing a COM Add-In app for Outlook. It works Ok, so far. However I need to improve it a little... The story is that installation package copies all dependent assemblies into the installation folder of the add-in. For example, the COM Add-In depends on Mic...

How to schedule a deferred custom action from an immediate custom action in Wix/DTF?

I've seen statements to the effect that it is possible, even commonplace, to reference an immediate custom action from a .wxs file, and to have that custom action schedule subsequent (deferred) custom actions. What I don't know is what the code looks like that does this. Anyone? ...

Configure DCOM Settings with native .NET?

Some time ago I found aout about the System.Directory namespace in .NET 3.5 that enables me to basically manage local as well as domain accounts easily with native .NET methods instead of using API calls and importing unmanaged DLLs. Now I need to configure DCOM settings for some legacy application from within an MSI setup. As far as I ...

VS Installer Custom Action Question

If you have a web app merge module and an exe merge module included in the same setup-deployment project, the Context.Parameters["AssemblyPath"] value inside the custom action for each merge module gets messed up. Try creating a setup-deployment project that has a web project and an app project like this: Create a Web project Create a ...

MSI Launch Conditions Custom Actions

I have been able to trigger C# custom actions to overrride install and committ stages of an MSI. However, when deploying an ASP.NET app I wish to be able to perform checks before the install even begins. I know that there are launch conditions, however, I would like to be able to plug in my own code here to handle checks upon launch mys...

How to execute an Installshield Custom action while Rollback?

I have an InstallShield installer which does some stuff. In case the installation breaks the rollback sequence gets started. I do know that I can create conditions for my custom actions in order to make it run only during install or uninstall, but which condition do I set to make it run on rollback? To be precisely I need rollback and ...

How do I perform certain actions in InstallShield in all situations other than a repair?

I've configured an InstallShield setup to delete certain VDs from IIS right before the InstallFiles action. The code is being called within the "OnInstallFilesActionBefore" event. This works fine, except that I don't want the VDs to be removed if the setup is repairing. I've found this page which lists the possible events; however, it s...

Is it OK to add a Condition to a core InstallShield Custom Action? (like OnInstallFilesActionBefore)

I added a condition to the OnInstallFilesActionBefore Custom Action via the Sequences editor. I made it so it only executes the first time you install the setup, which means my condition is: Not Installed I'm now seeing this warning logged when compiling: ISDEV : warning The condition for Custom Action OnInstallFilesActionBef...

SharePoint custom context menu in custom list appears on folders and not just files

I have created a custom list here is the List Template: <ListTemplate Name="CustomDocumentLibrary" DisplayName="Document Library" Description="" BaseType="1" Type="10101" OnQuickLaunch="TRUE" SecurityBits="11" Sequence="110" Image="/_layouts/...