dturner
Posts: 4
Joined: Tue Oct 29, 2013 4:05 pm

Creating Patches

Hello

I have been trying to create patches for an application I have made, and I keep on being told that I have broken the patch rules, yet for the life of me I cant understand which. I will detail my process of creating the patch.

I have a base visual studio project in folder A, which I copied and changed slightly to test making a patch, renaming it folder B.

I then create an MSI project and output file using all the files from folder A's debug bin folder, this includes .dll's, .exe's and .xml's, and store all these in a folder called 'test'

I then copy the folder containing all the project and output files for the base project (created in step above), and rename it to 'test patch msi'

I then open the project file in the 'test patch' folder and change the version number, select patch as the upgrade type and delete all files, and add all the ones from folder B's debug bin folder, these are all the same apart from the .exe file.

I then create a patch using these 2 MSI's and the following message occurs when I try to build my patch.

"Warning: Changed component ID. Component ID for "AspectHelpdesk.exe" was "{5C7E4785-DE93-4BA6-B9F0-93BDE5A31739}" in target "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Base\Aspect Plus Helpdesk.msi" and now is "{80712ABE-7E5D-4345-8788-1FFE8C1C2735}" in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "AspectHelpdesk.exe" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Xml.Linq.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.Office2010Silver.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "AspectHelpdesk.exe.config" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Microsoft.CSharp.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Data.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.VisualStudio2012Dark.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.Windows8.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.xml" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Data.DataSetExtensions.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.Desert.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.TelerikMetro.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.TelerikMetroBlue.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.UI.xml" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "TelerikCommon.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Deployment.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.DirectoryServices.AccountManagement.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Xml.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.GridView.xml" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.Office2013Light.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.Windows7.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.UI.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Drawing.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.GridView.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "mscorlib.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "System.Windows.Forms.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.Themes.VisualStudio2012Light.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".
Warning: Sequence changed. Sequence of file "Telerik.WinControls.dll" changed in upgraded "C:\Users\dturner\Documents\Advanced Installer\Projects\Test\Installers\MSI Files\Aspect Plus Helpdesk - Patch 1 MSI\Aspect Plus Helpdesk.msi".

Analyzing the MSI files found that the resulting patch might not apply correctly. The target or upgraded MSI broke some of the patch rules. For more details, please see the Patch help page.
done."

I dont really understand what this means, as if I try the same yet only create my patch MSI with a different .exe then exactly the same errors occur.

Thanks in advance.

Daniel
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating Patches

Hi Daniel,

Please keep in mind that when you want to create a patch, you don't have to delete the old files and then add the new ones, you can only modify the file on the disk and that file will be automatically refreshed in the project or you can just replace the file from the project with the new one.

If you delete the old files and add the new ones, new GUIDs will be generated for their related components and their installation sequence will also be changed, but in this case the Patch Rules are broken.

In order to create a patch you can follow the Patch Autoring tutorial and you can also take a look on the Understanding Patch Image Hierachy thread which details the required steps very well.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yapindo
Posts: 12
Joined: Sat Dec 21, 2013 5:28 am

Re: Creating Patches

Eusebiu wrote:Hi Daniel,

Please keep in mind that when you want to create a patch, you don't have to delete the old files and then add the new ones, you can only modify the file on the disk and that file will be automatically refreshed in the project or you can just replace the file from the project with the new one.

If you delete the old files and add the new ones, new GUIDs will be generated for their related components and their installation sequence will also be changed, but in this case the Patch Rules are broken.

In order to create a patch you can follow the Patch Autoring tutorial and you can also take a look on the Understanding Patch Image Hierachy thread which details the required steps very well.

Best regards,
Eusebiu
what if i want to delete an old file?

I have try using File Operation> File removal to delete that filename.
When patch installing in the beginning the old file is deleted. but when patch is finished, the old file is back!?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Creating Patches

Hello,

You can see my reply on "Re: Patch after patch" thread.

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

Return to “Building Installers”