DTF (Deployment Tools Foundation) provides a framework for easily and reliably writing managed code custom actions for the Windows Installer.
Questions tagged [dtf]
64 questions
2
votes
1 answer
WiX 3.5.2030.0 CreateDatabase fails with 1603 with DTF external UI handler, works without external UI handler
I have a simple WiX (3.5.2030.0) installer on Windows 7 (Windows Installer 5.0.7600.16385 according to msiexec.exe's properties) that uses the supplied custom action for creating a SQL database. When I run the MSI by itself, or run it in a…

MikeBaz - MSFT
- 2,938
- 4
- 28
- 57
2
votes
2 answers
Get component code using WiX DTF
I have been trying to find a way to get a Windows Installer component code given a product code. (I'm actually trying to get the component path for an installed product using a shortcut that doesn't contain the component code, but this is a longer…

fractor
- 1,534
- 2
- 15
- 30
2
votes
2 answers
WiX: Extracting Binary-string in Custom Action yields string like "???good data"
I just found a weird behavior when attempting to extract a string from the Binary table in the MSI.
I have a file containing Hello world, the data I get is ???Hello world. (Literary question mark.)
Is this as intended?
Will it always be exactly 3…

leiflundgren
- 2,876
- 7
- 35
- 53
2
votes
3 answers
Issue with Wix DTF while creating more than one action in a single DTF custom action assembly
DTF does not call the second action if the custom action assembly has more than one action. It always calls only the first action. As a workaround, I am using one action in one assembly. It works perfectly always.
Do you have any idea on this…

sankar
- 1,724
- 1
- 22
- 37
2
votes
3 answers
Interesting custom action written using DTF in Wix
There was a challenging situation happened when i was working with install to provide product key validation. I had to use C++ unmanaged code to validate the key. Actually we had the main validation logic written in C# and I had to create a mixed…

sankar
- 1,724
- 1
- 22
- 37
1
vote
1 answer
How to extract and run a file during installation
I have created a Custom Action (DTF) with C#.
In that CA, I would like to extract a file from the msi (declared as Binary in wix) and run it with some arguments.
I haven't found any samples or help about that..
I have to execute a request on the…

Steph Ragazzi
- 381
- 1
- 4
- 15
1
vote
1 answer
Adding temporary rows to a custom table
I fell in love with CustomTable to build data-driven WiX installs. I had a custom action that I needed to execute on a dozen or so objects during an installation. Instead of having 12

Babu Sherpa
- 11
- 2
1
vote
1 answer
Do managed CA's use streamwriter differently?
Has anyone experienced an error in which the custom action's temporary extraction path is appended when creating a file?
I have a managed custom action (64-bit C# DLL using Microsoft.Deployment.WindowsInstaller) that performs some system checks. …

Randolph
- 451
- 10
- 24
1
vote
2 answers
Why is vbs able to find the INSTALLLOCATION when C# using both DTF and MSI API cannot?
VBS works as I desired, but both COM API and DTF using C# is not locating the InstallLocation. Followings are what I have done so far.
Thanks to this post, I was able to find a InstallLocation that is not available on registry using vbs. I…

Shintaro Takechi
- 1,215
- 1
- 17
- 39
1
vote
1 answer
DTF Orchestration instance struck in "Pending" Status
We are using Durable task framework https://github.com/Azure/durabletask for long running processes but facing issues with orchestration execution, there are some instances of orchestration which are available in…

Muhammad Saad Javed
- 98
- 1
- 6
1
vote
2 answers
Get feature installation cost prior to installation
We're making a custom boostrapper / external UI for our installation.
We want to provide a "Custom Installation" dialog (like in MSI) to allow the user to choose feature(s) they want to install or remove.
Currently, we are able to read the features…

Ian
- 5,625
- 11
- 57
- 93
1
vote
1 answer
Difference between MsiInstallProduct and Installer.InstallProduct?
What's the difference between these two?
MsiInstallProduct and Installer.InstallProduct. From what I've read, the only difference is that the first returns an int that will dictate if the installation succeeded or not.
I am currently using DTF (WiX)…

Ian
- 5,625
- 11
- 57
- 93
1
vote
2 answers
DTF and MsiGetProperty
Related to: Accessing InstallShield "Support Files" from DTF (Managed Custom Action)
I need to read the property SUPPORTDIR. According to this forum (http://community.flexerasoftware.com/showthread.php?t=180742&page=3), I need to use…

Ian
- 5,625
- 11
- 57
- 93
1
vote
1 answer
Accessing InstallShield "Support Files" from DTF (Managed Custom Action)
I have a bunch of .SQL scripts placed in the "Support Files" view of InstallShield.
I want to access those SQL scripts in my custom action (via DTF). How can I do that?

Ian
- 5,625
- 11
- 57
- 93
1
vote
1 answer
WIX custom action: use dllimport
I have a WiX installer and Custom Actions project. I added C# library as reference to Custom action's project. This C# dll uses DllImport to one C++ dll. When installing I receive error: cannot load DLL mycpp.dll : specified module not found. I…

Anton23
- 2,079
- 5
- 15
- 28