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
6
votes
4 answers

32 and 64 bit assemblies in one windows installer

I have an application written in C# which depends on sqlite managed provider. The sqlite provider is platform dependent (there are two dlls for 32 and 64 bit applications with the same name). The application loads the desired one at runtime based on…
Giorgi
  • 30,270
  • 13
  • 89
  • 125
6
votes
1 answer

Wix C# Custom Action not executing at all

I have an installer which has a custom screen containing a button. When that button is pressed, a Custom Action must run which verifies a few things, and returns success or an error. I have my button defined as follows:
Wotuu
  • 828
  • 1
  • 8
  • 18
6
votes
2 answers

WIX C++ Custom Action

I have a basic WIX custom action: UINT __stdcall MyCustomAction(MSIHANDLE hInstaller) { DWORD dwSize=0; MsiGetProperty(hInstaller, TEXT("MyProperty"), TEXT(""), &dwSize); return ERROR_SUCCESS; …
Adrian Fâciu
  • 12,414
  • 3
  • 53
  • 68
6
votes
1 answer

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…
Maciek
  • 19,435
  • 18
  • 63
  • 87
6
votes
1 answer

ProgressText not working for custom action in WiX

I want to show the progress text of my custom action during installation. I implemented the code as in WiX Progress Text for a Custom Action but it doesn't work. All other text (file copy, for example) is shown, the ActionText table is correctly…
Marlos
  • 1,927
  • 2
  • 22
  • 44
6
votes
2 answers

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:
Michael Edwards
  • 6,308
  • 6
  • 44
  • 75
6
votes
1 answer

Installing a certificate in a .MSI Custom Action doesn't work properly

I'm trying to install a certificate in the Local Machine Store in a custom action. The certificate is installed, but when I use it to query AWS, I get this error: Object contains only the public half of a key pair. A private key must also be…
Magnus Johansson
  • 28,010
  • 19
  • 106
  • 164
6
votes
2 answers

Wix: Add to Listbox from C++ Custom Action

Hi i'm trying to check the COM Ports on a users machine and then insert them into a listbox via a custom action in c++. Although it is not displaying the information and when I debug all it is saying is "Function Failed To Execute" This is my Wix…
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68
6
votes
2 answers

customize rails_admin delete action for a specific model

I've been reading the rails_admin wiki section about customizing actions but I am totally new to rails_admin and this documentation is a bit confusing for me. What I need to achieve is that, when an admin user clicks the options to delete a specific…
Ernesto
  • 3,837
  • 6
  • 35
  • 56
6
votes
1 answer

Extract a custom action's dll from msi-file

How to extract managed custom action's dll from msi-file.
Nerielle
  • 984
  • 1
  • 11
  • 29
6
votes
2 answers

WiX - Prevent downgrade with check for revision

I am searching a way to prevent a downgrade of my application. But the "problem" is, that I have to check the revision-number for example: it should be possible to install 1.0.0.2 when 1.0.0.1 is installed - but it should not be possible to install…
BennoDual
  • 5,865
  • 15
  • 67
  • 153
5
votes
3 answers

Magento: Custom totals counted twice?

Ok, I created custom Total class for adding the special discount, and everything seems to work fine except, for some reason I can't find, my total is calculated twice! That results in double amount of discount, and incorrect grand total. Now, this…
Relja
  • 678
  • 5
  • 13
  • 25
5
votes
1 answer

folder permissions: Full control granted to all users

I'm working on an application which stores some files in the CommonApplicationData folder. My application has to modify these files. I managed to create a custom action to grant fullcontrol rights to my application folder in the…
FadelMS
  • 2,027
  • 5
  • 25
  • 42
5
votes
1 answer

Add custom link to SharePoint list settings page by code

I would like to add a custom link to a SharePoint list settings page (listedit.aspx) from code, I have searched the web and Stack Overflow, and can't seem to find any examples or documentation on doing this specifically. There are a dozen examples…
user80130
  • 53
  • 1
  • 6
5
votes
2 answers

How to link custom action to control event

I'm studying Wix to build product installer. I've customized the UI successfully but be wondering how to link a custom action to control event (i.e PushButton). I have 2 projects: Product.Wix.CustomActions [CustomAction] public static ActionResult…
jcha
  • 629
  • 1
  • 8
  • 16