Windows Installer isn't really designed to support that scenario. Whatever you choose to do, test well; particularly repair, upgrade and (if you use it) patching.
On Fri, Mar 11, 2011 at 8:07 AM, Yan Sklyarenko <yansklyarenko+...@gmail.com > wrote: > Hello WiX community, > > I've got a requirement to change the name of the installed files based on > the user input. The initial thought was to use the property values, but it > turns out not to be supported. I've also read this: " > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-a-lt-Property-gt-Value-inside-lt-File-Name-gt-td6000865.html > " > and it seems the best option is to modify the MSI database before launching > the msiexec... > > However, I'm thinking about the following workaround: > - install the file with its original name to somewhere under TempFolder > (unique path based on product code) > - author a CopyFile element under each of such files and make it create > a copy with the desired name (in order to support property values this can > only be done with a custom action which populates the DuplicateFile table > with necessary temporary rows) > > I understand that the obvious drawback of this is having a component hidden > under temp and not used. I think I can live with this... > > Any other "features" of such approach? I know I will have to author > RemoveFile elements to drop the copied clones. > > Thanks in advance for any suggestion, > > -- Yan > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users