Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Minor upgrade as MSI on server with previous version of MSI & MSP

22 views
Skip to first unread message

VishnuB

unread,
Nov 3, 2009, 2:11:01 PM11/3/09
to
I have earlier version (1.0.0.0) of my product in .msi format and for that I
delivered patch as .msp with version 1.0.1.0.

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

Jie Wang [MSFT]

unread,
Nov 4, 2009, 7:00:31 AM11/4/09
to
Hi 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.

Wilson, Phil

unread,
Nov 4, 2009, 12:40:21 PM11/4/09
to
I agree with Jie Wang - you've said nothing about actual *file* versions,
and these must be incremented for a patch or minor upgrade to replace them.
There's nothing in file sequencing that is related to replacing versioned
files on the system.

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...

VishnuB

unread,
Nov 4, 2009, 1:25:23 PM11/4/09
to
Hi Jie Wang,
Yes, we usually version the binaries same as Product version, in case of
1.0.1.0 msp, a.exe was version ed as 1.0.1.0 and in new msi (2.0.0.0), a.exe
is 2.0.0.0


Thanks,
Vishnu


""Jie Wang [MSFT]"" wrote:

> .
>

VishnuB

unread,
Nov 4, 2009, 1:25:31 PM11/4/09
to
Thanks Phil,
I checked my pcp file, I set MinimumRequiredMsiVersion in Properties table
as 200 only. What value do you suggest for FileSequenceStart in ImageFamilies
table ?

But still I feel, file sequencing has some impact.
--
Thanks,
Vishnu

VishnuB

unread,
Nov 5, 2009, 12:44:03 PM11/5/09
to
Additional note, I tried with REINSTALLMODE=vemus to replace even if file is
of equal version, I got following error

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


Wilson, Phil

unread,
Nov 5, 2009, 2:23:45 PM11/5/09
to
Nothing! That's the point - MSI will just do the right thing.

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...

Jie Wang [MSFT]

unread,
Nov 9, 2009, 6:09:19 AM11/9/09
to
Hi Vishnu,

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?

VishnuB

unread,
Nov 11, 2009, 4:10:01 AM11/11/09
to
Hi Jie Wang,
Thanks for the confirmation and clarifying my instinct.
Do you mean if we delivered patch as msp, then Major upgrade is the only
option to upgrade the product with MSI.
Major upgrade is not an easy decision (uninstall & reinstall), can you
please provide me some other approach. The reason behind is similar to
Windows 7, we want it to be considered as Major release from customer
perspective, but internally we want to provide upgrade seamlessly.

--
Thanks,
Vishnu


""Jie Wang [MSFT]"" wrote:

> .
>

VishnuB

unread,
Nov 11, 2009, 4:20:01 AM11/11/09
to
Thanks Phil,
I will try the behavior of providing no value for FileSequenceStart in
ImageFamilies in pcp file. It's great, it works and I can implement same in
my future hotfix releases.

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.

Jie Wang [MSFT]

unread,
Nov 11, 2009, 7:48:08 AM11/11/09
to
Hi Vishnu,

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,

VishnuB

unread,
Nov 14, 2009, 2:54:01 AM11/14/09
to
Hi Jie Wang,
Sorry for my mis-understanding. Any quick help will be very much
appreciated.

--
Thanks in Advance,
Vishnu


""Jie Wang [MSFT]"" wrote:

> .
>

VishnuB

unread,
Nov 21, 2009, 1:25:01 AM11/21/09
to
Hi Jie Wang,
Do you have any update on this issue.
--
Thanks,
Vishnu
0 new messages