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
1
vote
1 answer
How to schedule a deferred custom action from an immediate custom action in Wix/DTF?
I've seen statements to the effect that it is possible, even commonplace, to reference an immediate custom action from a .wxs file, and to have that custom action schedule subsequent (deferred) custom actions. What I don't know is what the code…

jlew
- 10,491
- 1
- 35
- 58
1
vote
2 answers
Update MSI table using MSI programming API
I need to update an Attributes column in an MSI file. Unfortunately, I am unable to find any documentation (esp. for C++).
Here is a code snippet of what I am trying to do:
DatabasePtr db = /* opening db succeeds*/
ViewPtr view =…

ovanes
- 5,483
- 2
- 34
- 60
1
vote
1 answer
DTF Custom Action reference in WiX not a valid WiX reference
I can build a managed custom action just fine using the DTF tools (I.E MakeSfxCA.exe)
My post build event command line looks like this:
"%WIX%SDK\MakeSfxCA.exe"
"$(TargetDir)$(TargetName).CA.dll"
"%WIX%SDK\x86\SfxCA.dll"
…

Terrance
- 11,764
- 4
- 54
- 80
1
vote
2 answers
Can only read/write 21 chars to InstallShield property from VB.NET
I'm using VB.NET and a custom action from within InstallShield to update some properties during an install.
Everything works as long as I don't try to read or write more than 21 characters into the property, in which case it crashes.
Just to be…

Brad Irby
- 2,397
- 1
- 16
- 26
1
vote
2 answers
Getting progress events from WiX Deployment Tools Foundation
How can I get install progress events using the WiX Deployment Tools Foundation Microsoft.Deployment.WindowsInstaller.Installer.InstallProduct()?
I do not want any kind of UI, just an event that I can handle. I see references to the InstallMessage…

Mark Richman
- 28,948
- 25
- 99
- 159
1
vote
1 answer
How to determine/change install state of a Wix Bundle programatically?
I have a Wix Managed Bootstrapper Application / bundle (burn) installer.
From C#, I need to determine the install state of that bundle using either the ProductCode or UpgradeCode of the bundle. I attempted to use the Wix Deployment Tools Foundation…

John M. Wright
- 4,477
- 1
- 43
- 61
1
vote
2 answers
How to read .mst(transform) Table along with .msi
mst + .msi table information.
I created following function to read msi Tables
// This method returns all rows and columns of a Table specified by Name
public DataTable ReadMsiTableByName(string msiFile, string tableName)
{
DataTable…

Apocalyp5e
- 181
- 8
1
vote
1 answer
Extend FilesInUse using DTF
I have an installer that I had written a simple custom action to the count of a certain process type in a property ( AppSearch extension ) and then use that in LaunchConditions to gate the installer. The customer now wants a richer experience so I…

Christopher Painter
- 54,556
- 6
- 63
- 100
1
vote
2 answers
Wix DTF Custom Action Equivalent of WcaAddTempRecord
I am trying to use Wix DTF custom action to write MSI runtime session values to registry.
This i wanted to achieve by adding temporary record to "Registry" table in the database.
Since c++ had a WcaAddTempRecord method to achieve this, really wanted…

user2286870
- 9
- 2
1
vote
3 answers
Copy an msi to memory, then create a Database object from it
I'm very much in the deep end here, so please accept my apologies for not really knowing what I'm on about.
My aim is to take an existing msi, make some alterations to it, then create a transform from it, leaving the msi in it's original state. I'm…

James McCutcheon
- 11
- 1
1
vote
1 answer
How to save data in custom action for rollback in WIX?
Is there any way I can store data for rollback in a custom action using DTF in Wix?
In this instance I need to keep track of what has been done to properly perform a rollback, and I don't know how to pass this information on from the custom action…

DeCaf
- 6,026
- 1
- 29
- 51
1
vote
1 answer
Determine if a Patch is Installed using Microsoft.Deployment.WindowsInstaller.PatchInstallation
I thought this would be fairly straightforward but I'm having problems using the PatchInstallation class which is part of Microsoft.Deployment.WindowsInstaller.
Having obtained the correct patch code and product code (targetcode), I'm simply calling…

Ben Cawley
- 1,606
- 17
- 29
0
votes
0 answers
How to embed and run .dtf file from an electron app
I'm working on an Electron app that will use Vue for the front-end. For this app I have a cloud database that is powered by supabase and that will have an initial dataset imported from a cvs file. To mantain the data updated I need to do a massive…

ICTDEV
- 227
- 1
- 10
0
votes
1 answer
DTF is included with new WIX releases - looking for an example of this for VS2010
How to programmatically read the properties inside an MSI file?
Looking for VS2010 example I can test and learn with.

Mike
- 1
- 1
0
votes
1 answer
How do I trap Cancelling of a long-running deferred DTF Custom Action?
I've got a Deferred Custom Action DLL written in DTF that publishes a set of .RDL files to the SQL Server Reporting Web Service. All is working well and I can trap most of the error conditions in various Try Catch blocks.
The only thing I am having…

TA455HO
- 3
- 2