You're probably better off either: A) Copy the file from the template in a custom action.
OR B) Have the application copy the file from the template to the user's application data folder if it doesn't already exist. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Rob Hamflett > Sent: Wednesday, November 29, 2006 11:45 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Renaming a file during installation > > CopyFile has to live in a component, and it will now what the > destination file is called. You could > end up with the two instances of the component installed, but > each referring to a different file. > If you uninstall one of the products it won't delete the file > because there's another product that > needs it. If you remove the other product, it will delete > one file, but leave the other. You could > also end up in trouble if the user performs a repair and you > replace the wrong file. > > Rob > > Sorin Radulescu wrote: > > Rob, thanks for your reply. > > > > I have this file that I want to rename that acts like a > template and I have > > to rename it based on the user's input. I don't see a > problem if the user > > specifies different names on each occasion - in fact this > is how it should > > work. Is any danger in this? > > > > Thank you, > > > > Sorin > > > > > > Rob Hamflett wrote: > >> That sounds dangerous. What if that component gets > installed twice, but > >> on each occasion the user > >> specifies a different name? > >> > >> Rob > >> > >> Sorin Radulescu wrote: > >>> Hello, > >>> > >>> I am trying to rename a file that is coming with my > installer. The new > >>> name > >>> of the file should be based on a value set by the user in > one of the > >>> dialogs. So far I've tried different combinations of File > and CopyFile > >>> but > >>> with no luck. > >>> > >>> Is there a way to do this using WiX? > >>> > >>> My WiX version: 2.0.4611.0 > >>> > >>> Thank you, > >>> > >>> Sorin > >>> > >>> > >> > >> > -------------------------------------------------------------- > ----------- > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the > chance to share > >> your > >> opinions on IT & business topics through brief surveys - > and earn cash > >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > >> _______________________________________________ > >> WiX-users mailing list > >> WiX-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wix-users > >> > >> > > > > > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the > chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users