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 answers
Related Questions in WIX
- Wix bundle of third party exe and new msi cant figure out detect conditions
- Getting 'Error writing to file' during WiX Toolset upgrade when changing installation scope
- Unable to format string in desired format - WiX
- wix toolset radio button condition
- How to Add custom dialog to Wix v4
- How to invoke UAC(Elevation shield) Prompt while trying to open bootstrapper bundle exe in WIX
- How do I use heat.exe with Visual Studio extension?
- Is anybody using WiX Toolset v5.0.0-rc.1?
- WixToolset v4 - Installation with scope "PerUser" fails when package NetFx462Redist is used
- Wix not writing to HKCU when run with a user needing admin login?
- WIX project Radio button value usage
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- Detect re-installation on rollback
- Update to Wix 3.14 from 3.11 get error MSB4181: The "MSBuild" task returned false but did not log an error
- Wix: Error LGHT0091: Duplicate symbol 'Property:WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED' found
Related Questions in WIX3.5
- How to specify the application config file in a Wix Custom Action that will execute an exe that is in a Binary element?
- In Wix, at reinstall, is there possibility to re-execute an XML update components?
- WIX ToolSet Conditional logic ignored
- Wix Installer showing 0x80070001: Failed while caching
- Wix 3.5 add file based on file exists or not
- DirectoryRef: use in 2 different folders
- Wix installer wrong path to the users folder
- Trying to run the multiple powershell scripts from wix installer
- WIX Toolset Bundle does not detect package that was just installed
- Why MSI installer queries registry for all installed certificates?
- How to create SDK based WIX custom action in WIX v4 ? Specifically how to get the ..CA.dll to map in the .wxs file?
- calling a script before the managed bootstrapper application is loaded
- Display the warning dialog when a condition is satisfied in Wix
- Wix MSI - Taskbar shortcut goes orphaned when product is uninstalled
- How to change the permissions of the file that is already created using wix installer
Related Questions in DTF
- How to embed and run .dtf file from an electron app
- Why is vbs able to find the INSTALLLOCATION when C# using both DTF and MSI API cannot?
- DTF Orchestration instance struck in "Pending" Status
- How do I trap Cancelling of a long-running deferred DTF Custom Action?
- Wix DTF custom action is intermittently failing with Rundll32 error
- Deferred CustomAction in System context get access denied
- MSI: Show message box in UI phase of installation
- WIX custom action: use dllimport
- WIX : Adding and Reading cabinet file to msi Installer programatically with DTF to allow dynamic customization of installers
- Wix Returning the error "No CA or UI entry points found in module" but [CustomAction] is used in dll
- Get component code using WiX DTF
- Using DTF to install msi package
- Issue faced during uninstall MSI using its Product Code in c#(DTF)
- Too Many Events Using DTF InstallLogModes
- Adding cabinet file to msi programatically with DTF (wix)
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?
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)
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.