开发者

What wrong in creating Patches (msp)

开发者 https://www.devze.com 2023-03-04 03:16 出处:网络
I have problem with creating patches (MSP). I use the tutorial from link:http://www.codeproject.com/KB/install/dotnetpatching.aspx?fid=209224&df=90&mpp=25&noise=3&sort=Position&vie

I have problem with creating patches (MSP). I use the tutorial from link:http://www.codeproject.com/KB/install/dotnetpatching.aspx?fid=209224&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2567089

Assume that: I have an installer XYZ.msi.In this msi have file 'xyz.txt'

I build an patch from installer XYZ.msi and this patch name is patch1.msp. This patch will upgrade file 'xyz.txt'.

I build another patch from installer XYZ.msi and this patch name is patch2.msp. This patch will also upgrade file 'xyz.txt'.

If an user install my application from XYZ.msi and apply patch1.msp and continue apply patch2.msp -> I check content of xyz.txt, it is old because it is from patch1.msp. Please explain me.

If an user install my application from XYZ.msi and don't apply patch1.msp, only ap开发者_StackOverflowply patch2.msp -> I check content of xyz.txt, it is the lastest because it is from patch2.msp.

Please help me explain the reason why. I have any wrong? Thanks.


In each patch you should increase the file version of the files you are patching. If they don't have a version (for example TXT files), you can try setting the Version column in File table to a very high value.

This way the patch should always update the file.

0

精彩评论

暂无评论...
验证码 换一张
取 消