custom-action

Get Application Directory in the Installer Class

How can I get the directory that an application is being installed to from within the custom installer class? What we are trying to solve is the age old problem of *.config files for multiple environments. One idea we were kicking around was having the configs stored on a network share, and the installer would copy over the correct one...

Wix doesn't remove its files if I remove mine

I have a Wix installer which installs and removes fine if I don't execute my custom actions. But if I do execute them then my custom action does its job, and the uninstall does succeed, but all of the files installed remain in the program files application directory. On install, my custom action (After="InstallFiles") extracts a number ...

Custom Workflow + Custom Action + ASPX For Activating The Workflow

I need to add a custom action to the ECB of all the lists in the site. This Action calls an ASPX page that contains a people picker. After the user selects the people they want, they can click a button that invokes a workflow. This sends an email notifying the selected users of item creation. What I want to know is guidelines, best pra...

How do you catch the VBScript runtime error: "Object required: 'Session' -- Developing vbs script for MSI, want to develop on cmd line where Session isn't defined.

Writing a script for a custom msi installer action. When my script is invoked by an Installer you can get Installer properties via Session.Property("PropName") If you don't invoke via installer you get a runtime exception. I want to make my script so I can develop and debug w/o the Installer so how do I catch this error? I want to do...

How to execute a WiX Custom Action dll with dependencies

I want to create a CustomAction C# dll that depends on a third party .Net DLL (in this specific case, its MySql.Data.dll). I have the C# custom action dll working with the WiX fragment below. I'm just trying to figure out how to safely add a dependency to the Custom Action. Note: I don't actually need this 3rd party dll for the instal...

SharePoint Custom Action on Site Settings Page

I have a Custom Action on the Site Settings page of my SharePoint site that appears in the UsersAndPermissions list. It is created using a feature, this is the elements.xml file for the feature: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; <CustomAction Id="SDITeamGroupApplicationPage" GroupId="UsersAndPermis...

CustomActionData does not seem to be populated or accessable by my vbscript

Ok, this is driving me crazy. I have a CA that needs to know the path of the INSTALLDIR to edit an XML file. So, I set up a set property custom action that sets a property named RemoveAuthTypesNode to [INSTALLDIR]. Then I have a RemoveAuthTypesNode CA that is sequenced after SetConfigFolder (a set property that sets installdir to a sys...

Run exe after msi installation?

Using Visual Studio 2008 to create an msi to deploy my program with a setup project. I need to know how to make the msi run the exe it just installed. A custom action? If so please explain where/how. Thanks. ...

Wix CustomAction session.Log not working

I'm using Wix to setup a Windows Installer .msi file. I have a CustomAction that sets up a ScheduledTask, and in the CustomAction, I've put in some session.Log statements. If I build everything in debug mode, the session.Log statements seem to work, but when I build in Release mode, it seems to no longer log. Is this correct? Or are ...

How to develop an outlook 2007 custom action?

I need a custom outlook rule action: "Save the email attachments to DB", for this action the attachments in that email will be automatically saved to DB. I find a topic at MSDN Outlook 2007 Sample Add-ins: Rules Add-in, Travel Agency Add-in, and Prepare for Meeting Add-in but this topic does not show how to develop a custom action. Out...

Installer Custom Action problem - can't write to register key

In the Custom Actions editor I've added the custom action to Install and Uninstall stages of the process. In the properties window I've marked the CustomActionData property as : /TARGETDIR = "[TARGETDIR]" I'm hoping that the above passes the installation directory info into the custom action. The custom action seems to be firing, but...

WIX Custom Action (Javascript): debugging. Also, can I emit something into the log?

I'm having difficulty figuring out why my Javascript Custom action is failing. I thought I saw a topc in the WIX.chm file on debugging; now I cannot find it. Q1 is there doc on how to debug Javascript or VBScript custom actions? Q2 Is there a way to emit something into the MSI log from a custom action? Addendum: Some people th...

Visual Studio: Creating Folders With Specified Name

I need to have some actions in the installer to create a folder and some subfolders. The folders aren't related to where the installation occurs or any standard folder but a specified name (e.g. c:\mediacentre). I guess one option is to use a custom action, but is there another way? ...

Custom Action Name for progressBar

I'm trying to use Custom Action to create my progressbar, the bar moveing works is correctly. However, it is not displaying Custom Action Name or any additional text that I try to add. Does anybody know why? Thanks. UINT __stdcall CAProgress(MSIHANDLE hInstall) { char* customActionName = TEXT("Update Database Now"); char* mes...

Can we use a custom action with inherited_resources in a DRY manner?

We have a custom action (:register) for our Location model. The supporting code is very similar to a standard :update. Since inherited_resources provided a "template" for us, we copied the update code from actions.rb, changing 'update_attributes' to 'register' and the flash message reflects the different action. This doesn't feel very ...

Empty setup project in Visual Studio 2008

I have a ClickOnce installation I want to distribute. Some system administrators prefer a MSI installation package which, when run, installs the ClickOnce application. I've created a Visual Studio 2008 Setup project which references a single assembly where I've implemented a custom action. The custom action can install the ClickOnce ap...

Custom Action executing as Nt Authority/System not as current user

I'm developing a setup project in VS 2008 SP1 that just creates an Active Directory OU and 2 Security Groups. My problem is that the Custom Action Installer class is running after the setup project is running as "NT AUTHORITY\SYSTEM" not as the current user. I running, W2K3 EE SP2, my domain account is in the local administrators grou...

How to debug failure of a custom action in an MSI/Setup project

For a custom action, I'm setting to Name to XmlPreprocess.exe (a CodePlex utility) and arguments to: /x:"[SETTINGSFILE]" /i:"[TARGETDIR]web.config" /e:[ENVIRONMENTBUTTON] [CUSTOMSETTINGS] >[TARGETDIR]XmlPreProcess.log SETTINGSFILE is supposed to be coming from a custom form page I added, and ENVIRONMENTBUTTON is the value of one of my...

Execute a .exe file automatically after installation.

I have a .exe file, which should be executed as soon as the installation of the main application is finished. I understand this can be achieved using Custom action. I need a little assistance in creating a Custom action. I'm using VS2008, .NET 3.5, As I'm new to c#, if the suggetions are in detail, would help me understand better. ...

Difference between Arguments and CustomActionData in VS CustomAction

In a Visual Studio 2008 setup project, what is the difference between the two properties: Arguments and CustomActionData? In the descriptions that I've read on MSDN, they sound about the same. When should a person use one vs the other. http://msdn.microsoft.com/en-us/library/kyd017kk%28VS.80%29.aspx Thanks, Neal ...