Skip to content

How to Include Custom Folder Structure in MSI Installation in appdata/temp folder #1674

Answered by oleg-shilo
surajk46 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@surajk46
Comment options

@oleg-shilo
Comment options

@surajk46
Comment options

Answer selected by surajk46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants