c# - Copy an msi to memory, then create a Database object from it -
i'm in deep end here, please accept apologies not knowing i'm on about. my aim take existing msi, make alterations it, create transform it, leaving msi in it's original state. i'm using dtf (part of wix), suggested in many other questions. my problem stems fact need 2 database objects create transform; altered database , reference. can't create 2 object same file because first object locks it. trivial option create copy of file in temp directory , create new object new filepath. however, want avoid writing disk except save transform, program may used varying mixtures of vms, local storage , network storage. from gather, dtf allow create database object handle, current approach somehow create copy of msi in memory handle , pass database constructor create temporary object can make changes before creating transform off it. i'm @ loss of how achieve this, though, , i'm not sure it's possible. memorymappedfile seemed place start, when creating 1 ...