Questions tagged [custom-action]

A custom action is custom code provided by a developer to be called during a Windows Installer setup. Windows Installer tools (such as WiX, Visual Studio Setup Projects, InstallShield, Wise, Advanced Installer and so on) provide support for incorporating custom actions into your Windows Installer setup.

A custom action is most often custom code called from a Windows Installer setup (an MSI file). Most tools (such as WiX, Advanced Installer, InstallShield, Visual Studio setup projects) provide support for calling custom actions. There are several types of custom action in Windows Installer setups:

  1. Setting a Property (although called a custom action this type 51 one doesn't run user-provided code).
  2. Setting the location of a Directory.
  3. Running embedded VBScript or JScript code.
  4. Calling an external VBScript or JScript file.
  5. Calling a method from a C++ DLL.
  6. Running an executable.
  7. Sending an error that stops the install (a type 19 custom action that doesn't run any user-provided code).
  8. Managed code custom actions called with Visual Studio's installer class mechanism.
  9. Managed code custom actions called via the DTF mechanism, in most cases from WiX-generated setups.
1032 questions
4
votes
2 answers

Run wix custom action before installing files

I should need to run a C++ wix custom action before file installation starts. Is it possible? My code is
Costanzo Ferraro
  • 169
  • 2
  • 12
4
votes
3 answers

Create Custom Action to Start Application and Exit Installer

Thanks to StackOverflow I found out yesterday how to add a custom action to the Visual Studio Installer to start my program after an update. The problem I now face is that at the end of the installer the program does open but the installer never…
4
votes
1 answer

Switches in WixShellExecTarget

from a Wix installer package I am starting one of the installed programs at the end of the setup, according to http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html:
LeRookie
  • 311
  • 3
  • 12
4
votes
2 answers

Wix: Set permission of a folder within the installfolder using permissionEx

I'm creating an installer for an ASP.NET MVC web app using Wix, and I need to set a write permissions for the IIS_WPG on a particular folder in the site. I found an example (I think, still haven't got it working) of how to do this with…
roryok
  • 9,325
  • 17
  • 71
  • 138
4
votes
3 answers

How to conditionally exclude features from "FeaturesDlg" in WiX 3.0 from a managed Custom Action (DTF)

I am trying to put together an installer using WiX 3.0 and I'm unsure about one thing. I would like to use the FeaturesDlg dialog to allow the users to select features to install, but I need to be able to conditionally exclude some features from the…
Gerald
  • 23,011
  • 10
  • 73
  • 102
4
votes
1 answer

Schedule reboot from WiX deferred custom action

I've got a WiX deferred custom action that conditionally modifies some registry keys. For the changes to take effect, a reboot is required. I'd like the user to get the standard dialog box that prompts them to reboot after the installation…
Cocowalla
  • 13,822
  • 6
  • 66
  • 112
4
votes
1 answer

How to test CustomAction functions from application?

I'd like to do fast tests of my C# CustomAction functions for WiX Installer. i.e. call them from my C# WinForms application. As it known function has the format ActionResult MyAction(Session s) But how to create a session parameter to pass it to the…
ZedZip
  • 5,794
  • 15
  • 66
  • 119
4
votes
2 answers

WIX - Run custom action on installation cancellation

I'm wirintg an installer using WIX and I need to execute a custom action when a user press the "cancel" button. I've created a custom action but I don't seem to find where to use that action. Any ideas how can I do that?
Dror Helper
  • 30,292
  • 15
  • 80
  • 129
4
votes
2 answers

Executing Custom Actions immediately in WIX

Is there any way to execute a custom action in WIX as soon as the first dialog (welcome) appears? The requirement is to check prerequisites, and some of those require a custom action. The custom action could be executed as we click to the next…
James Bloomer
  • 5,212
  • 2
  • 22
  • 23
4
votes
1 answer

Sequencing a custom action in WiX before "LaunchConditions"

Is it possible to sequence a custom action before "LaunchConditions"? This is my custom action: Sequenced in…
Nocturnal
  • 55
  • 1
  • 8
4
votes
1 answer

WIX - Adding a C# custom action code

I'm creating a program which is being installed by Wix, using VS 2010 and I've already got the product.wxs ready. Now I want to add a custom C# action to the installation. I've searched how to do it and found this guide: How do I create fully…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
4
votes
3 answers

WiX/MSI: Redirect stdout to file, type 50 custom action

I have a WiX installer all rigged up to run SqlPackage.exe to deploy some installed .dacpac-packaged SQL applications to a database. Actually deploying the database files as follows will succeed:
Ben Mosher
  • 13,251
  • 7
  • 69
  • 80
4
votes
1 answer

WiX Custom Actions in 64 bit

I am trying to run a managed custom action in WiX 3.5 as a 64 bit process. All projects involved are configured to be built in x64 (as specified here). My understanding is that the key to this is the sfxca version. According to my build log, it is…
TheWhitness
  • 43
  • 1
  • 3
4
votes
0 answers

Can't send attributes through RailsAdmin custom action form

I am trying to set up a custom crop action with Rails Admin. I have the action set up, but am having an issue passing the cropping coordinates to save the cropped image. I want to pass the 'crop_x', etc. attributes in the form, but for some reason…
anthony
  • 391
  • 1
  • 3
  • 15
4
votes
2 answers

Hide CustomAction in SiteSettings page at subsite level

I have two features that add CustomAction to the SiteSettings page. One feature is at the Site level and the other is at Web level. The CustomAction that is being added at the Site level is a link to the custom configuration page that manipulates…