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 msi, but I would like to have a sample. Thanks!
How to extract and run a file during installation
2.2k Views Asked by Steph Ragazzi At
1
There are 1 best solutions below
Related Questions in WIX
- Word Addin not working in 64bit office but working on 32bit office
- How to define WIX agent requirement in TeamCity?
- WiX and custom extensions for primary output?
- executing an vb script from another project bud in the same solution in C#
- WiX – copy arbitrary files
- Is Component/@Guid attribute is a MUST in case of producing MergeModule
- WiX installer - change the install path
- Single Package Authoring
- Delay in custom action
- WiX - How to use a config file to decide which MSI to run?
- How to change Install button display text conditionally
- Service dependencies are causing my wix msi to force a reboot on uninstall
- WiX installer xml add folder
- wix and heat configure installation folder
- Cant find File System, Registry icon in WIX setup project in Visual Studio
Related Questions in WIX3.5
- How to update a value in an msi registry table as REG_DWORD
- Understanding MSI uninstall - EXECUTEACTION = INSTALL
- Using WiX, how to skip a component when a certain registry key does not exist?
- WiX: CustomAction based on the outcome of another CustomAction
- Installer (wix built msi) does not remove a feature element (a directory) during uninstallation
- WIX Feature Tree with Checkbox selection
- How to HeatDirectory 2 or more times against directories with the same files?
- WiX - harvest non project assemblies in setup output
- Getting SQL Server instance name in WIX?
- Using pkgmgr to install IIS 7
- WiX -- Set Component Directory at Install Time?
- Wix created cub file
- CAQuietExec Command string must begin with quoted application name
- HOW to select file according to intl setting
- How to include MFC and Visual Studio CRT libraries into MSI installer?
Related Questions in DTF
- Read Platform information from .msi
- WiX DTF starts Windows Installer in classic look
- How to extract and run a file during installation
- How do I trap Cancelling of a long-running deferred DTF Custom Action?
- How to modify folder structure while extracting an MSI using WiX DTF
- How to determine/change install state of a Wix Bundle programatically?
- Creating a temporary folder during installation in WiX
- Why is vbs able to find the INSTALLLOCATION when C# using both DTF and MSI API cannot?
- Wix DTF custom action is intermittently failing with Rundll32 error
- Wix Returning the error "No CA or UI entry points found in module" but [CustomAction] is used in dll
- Are Distributed Transactions a good idea for enabling rollback of database upgrades in Windows Installer Custom Actions?
- WiX 3.5.2030.0 CreateDatabase fails with 1603 with DTF external UI handler, works without external UI handler
- wix save feature state to property or get feature state in custom action
- Programmatically installing MSI packages
- Issue faced during uninstall MSI using its Product Code in c#(DTF)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The DTF.chm has a sample how to update the Binary table. It's in "Working with MSI Databases" topic. And you can guess how to do the opposite operation. The code might look like this:
The code of CopyStream method can be taken from this answer of omnipresent Jon Skeet. Note that if you should do this from CA, you will reference the database object like
session.Database, instead of creating it.