I have a question regarding a minor upgrade
I need to upgrade 4 files in a package. LEts call them temp1.txt,temp2.txt,temp3.txt and temp4.txt
The files does not contain any version number

File 1-3 is upgraded fine because they are larger than previous version, but number 4 is not upgraded because its identical as previous version(in size)
What would you say is the best way to get this file replaced wit the new one
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Since they're not versioned files, use the RemoveFile table to, er, remove them first.
Answered 11/30/2009 by: VBScab
Red Belt

Please log in to comment
0
Thx mate it works perfectly[:D]

I had never used this table before i guess the only thing i have to consider is that removfiles is executed before installfiles. Correct?
Answered 11/30/2009 by: Bankeralle
Second Degree Blue Belt

Please log in to comment
0
Correct. A glance at the sequence tables would have confirmed that. :)
Answered 11/30/2009 by: VBScab
Red Belt

Please log in to comment
0
Instead of using the RemoveFile action, you can simply add a version value to the file table - even if the files in question aren't versioned.

This will ensure the new file overwrites the existing nonversioned file. According to the Windows Installer File Versioning Rules in the MSDN library:
"Versioned Files Win—A versioned file gets installed over a nonversioned file"
Answered 11/30/2009 by: greenmagnet
Senior Yellow Belt

Please log in to comment
0
Why bother, though? Straight away you're into a maintenance headache, in keeping track of which version number was assigned to which file.
Answered 11/30/2009 by: VBScab
Red Belt

Please log in to comment
0
I totatally agree with VBScab. Doing so will result in more maintenance in the future-but thx for the answer greenmagnet
Answered 11/30/2009 by: Bankeralle
Second Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity