Re: [WiX-users] Generating a unique file name

2014-03-13 Thread sergey.s.betke
? -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part

Re: [WiX-users] Generating a unique file name

2014-03-12 Thread sergey.s.betke
toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Rob, As far as I can tell from the docs ( http://msdn.microsoft.com/en-us/library/aa372079%28v=vs.85%29.aspx), the format of the time might include a colon, such as 18:57:00, which isn't a valid file name on Windows. Cheers

Re: [WiX-users] Generating a unique file name

2014-03-12 Thread Soren Dreijer
? -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part

Re: [WiX-users] Generating a unique file name

2014-03-12 Thread Carter Young
? -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Hoover, Jacob
To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Harold, Then we're back to doing a custom action, though, which means I can do anything I want, including calling GetTempFilePath() directly. :) Cheers, Soren On Mon, Mar 10, 2014 at 6:00 PM

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Harold, Then we're back to doing a custom action, though, which means I can do anything I want, including calling GetTempFilePath() directly. :) Cheers, Soren On Mon, Mar 10, 2014 at 6:00

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Harold Wood (H10 Capital)
Yes..ahh well -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Monday, March 10, 2014 6:58 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Harold, Then we're back to doing a custom action, though

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Hoover, Jacob
: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part of the installation, so a major upgrade will remove it and I'd

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread tanu gupta
, then an upgrade shouldn't touch it. -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Monday, March 10, 2014 8:58 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Harold, Then we're back to doing a custom

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
in the registry? -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Phil Wilson
[mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part of the installation, so a major upgrade will remove it and I'd like to make

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Carter Young
discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part of the installation, so a major upgrade will remove it and I'd like to make sure it's persisted so that I can migrate it as part of the upgrade flow

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part of the installation, so a major upgrade will remove it and I'd like to make sure it's persisted so that I can migrate it as part

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part of the installation, so a major upgrade

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Carter Young
Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part of the installation, so a major upgrade will remove

[WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
Hi there, I want to make a backup of a file during a major upgrade. The CopyFIle element is pretty much what I need, but I'd like to generate the destination file name on the fly to prevent name clashing. Is there a way to do this with WiX that doesn't require me to use a custom action? Cheers,

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Carter Young
I believe the SourceName Attribute is what you're looking for. http://wixtoolset.org/documentation/manual/v3/xsd/wix/copyfile.html Carter Quoting Soren Dreijer dreijer+l...@echobit.net: Hi there, I want to make a backup of a file during a major upgrade. The CopyFIle element is pretty much

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
Hey Carter, That's not quite what I'm after (unless I'm misreading the docs). I want the *destination* file name to be uniquely generated, and as far as I can tell from the docs, only a unique short name will be generated if one isn't provided. Cheers, SOren On Mon, Mar 10, 2014 at 11:28 AM,

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Carter Young
I don't know how you would go about Randomizing the Names, but as long as the DestinationName contains a name different from the SourceName the file name will be different after the copy completes. Quote: SourceName: If this attribute is not specified (and this element is not nested under a

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
I don't know how you would go about Randomizing the Names, but as long as the DestinationName contains a name different from the SourceName the file name will be different after the copy completes. Yes, that's pretty much the point of DestinationName. :) What I'm looking for, however, is a way

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Rob Mensching
To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name I don't know how you would go about Randomizing the Names, but as long as the DestinationName contains a name different from the SourceName the file name will be different after the copy completes

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
, 2014 3:38 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name I don't know how you would go about Randomizing the Names, but as long as the DestinationName contains a name different from the SourceName the file name will be different after

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Harold Wood (H10 Capital)
[mailto:dreijer+l...@echobit.net] Sent: Monday, March 10, 2014 5:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Rob, As far as I can tell from the docs ( http://msdn.microsoft.com/en-us/library/aa372079%28v=vs.85%29.aspx), the format

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
: Monday, March 10, 2014 5:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hi Rob, As far as I can tell from the docs ( http://msdn.microsoft.com/en-us/library/aa372079%28v=vs.85%29.aspx), the format of the time might include a colon