[wix-users] DTF does not maintain the directories when adding a file as content to the Custom Action Project
jamie at 2imagine.com
Thu Mar 8 04:38:57 PST 2018
Thanks for your reply.
I'm using the latest version of WIX by the way. 3.11.
I hope you find something.
From: Christopher Painter <chrpai at iswix.com>
Sent: donderdag 8 maart 2018 13:35
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Jamie Ooms <Jamie at 2imagine.com>
Subject: Re: DTF does not maintain the directories when adding a file as content to the Custom Action Project
I'd have to test this but I'm pretty sure it used to work. This is how I managed to bring trees of resources along for the ride when InstallShields ISSetupFile table could only express files in one folder.
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> on behalf of Jamie Ooms via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
Sent: Tuesday, March 6, 2018 4:07 AM
To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
Cc: Jamie Ooms
Subject: [wix-users] DTF does not maintain the directories when adding a file as content to the Custom Action Project
I have used this suggestion:
"In Visual Studio, using the solution explorer, you can right click your project and tell it to Add | Existing Item
Change the file filter to *.* and select your file. You'll see the file get added to your project. Click on it and then make sure the Build Action property is set to Content and the Copy to Output Directory property is set to Copy Always.
This will cause DTF to package that file into your foo.CA.dll. At runtime the hosting model will automatically extract this file and clean it up when the CA is done executing. "
The problem is when a file is located in a folder, that folder is not extracted to the C:\Windows\Installer\MSI27DC.tmp- folder.
The file is extracted directly underneath that folder. At this moment my workaround is to zip the folders and files and them extract them in my custom action.
Is there a way to include the directory structure without the need to create a zip?
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
WiX Support | WiX Experts and Resources from FireGiant<http://www.firegiant.com/>
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant
More information about the wix-users