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

WiX. Custom Action rum sqlcmd and processing error

I have a custom action
kenai
  • 105
  • 2
  • 8
0
votes
1 answer

Execute batchFile with command line argurment in silentmode

I want to execute my batchfile which takes 3 cmd line arguments in which it should execute silent mode[should not see the console].Below is my wix code:
harocool
  • 41
  • 9
0
votes
3 answers

Windows installer log files showing a large group 2360 messages

I am trying to run an installer using the MSI command line option so that I can run it in debug mode and see the logs. The logs that I am getting are quite large (near to 1 MB) and they are full of the following messages: MSI (s) (F8:5C)…
Syed Ali
  • 1,817
  • 2
  • 23
  • 44
0
votes
1 answer

Running a Custom Action on conditions issue

Can anyone tell me why this is not working please? I have two registry checks to check if Visual C++ Redistributables are installed:
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68
0
votes
5 answers

C++ Calling one function from another

I have a C++ Custom Action Project. I have two functions, RegProductName and GetProductName. I call RegProductName and it has three possible outcomes. I have these in an if statement that if it is outcome 1 or outcome 2 then i call my second…
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68
0
votes
0 answers

Silent Install of Oracle using WiX

I am creating an Installer using WiX, and as part of this I am installing Oracle also. I am using CA for doing this. But it fails without executing.
Ravz1234
  • 129
  • 1
  • 2
  • 12
0
votes
1 answer

Cancel uninstallation when custom action fail wix

I need to Cancel uninstallation when my custom action is failed. However i am unable to cancel uninstallation, may i know what is my mistake?
san louise
  • 21
  • 2
0
votes
1 answer

How to pass TARGETDIR into CustomActionsData?

I have a VS2010 setup project. I want to pass the TARGETDIR parameter to the Install custom action. /TARGETDIR="[TARGETDIR]" and /TARGETDIR="[TARGETDIR]\" are wrong. So, what is the right method?
雪帅追虹
  • 1
  • 1
  • 2
0
votes
2 answers

Problems calling function from C++ custom action dll WIX

Im using wix at the moment and have developed an installer. This installer calls a C++ custom action DLL. Both the DLL and the setup are building successfully but when i go to install it the installation ends with "The Installer Wizard ended…
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68
0
votes
2 answers

.Net Custom Intaller Actions integration with wix

I made a setup project on vs 2010 .net 4.0 for deployment of my product.The whole installations is based on my custom installer actions which i referenced in my setup project. Now for some reason we have to migrate this setup project to WIX. Is…
SMK
  • 2,098
  • 2
  • 13
  • 21
0
votes
2 answers

Installer Class For Validate Serial Number MS Visual Studio 2010

I create a setup project in visual studio and want to add custom action to validate serial number. How can I do it? EDIT 1: I add Customer Information dialog in user interface of my setup project, and set ShowSerialNumber property to True. and want…
mehdi lotfi
  • 11,194
  • 18
  • 82
  • 128
0
votes
1 answer

How to call a function from a DLL?

Can I call a function from a DLL (custom action) to search for the location a program is already installed on and install my msi there?
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68
0
votes
0 answers

Custom action to pass command line argurments to a exe

I'm using Wix installer in which i use custom action to execute my exe(windows form) with command line arguments. I tried the following way in order to execute my custom action.
harocool
  • 41
  • 9
0
votes
1 answer

Unable to delete deployed file during installation with WIX installer

In our WIX installer project, we need to generate a new file, let's call it FileB, based on a deployed file, called FileA in a managed custom action function. In another word, in the component declaration, I declare the FileA. While in a custom…
tete
  • 4,859
  • 11
  • 50
  • 81
0
votes
1 answer

Starting a second installer WIX

I have recently started creating installers in wix so i'm pretty new. Having a problem, When the user clicks a button i would like a second installer to start using a .exe file. However I cannot get my code to do this, im a bit confused as to which…
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68