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
1 answer

Wix custom-action dll relies on files installed at execution

I'm using a dll to install a driver that's packaged inside the msi. When I schedule the custom-action for after InstallFinalize it succeeds, but if I schedule it either 1) after InstallFiles 2) after InstallFiles, execute=deferred, 3) after…
Daniel Harms
  • 1,178
  • 1
  • 11
  • 20
5
votes
2 answers

Windows installer custom action error 1631

I'm creating msi-installer for a product and I need to launch web url in browser after installation. I use WIX 3.5 to create installer (but this probably doesn't important). The example I found in http://www.tramontana.co.hu/wix/lesson5.php#5.2 not…
Sasha
  • 8,537
  • 4
  • 49
  • 76
5
votes
3 answers

Check if .NETCore is installed using CustomAction with Wix

I want to cancel the installation if the NetCore 3.1 (preview) is not installed I create this CustomAction : using Microsoft.Deployment.WindowsInstaller; using Microsoft.Win32; namespace WixCustomAction { public class CustomActions { …
Toss Net
  • 420
  • 5
  • 13
5
votes
3 answers

Wix: Set semicolon to CustomActionData

I have a problem with setting data that contains semicolons to CustomActionData property. By default CustomActionData class uses semicolon as DataSeparator and it breaks my data, when it contains semicolons. Is there any way to put semicolons to…
Roman Kuzyk
  • 241
  • 3
  • 15
5
votes
3 answers

How to force WiX to uninstall if there is an error in CustomAction

I have following CustomAction: The problem is that there is a case in CustomAction when I return…
victor
  • 119
  • 1
  • 3
5
votes
5 answers

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

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…
Brian Stewart
  • 9,157
  • 11
  • 54
  • 66
5
votes
1 answer

Wix Bootstrapper manifest or elevated custom action

I know that this is a topic that has been discussed many times and people always claim: Wix bootstrappers should not require to be run elevated. Let me explain our requirement and hopefully anybody can suggest a solution that will work on all…
Danielku15
  • 1,490
  • 1
  • 13
  • 29
5
votes
4 answers

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

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)…
Dean Bates
  • 1,927
  • 5
  • 25
  • 24
5
votes
5 answers

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…
jlew
  • 10,491
  • 1
  • 35
  • 58
5
votes
1 answer

WiX - Passing parameters to a CustomAction (DLL)

I've got a DLL from an old WiSE installer that i'm trying to get working in WiX, so i'm pretty sure the DLL works with MSI-based installers. Here is my definition:
glenneroo
  • 1,908
  • 5
  • 30
  • 49
5
votes
6 answers

What causes a 1723 DLL not found error in a WIX installer

I'm working with a WIX installer and keep getting this error message: WIX Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Are there any other issues that would…
Purplegoldfish
  • 5,268
  • 9
  • 39
  • 59
5
votes
1 answer

execute .BAT file in installshield

I am developing a package and i need to run one .bat file that will install a windows service for me. I need 2 things: steps to make custom action that will run .bat files? or other may to run .bat file. how to make this custom action with the…
user1906043
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers
5
votes
2 answers

Is it ok to rename the class and assembly generated (for Visual Studio) for a WiX C# custom action?

When I use WiX 3.x with Visual Studio 2010 to create a Windows Installer XML "C# Custom Action Project" called "MyCustomActions", it generates the following files: "CustomAction.config", "CustomAction.cs" and the project file…
Matthew Watson
  • 104,400
  • 10
  • 158
  • 276
5
votes
3 answers

Wix error 1721 related to CustomAction

I have following CostomAction
sanam_bl
  • 299
  • 1
  • 7
  • 14