problem updating .msp file - Advanced Installer Community
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

problem updating .msp file

I have a problem updating .msp file.

1. I made test.msi version 1.0.0 in Test1 folder. And test.msi installs with no problem.
At this time I check 'check for updates using Advacned Updater' and Updates cofiguration file URL.

2. I made test.msi version 1.0.2 in Test2 folder and I clicked Patch.
At this time I check 'check for updates using Advacned Updater' and Updates cofiguration file URL.

3. I make new patch project(patch.msp) with test.msi version 1.0.0 (target) and test.msi version 1.0.2(upgraded)

4. I make updates.txt with patch.msp for auto update.
update1.JPG
update1.JPG (52.77 KiB) Viewed 4792 times
update2.JPG
update2.JPG (55.49 KiB) Viewed 4792 times
5. I upload updates.txt, patch.msp.

I can check new version update and process installation. But lastly I can check 'Error : Update installation failed.
last.JPG
last.JPG (28.48 KiB) Viewed 4792 times
What's the problem with that ?? :cry: :cry: :cry: :cry: :cry: :cry:
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: problem updating .msp file

Hello and welcome to Advanced Installer forums,

This may happen if the detection criteria (set in your updates configuration project -> Updates page -> Properties tab -> Installed Detection section) is not met after the updates are installed. Please take a look on our "Why do I receive the "Some of the updates failed to install properly" message?" FAQ.

In order to avoid this message you should make sure that the detection criteria added in your updates configuration project is always fulfilled after the updates installation. As a best practice it is recommended to use a registry value search as a detection criteria.

Let us know if this helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Re: problem updating .msp file

What should I fill the registry key and Expected version ??
I read user guide, but I can't understand What I should fill it.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: problem updating .msp file

Hello,

The recommended installed detection criteria is this:
  • in the original installation package you create a registry entry which contains the version of the package (you can use the ProductVersion property).
  • in the "Installed Detection" section of the Updates configuration project use this registry value as a detection criteria.
Please note that if you are using a 64-bit registry entry, make sure you enable the 64-bit option. Otherwise only 32-bit registry entries will be checked on a 64-bit machine.

If that didn't helped either, please give us the AIP's( old project file, the upgraded project file and the patch project file) and a verbose log of the patch installation to support at advancedinstaller dot com so we can investigate them.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Re: problem updating .msp file

When i made installation file(.msi), I checked Single MSI in Package Type.
Is it ok????
But does i need .exe file??
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: problem updating .msp file

Hello,

Please note that a patch contains the diffs between two versions of the product and can only be installed on computers that have the previous version already installed.

A patch can only be applied between two .MSIs, so if you are building an EXE package with the files inside, you need to extract its contents in order to create a patch. In order to do so, you will use the "/extract" command-line option of the bootstrapper, as specified here.

Please take a look on our Patch Authoring tutorial which will guide you step by step into the creation of a simple Windows Installer patch project from scratch and building it in order to obtain a MSP package. Also, when creating patches you should make sure they don't break the patch rules.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Common Problems”