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
5
votes
2 answers

Rails: Custom nested controller actions

I want to setup a custom nested controller actions but I can't figure out the routing. I keep getting the following error No route matches [GET] "/assets" routes.rb resources :companies do resources :requests do match :accept …
5
votes
1 answer

Wix-Installer-How can I get setup.exe's current directory?

I'm using setup.exe and setupbld.exe (from %WixProramFolder%\bin)to make a bootstrapper for my installer. Everything is ok except: I want to get current directory of setup.exe but: When I use property "CURRENTDIRECTORY", I will get wrong value if I…
Klaus
  • 203
  • 1
  • 2
  • 11
4
votes
2 answers

WiX [#filekey] is not being resolved and usable as a path in a managed CustomAction

I am having a problem with using a deferred CustomAction where the parameter is passed as a file id reference in the style [#file.Product.exe.config]:
bigfoot
  • 455
  • 5
  • 12
4
votes
1 answer

Custom Action, Unable to build custom action because the project output group does not have a key file

When I am trying to create an installation project, I get this error message when I try to build the installation class. Unable to build custom action because the project output group does not have a key file. What is wrong my custom action I…
Sriwantha Attanayake
  • 7,694
  • 5
  • 42
  • 44
4
votes
1 answer

Uninstall multiple products using Custom Action

I am developing WIX based instller for our product which is having a base product and many plug-ins. Base and plug-in will be shipped as separate MSIs. Plug-ins can be installed only when base is available. Base and plug-ins are sharing common…
4
votes
1 answer

Conditions within custom actions

I recently separated our company installers in to two features (one enabled and one absent), to allow the user to select both, I've used UI_Mondo GUI to allow selection. I've managed to get our custom action to work if the feature is…
Jamie
  • 876
  • 1
  • 10
  • 28
4
votes
3 answers

How do I cancel and rollback a custom action in VS2010 Windows Installer?

I have a custom action that adds/removes a certificate from the Trusted Root Certificates via the Windows Installer. I achieve this by using a CustomAction It's possible that the user may not have permissions to add the certificate to TrustedRoots,…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
4
votes
1 answer

How to execute multiple launch conditions on installer exit

I've managed to get WIX to launch my application on exit, but not sure how to schedule two custom actions using the WixShellExecTarget property. One CA is to launch an app and the other is a web page based on a url from another CA. These are both…
Jamie
  • 876
  • 1
  • 10
  • 28
4
votes
2 answers

Wix: Write File in Custom Action

i got a problem with wix and managed custom actions: in my custom action i create a file and save it in the INSTALLLOCATION path. It seems like it works, no exception is thrown. But after the installation, the just created File not exists in the…
rhe1980
  • 1,557
  • 1
  • 15
  • 36
4
votes
1 answer

How to update appsettings.json from wix custom actions with the values passed as parameter during command line installation?

I’m currently working on a project where I am using Wix for the installer. My application is developed using .net core and having appsettings.json as a configuration file. I would like to update the values on the appsettings.json with the values…
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
4
votes
1 answer

Pass command-line arguments to WiX custom action

We have a desktop application installed through a windows installer (msi), and we want to add a custom action that relaunches the .exe when we have pass LAUNCH_APP=1 to the cmd. So I have a vbs script that launch a bat file that launch install the…
4
votes
2 answers

How to run a Custom Action inside an MSI created in WiX with elevated privileges?

I have an installer that needs to access the registry and copy and remove files using custom actions. In Windows XP the installer works just fine, but in Vista and 7, the installer shows an error because it cannot access a folder, but if I run the…
Jaime
  • 41
  • 1
  • 2
4
votes
5 answers

WIX installer with Custom Actions: "built by a runtime newer than the currently loaded runtime and cannot be loaded."

I have a WIX installer that executes Custom Actions over the course of install. When I run the WIX installer, and it encounters its first Custom Action, the installer fails out, and I receive an error in the MSI log as follows: Action start…
Rimer
  • 2,054
  • 6
  • 28
  • 43
4
votes
2 answers

Set environment variable before running a custom action in WiX

I have to build an MSI-based installer using WiX and I need to set environment MY_HOME before running a command action. I have a component:
DCCD
  • 51
  • 1
  • 5
4
votes
2 answers

Pass .msi Args to Install Custom Action

I have a Setup and Deployment project in Visual Studio 2013 that creates an .msi installer for my solution. I also have a C# WinForms app that launches in the Install Custom Action. If a user launches the .msi from the command line, is there any…