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

How to execute a WiX custom action C++ DLL file with dependencies?

I have already achieved a custom command without dependence without any problem. But here it is a custom command that need to be link with four other dll to work.
4
votes
3 answers

MSI custom action error 1721 on Windows 8 using InstallShield 2010

I'm getting an error 1721 on Windows 8 when my basic MSI installation tries to run a custom action executable, while on Windows XP and Windows 7 it is run as I have set it to from InstallShield. The executable is stored in the binary table. Why is…
4
votes
1 answer

Is it possible to paste into an masked edit control in a windows installer?

Starting off with what I need the end result to be: Customer is able to paste a product key, of the correct format, off of the clipboard into an input box during the install. Where I am at the minute: We use WiX to create our MSI. We currently use…
William Moore
  • 246
  • 2
  • 16
4
votes
2 answers

How can I read custom action's executable output in WiX?

I'm making MSI installer in WiX. During installation I want to run an executable from a custom action and get its standard output (not the return code) for later use during installation (with Property element, supposedly). How can I achieve it in…
foka
  • 804
  • 9
  • 27
4
votes
2 answers

Custom Action not running if located in separate file

If I write the code below in a product block then it works fine but if I write it in a separate file then it is not working. Please can anyone tell me why this thing happens? This is separate file code for custom action:
Rikin Patel
  • 8,848
  • 7
  • 70
  • 78
4
votes
1 answer

Run WiX EXE CustomAction from TempFolder

I'm using WiX 3.5 for the following. I have some files (an EXE and DLL) that I need to extract to the TEMP folder at the beginning of the installation (before the EULA is displayed), then run the EXE. I have the part working that extracts the files,…
wade
  • 65
  • 1
  • 7
3
votes
1 answer

How can I insert values to msi table

I'm using Wix for intalling application & service, and I want to change the values in the msi table(session.database). I tried to do it with a custom action, I can select values from the table using select statement, but if I try to insert, the…
user1192369
  • 103
  • 7
3
votes
1 answer

Wix - Accessing the property values from deferred custom action created dynamically in other CA

I'm making an installer which must configure a web service it installs. It dynamically generates properties which hold the data collected from the user in the UI sequence, installs the service and sets the parameters. SetParams CA uses dynamic…
mrBob
  • 385
  • 6
  • 22
3
votes
1 answer

Wix installer - how to run change with administrative privileges when run from Uninstall or change program in Control Panel

My installer has a custom action which contacts a windows service and set some parameters. In order to successfully use the service, it must be run with the elevated privileges. In the first time install when a user clicks on the Install button, it…
mrBob
  • 385
  • 6
  • 22
3
votes
3 answers

Sharepoint Designer says: "The list of workflow actions on the server references an assembly that does not exist"

I successfully deploy my custom Action to the list of Actions available for use in my SharePoint Designer, but when opening an existing workflow, or creating a new one in the Designer, I get the message (and of course my custom action is not on the…
3
votes
1 answer

How to run my own C++ source files in the installation wizard?

I have created a windows install deployment for my C++ application using VS2010. However my problem is that I don't know how can I squeeze in some of my own code to the installation wizard (and is it possible at all?). The problem is that during…
srd.pl
  • 571
  • 10
  • 22
3
votes
2 answers

WIX downgrade prevention warning is showing at wrong time

I have a strange problem with WIX installer. It has custom action preventing application to install when newer version present:
Sasha
  • 8,537
  • 4
  • 49
  • 76
3
votes
2 answers

Force Installation Every Time

How do I force my Wix installer to always install an application? Currently, when I run an .msi file for the second time, the installer proceeds to go to the uninstall screen, but I want to ensure that the installer always installs my application…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
3
votes
1 answer

Streams implementation in C#

What do I have to do to implement my own stream, which uses custom compression routine, similiar to, for example, GZipStream? I obviously have to subclass the Stream class, but which methods should be implemented by me and which methods can be left…
Yippie-Ki-Yay
  • 22,026
  • 26
  • 90
  • 148
3
votes
0 answers

Enhanced Auth Dialog from Open Graph Beta not working. Still shows the old Auth Dialog

I'm trying to publish custom actions to a user's Facebook stream. I need to request the "publish_actions" permission from the user. My understanding is I can only request this permission as a Test user of my app when using the Enhanced Auth Dialog.…
Neil
  • 8,925
  • 10
  • 44
  • 49