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!

Olaf S
Posts: 23
Joined: Wed Oct 16, 2013 7:11 pm

patch (.msp) throws error 2356

Hi,

I have "successfully" created a patch for a MSI package. However, it doesn't install. I get an error 2356 - seems as if the source cab file is missing somehow. I tried to do a repair before applying the patch, but this does not solve it.

Both, the source and the target MSI packages are not made with Advanced installer. Shall I import them fist? And if I do so, will the patch work with the originally installed package?

best regards
Olaf
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: patch (.msp) throws error 2356

Hello Olaf,

Can you please tell us if these MSIs are build using the same tool or they are build with different tools? Did you get any warnings during the patches build process?

Please note that we don't even recommend creating patches between two .MSIs which are build with different versions of Advanced Installer, this is why we add a waning message in the build log. This is happening because each new Advanced Installer version includes new features, improvements and bugfixes. Therefore, some differences may appear between packages created with different versions of Advanced Installer because new Advanced Installer version will include new code compared to an older version. Also, you can verify the build log for any related warnings and check the settings changed from one version to the next against the patch rules list.

To create Windows Installer patches, Advanced Installer use the MsiMsp.exe tool - along with "Patchwiz.dll" which are distributed with the Windows SDK platform.

However, you can try to create your MSP package by using this Msimsp tool and see if the behavior still persist.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Olaf S
Posts: 23
Joined: Wed Oct 16, 2013 7:11 pm

Re: patch (.msp) throws error 2356

Dan wrote:Hello Olaf,

Can you please tell us if these MSIs are build using the same tool or they are build with different tools? Did you get any warnings during the patches build process?

Please note that we don't even recommend creating patches between two .MSIs which are build with different versions of Advanced Installer, this is why we add a waning message in the build log. This is happening because each new Advanced Installer version includes new features, improvements and bugfixes. Therefore, some differences may appear between packages created with different versions of Advanced Installer because new Advanced Installer version will include new code compared to an older version. Also, you can verify the build log for any related warnings and check the settings changed from one version to the next against the patch rules list.

To create Windows Installer patches, Advanced Installer use the MsiMsp.exe tool - along with "Patchwiz.dll" which are distributed with the Windows SDK platform.

However, you can try to create your MSP package by using this Msimsp tool and see if the behavior still persist.

Please let us know if that helped.

Best regards,
Dan

Hi Dan,
thanks for your reply. As stated, the older MSI package wasn't made with Advanced installer, and it seems that this was indeed the reason for the problem. However, I finally decided to use a different approach by going the "major update" route, removing the older package from the system.

Best regards
Olaf
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: patch (.msp) throws error 2356

Hi Olaf,

Indeed, considering this scenario, the recommended way in your case is to release a major upgrade of your application which is build with Advanced Installer. A major upgrade is essentially the removal of an older product which is replaced by a newer product. In Advanced Installer the upgrades can be configured from the UpgradesView.
Basically, the upgrade process performs the following actions:
  • -Detect and completely remove older products.
    -Install the new product.
Also, you can take a look on the Upgrade an older version of the package article which may be useful to you.

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”