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
14
votes
6 answers
Programmatically installing MSI packages
I would like to install a given .msi package programmatically from my C# .NET application, preferably with the installation parameters that my application specifies (like the installation path, decline crapware, etc.).
I did some searches, but I…

ShdNx
- 3,172
- 5
- 40
- 47
7
votes
2 answers
How do I encrypt app.config file sections during install with WiX?
I have found an example for encrypting a web.config during installation here, but my app is a windows service. The aspnetreg_iis method works only for web.config files.
I know how to programatically encrypt the config file, but I don't think I can…

JasonS
- 23,480
- 9
- 41
- 46
7
votes
5 answers
How can I programmatically read the properties inside an MSI file?
Is there a way to read the properties inside an MSI file?
For example, given a MSI file named Testpackage.msi, I need to find
productName
PackageCode
version
This I am going to use it with WMI uninstall
string objPath =…

sundar venugopal
- 3,080
- 6
- 39
- 45
5
votes
1 answer
Wix Returning the error "No CA or UI entry points found in module" but [CustomAction] is used in dll
First off, apologies for the obfuscated screenshots and not including the full names in code.
I am having issues trying to use custom actions from a dll using the Wix Framework.
I am using Wix 3.10.2
I have a C# Custom Action project under my…

martpendle
- 432
- 4
- 19
5
votes
1 answer
Read Platform information from .msi
I'm using the Microsoft.Deployment.WindowsInstaller libraries to read out values from a .msi file. Properties are no problem, and the summary-information can also be read out, example:
static void Main(string[] args)
{
using (var database =…

Daniel
- 471
- 5
- 28
4
votes
3 answers
How to conditionally exclude features from "FeaturesDlg" in WiX 3.0 from a managed Custom Action (DTF)
I am trying to put together an installer using WiX 3.0 and I'm unsure about one thing. I would like to use the FeaturesDlg dialog to allow the users to select features to install, but I need to be able to conditionally exclude some features from the…

Gerald
- 23,011
- 10
- 73
- 102
3
votes
2 answers
MakeSfxCA.exe and DLL compiled with Framework 4.0
I have a dll file compiled with Microsoft .NET Framework 4.0
When I am using MakeSfxCA.exe file and passing the dll as one of the parameter to command line it gives me following error…

Rajesh Patil
- 63
- 1
- 8
3
votes
1 answer
How to localize Error Messages for a Custom Action in wix and DTF?
I have written a custom action in DTF and would like to generate localized error messages for it. Until now, I have gone about this the following way:
The custom action includes a method which displays a message that has been defined in the string…

BdN3504
- 1,693
- 21
- 29
3
votes
1 answer
How do I create an empty custom table in Wix?
How do I get Wix to include a CustomTable with no rows in the final MSI? If I simply define the table like this
…

Samuel Jack
- 32,712
- 16
- 118
- 155
3
votes
1 answer
Creating a temporary folder during installation in WiX
In WiX, how to create a temporary hidden folder (Like SUPPORTDIR In IS)on the target machine,during installation and how to add the files to it, that are stored in the Binary table, and then subsequently delete it after Installation is completed in…

sam
- 73
- 2
- 7
3
votes
1 answer
MessageBoxes using DTF
The MsiProcessMessage function doco on MSDN shows this example:
PMSIHANDLE hInstall;
PMSIHANDLE hRec;
MsiProcessMessage(hInstall,
INSTALLMESSAGE(INSTALLMESSAGE_ERROR|MB_ABORTRETRYIGNORE|MB_ICONWARNING),
…

Christopher Painter
- 54,556
- 6
- 63
- 100
3
votes
1 answer
WIX CustomAction loading CLR 4.0 instead of 2.0
I'm trying to write a c# custom action and using .Net 2, however I can't seem to get things to work. I believe the MSI is using the wrong CLR version. I see this in the log file a few lines above where the MSI is calling my CA (line line does not…

Dvlpr2878
- 107
- 2
- 8
2
votes
2 answers
wix save feature state to property or get feature state in custom action
Can i save feature state and action into property value?
Like
If it's not possible, how i can get feauture state in custom action?
Only using MsiGetFeautureState from msi.dll?

Anton Shakalo
- 437
- 1
- 6
- 23
2
votes
1 answer
DTF: Update a File within an Archive Without Extracting It
I am using the Deployment Tools Foundation bundled with WiX 3.5. There is an archive that contains a file that I want to update without having to extract it first - the edits are based on user inputs during setup.
How do I obtain a reference to this…

Sameer Singh
- 1,358
- 1
- 19
- 47
2
votes
1 answer
Deferred CustomAction in System context get access denied
I'm having some problems with privileges when running a CustomAction in
deferred mode.
I want to kill some Service processes which could be running using
different user accounts, from Local System to regular users, but the CA
succeeds only when the…

IlirB
- 1,410
- 14
- 19