New file added to patch project generates warnings - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Alastair
Posts: 42
Joined: Tue Jul 14, 2009 9:54 am
Location: UK

New file added to patch project generates warnings

Hi

I have deployed an msi file to customers as a basis for patching. Now, I need to supply a patch that adds a new file to their installation. The problem is that when I try to build the patch I get multiple warnings which start with:
Warning: Sequence changed. Sequence of file "Global_Controls_MSDATREPOCX_f0.7EBEDD22_AA66_11D2_B980_006097C4DE24" changed in upgraded MyInstaller.msi". This warning comes from a file contained in a merge module that has not changed.

Looking at the File and Media tables in the target and upgraded msi files (examples below), it looks like the insertion of the new file has knocked out the file sequence number. The sequence of files within the target and upgraded cab files is the same except that the upgraded msi's disk1.cab has the new file added at the end.

Should I be worried about the warnings or can they be safely ignored ? I'd like to author the patch in some way that removes these warnings and would appreciate any suggestions you have on how to achieve this using Advanced Installer if possible.

Example of File and Media tables...

Code: Select all

Version 1.0.0 File table
File			Sequence
MyFile01.txt		1
MyFile02.txt		2
...
MyFile34.txt		34
MSDATREP	 		35

Version 1.0.1 File table
File			Sequence
MyFile01.txt		1
MyFile02.txt		2
...
MyFile34.txt		34
NewFile35.txt		35
MSDATREP	 		36

Version 1.0.0 Media table
DiskID	LastSequence	Cabinet
1		34	#disk1.cab
2		35	#msdatarep.cab

Version 1.0.1 Media table
DiskID	LastSequence	Cabinet
1		35	#disk1.cab
2		36	#msdatarep.cab

Kind regards,
Alastair McDonald
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: New file added to patch project generates warnings

Hello Alastair,

Please make sure you are using the same merge module in your upgraded image as you used in your target image.
The warning you are receiving is most likely because you are not using the same merge module in both your installer versions.
This means the created patch may not work properly.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Alastair
Posts: 42
Joined: Tue Jul 14, 2009 9:54 am
Location: UK

Re: New file added to patch project generates warnings

Hi Gabriel,
Alastair wrote: This warning comes from a file contained in a merge module that has not changed.
I have triple checked and the Merge Modules are the same in the target and upgraded images. Does this mean that the warnings can be safely ignored ?

Thanks,
Alastair
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: New file added to patch project generates warnings

Hi Alistair,

It might be a false positive, your patch should work in this case.
It is however best if you thoroughly test it.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Alastair
Posts: 42
Joined: Tue Jul 14, 2009 9:54 am
Location: UK

Re: New file added to patch project generates warnings

Hi Gabriel,

If differences in File Sequence are acceptable so long as cab file contents match, it would be welcome if errors are only generated when the cab file contents will cause patching to fail. As false positive warnings introduce unnecessary uncertainty, please could they be removed ?

Thanks for the information, much appreciated.

Kind regards,
Alastair
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: New file added to patch project generates warnings

Hello,

Please send the two .msi used for creating the patches so we can analyze them and determine why the warning is occurring.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Alastair
Posts: 42
Joined: Tue Jul 14, 2009 9:54 am
Location: UK

Re: New file added to patch project generates warnings

Hi Gabriel,

Thanks for this offer, however as the installer is commercially sensitive I can't send you the files. However when I get the chance I will put together a "test" package that demonstrates the problem and send that, if that is ok ?

Thanks again,
Alastair.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: New file added to patch project generates warnings

Hello Alastair,

Thank you, that will do fine.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
atulthummar
Posts: 37
Joined: Fri Dec 21, 2012 7:48 am

Re: New file added to patch project generates warnings

Cna you please let me know, how you resolve this above issues?, i am also facing same issues.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: New file added to patch project generates warnings

Hello,

This issue may occur if you don't respect all patch rules. However, can you give us more details about your scenario? Also, can you send us the .AIPs (project files) of your target, upgraded and patch project to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”