How to Include Custom Folder Structure in MSI Installation in appdata/temp folder #1674
-
Hi Oleg |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately, you cannot do that directly. However, if you only want to have some files present and used for a short time (e.g. deployment validation) you can always embed these files in msi but without installing them. Then you can copy them to the destination of your choice during the installation from the special custom action (e.g. Embedding the files is easy. Either as a resource for your assembly that implements |
Beta Was this translation helpful? Give feedback.
Unfortunately, you cannot do that directly.
The added
DefaultRefAssembly
files are extracted by MSI/WiX in the destination temp folder which we have no control over. It's not possible to change.However, if you only want to have some files present and used for a short time (e.g. deployment validation) you can always embed these files in msi but without installing them.
Then you can copy them to the destination of your choice during the installation from the special custom action (e.g.
project.Load
event).And you can simply delete these files when you do not heed them any more.
Embedding the files is easy. Either as a resource for your assembly that implements
project.Load
or as a true MS…