|
From: Arnette, B. <bi...@si...> - 2006-11-29 18:08:22
|
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: wix...@li...=20 > [mailto:wix...@li...] On Behalf Of=20 > Rob Hamflett > Sent: Wednesday, November 29, 2006 11:45 AM > To: wix...@li... > Subject: Re: [WiX-users] Renaming a file during installation >=20 > CopyFile has to live in a component, and it will now what the=20 > destination file is called. You could=20 > end up with the two instances of the component installed, but=20 > each referring to a different file.=20 > If you uninstall one of the products it won't delete the file=20 > because there's another product that=20 > needs it. If you remove the other product, it will delete=20 > one file, but leave the other. You could=20 > also end up in trouble if the user performs a repair and you=20 > replace the wrong file. >=20 > Rob >=20 > Sorin Radulescu wrote: > > Rob, thanks for your reply. > >=20 > > I have this file that I want to rename that acts like a=20 > template and I have > > to rename it based on the user's input. I don't see a=20 > problem if the user > > specifies different names on each occasion - in fact this=20 > is how it should > > work. Is any danger in this? > >=20 > > Thank you, > >=20 > > Sorin > >=20 > >=20 > > Rob Hamflett wrote: > >> That sounds dangerous. What if that component gets=20 > installed twice, but > >> on each occasion the user=20 > >> specifies a different name? > >> > >> Rob > >> > >> Sorin Radulescu wrote: > >>> Hello, > >>> > >>> I am trying to rename a file that is coming with my=20 > installer. The new > >>> name > >>> of the file should be based on a value set by the user in=20 > one of the > >>> dialogs. So far I've tried different combinations of File=20 > 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 > >>> > >>> > >> > >>=20 > -------------------------------------------------------------- > ----------- > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share > >> your > >> opinions on IT & business topics through brief surveys -=20 > and earn cash > >>=20 > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > &CID=3DDEVDEV > >> _______________________________________________ > >> WiX-users mailing list > >> WiX...@li... > >> https://lists.sourceforge.net/lists/listinfo/wix-users > >> > >> > >=20 >=20 >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > &CID=3DDEVDEV > _______________________________________________ > WiX-users mailing list > WiX...@li... > https://lists.sourceforge.net/lists/listinfo/wix-users >=20 |