I generated patch by comparing two msi's (1.0.0.0 & 1.0.1.0), where existing
binaries are modified, no new files added.
In PatchTemplate.pcp, I updated FileSequenceStart value in ImageFamilies
table as per MSDN
(http://msdn.microsoft.com/en-us/library/aa369215%28VS.85%29.aspx)
[From above link] To ensure this, the value in this field must be
greater than all sequence numbers used in previous patches or in the original
installation package.
So, I got the value of LastSequence from Media table of latest msi (1.0.1.0)
and incremented it by 1 and mentioned the value in FileSequenceStart in PCP
file.
So for example,
- I have 10 files in 1.0.0.0 msi with a.exe's file sequence as 8
- Modified a.exe in new msi (1.0.1.0) and no new files added.
- LastSequence value in Media table of 1.0.10 msi remains 10.
- Updated pcp with FileSequenceStart value in ImageFamilies table as 11 (10
from LastSequence of new msi + 1) as per MSDN.
- Now in msp, a.exe's file sequence was modified to 11 (this can be viewed
using Orca, by Transform -> View Patch menu with 1.0.1.0 msp applied over
1.0.0.0 msi)
- When user installs 1.0.0.0 msi & 1.0.1.0 msp, then a.exe's sequence in
the cached installer will be 11 (my assumption).
Now I generate a new msi of version 2.0.0.0 with no new files added, still
LastSequence in Media table is 10 (a.exe has file sequence as 8).
- Invoke 2.0.0.0 msi with command line as
msiexec.exe /i myproduct.msi REINSTALL=vomus REINSTALL=ALL /l*v
"C:\myproduct_2.log"
- Here file with sequence less than 10 are upgraded except a.exe
- In verbose msi log, i see filecopy action for a.exe says
Overwrite; Won't patch; Existing file is of an equal version
- I doubt this is because of file sequencing for a.exe got modified in msp
as 11 and 2.0.0.0 msi has LastSequence in Media table has value as 10.
Please let me know
- My assumption is correct or something else is cause this issue.
- Is there any issue in my PCP update for FileSequenceStart value.
- How can I overcome this issue now, since 1.0.0.0 msi & 1.0.1.0 is already
delivered to customer.
Any help will be highly appreciated.
Thanks,
Vishnu
Could you confirm that the file a.exe itself is correctly versioned in all
versions?
Thanks,
Jie Wang
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msd...@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
To avoid having to manually figure out sequencing in ImageFamilies use
MinimumRequiredMsiVersion in the Properties table, set it to 200 and have
Windows figure it all out.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
"VishnuB" <vb...@community.nospam> wrote in message
news:250490D4-AEE0-4406...@microsoft.com...
Thanks,
Vishnu
""Jie Wang [MSFT]"" wrote:
> .
>
But still I feel, file sequencing has some impact.
--
Thanks,
Vishnu
Error 1334.The file 'a.exe' cannot be installed because the file cannot be
found in cabinet file 'Data1.cab'. This could indicate a network error, an
error reading from the CD-ROM, or a problem with this package.
--
Thanks,
Vishnu
If you can find any documentation explaining that file overwrite rules
depend on file sequence, share it. The rules are here:
http://msdn.microsoft.com/en-us/library/aa367835(VS.85).aspx
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
"VishnuB" <vb...@community.nospam> wrote in message
news:69E3DC1F-D85E-4785...@microsoft.com...
I think this could be caused by the file sequence. The installer might be
getting the a.exe from wrong media, so you see the "same or older version"
problem.
Since the 2.0.0.0 msi is a major version upgrade, is it possible to just
assign it a new product code (keep the upgrade code) and have the installer
remove previous versions before installing v2?
--
Thanks,
Vishnu
""Jie Wang [MSFT]"" wrote:
> .
>
Jie Wang confirmed that its because of file sequencing. I need to get rid of
the current situation, how to provide minor upgrade in this case.
One more thing, do you think MSDN help article for ImageFamilies has to be
corrected, since I got the information from there to increment the file
sequence value or my understanding is wrong.
Sorry for the misunderstanding but what I meant is that the problem *could*
be caused by the file sequence and the media table, that was not a
confirmation though.
I will try finding out more about this scenario and how exactly it works,
and of course what other options we have. But that might take some time.
I'll update here ASAP.
Regards,
--
Thanks in Advance,
Vishnu
""Jie Wang [MSFT]"" wrote:
> .
>