dtf

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 do that using WiX. Am I wrong? Any ideas? ...

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 looks like that does this. Anyone? ...

WIX/DTF - Dialog with a list, edit field and add/remove buttons on it

Anybody knows a good source to get an idea how to create this kind of a dialog? I'm well aware that I'll need to write some CA's for that but relatively new to WiX (used to work with InstallShield). TIA! ...

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 project. Problem was not stopped only with these, it continued. Since I used VC++ code, it e...

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 issue? public class CustomActions { [CustomAction] public static ActionResult CustomA...

DTF CustomAction to WiX

Hi All, I'm using a DTF immediate custom action. The Custom Action takes minimum of 5 minutes to perform its operation. Until that in the progress dialog, only the progress text is visible. The progress bar doesn't move at all. I set the ProgressText in the WiX file. How can i make the progress bar to move, so that it will be much user ...

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 <CustomTable Id="MyTable"> <Column Id="Id" Type="string" Category="Identifier" PrimaryKey="yes"/> <Column Id="Root" Type="string"/> <Column Id="Key" Type="string"/> <Column Id="Name" Type="string"/> </CustomTable> Wi...

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 list based on some input previously received, preferably from a managed Custom Action. I...

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" "$(TargetDir)$(TargetName).dll" "$(TargetDir)Microsoft.Deployment.WindowsInstaller.dll" But wheneve...

WiX custom action with DTF... quite confused...

Okay, I have decided the only way I can do what I want to do with WiX (thanks to an old installer I didn't write that I now have to upgrade) is with some CUSTOM ACTIONS. Basically, I need to back up a file before the RemoveExistingProducts and restore that file again after RemoveExistingProducts. I think this is what's called a "type 2...

Are Distributed Transactions a good idea for enabling rollback of database upgrades in Windows Installer Custom Actions?

I've outgrown the Sql Server custom actions available in WiX, so I'm taking the bold step of creating my own using Deployment Tools Foundation. I want to be a good citizen and make sure that mine support rollback. But what's the best way of doing it? I need to support SQL Server 2005 and later, all editions. The problem, as I see it, i...

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 transaction in a C# setup bootstrapper (using DTF for the interop), it works correctly. When I ru...