/build/static/layout/Breadcrumb_cap_w.png

minor upgrade question

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

Answers (6)

Posted by: anonymous_9363 14 years ago
Red Belt
0
Since they're not versioned files, use the RemoveFile table to, er, remove them first.
Posted by: Bankeralle 14 years ago
Second Degree Blue Belt
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?
Posted by: anonymous_9363 14 years ago
Red Belt
0
Correct. A glance at the sequence tables would have confirmed that. :)
Posted by: greenmagnet 14 years ago
Senior Yellow Belt
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"
Posted by: anonymous_9363 14 years ago
Red Belt
0
Why bother, though? Straight away you're into a maintenance headache, in keeping track of which version number was assigned to which file.
Posted by: Bankeralle 14 years ago
Second Degree Blue Belt
0
I totatally agree with VBScab. Doing so will result in more maintenance in the future-but thx for the answer greenmagnet
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ