MSP patch does nothing

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

MSP patch does nothing

Postby Markus » Fri May 04, 2012 8:39 am

Hello,

I created a small sample project for a MSP package similar to the tutorial. The patch adds two files and modifies an existing file. The patch works. I creating also a protocol during execution of the patch and noticed the actions InstallFiles and PatchFiles:

Action 08:46:36: InstallFiles. Copying new files
InstallFiles: File: dummy.dll, Directory: C:\Programme\SXP\Dummy\, Size: 77927
InstallFiles: File: test.exe, Directory: C:\Programme\SXP\Dummy\, Size: 49258
Action 08:46:36: PatchFiles. Patching files
PatchFiles: File: main.exe, Directory: C:\Programme\SXP\Dummy\, Size: 2732118


The MSP patch for out product does not work however, it does nothing. The installation is more complex since it installs more files. I checked that the product ID of the old and new version is equal. I created the patch in the same way I created the dummy patch.
Here is a part of the log (german):

Aktion gestartet um 08:55:30: InstallFiles.
GenerateScript: Neue Dateien werden kopiert
Aktion beendet um 08:55:30: InstallFiles. Rückgabewert 1.
Aktion gestartet um 08:55:30: PatchFiles.
Aktion beendet um 08:55:30: PatchFiles. Rückgabewert 1.


As you can see nothing is patched although the file versions differ. The log of the creation of the patch looks good also in my view. There is one warning at the end "WARNING: A major upgrade patch is being created. A major upgrade patch will have trouble applying to a product which might have patches with sequencing info applied" and there are a few warnings that the files versions are reversed (not for all files).

Does anyone know how to solve the problem?

Kind regards
Markus.
Markus
 
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: MSP patch does nothing

Postby Markus » Fri May 04, 2012 12:20 pm

Do you need more information?
Markus
 
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: MSP patch does nothing

Postby mihai.petcu » Mon May 07, 2012 6:33 am

Hello Markus,

Please keep in mind patching is a very delicate process and requires careful settings not to mention following the patch rules. Advanced Installer strives to respect all the rules, but due to the involved complexity, success is not always guaranteed.

Breaking one of the rules is probably your case as well. You can verify the build log for any related warnings and check the settings you changed from one version to the next against the patch rules list.

All the best,
Mihai
Mihai Petcu
Advanced Installer Team
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: MSP patch does nothing

Postby Markus » Mon May 07, 2012 10:06 am

Ok, I solved the problem but don't know how exactly.

But now I have another one: the patch is not listed in the software list. When I change the product name in the new version, I get two entries in the software list but only one can be uninstalled /removed. The second one stays. When I don't change the product name there is no sign that the patch was installed although I checked "Allow patch removal" in the AI project.

What did I do wrong?
Markus
 
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: MSP patch does nothing

Postby Daniel » Tue May 08, 2012 1:38 pm

Hi Markus,

Can you please send us the .AIPs (project files) of the upgraded and target MSI and a verbose log of the patch installation to support at advancedinstaller dot com so we can investigate?

Regards,
Daniel
Daniel Radu
Advanced Installer Team
http://www.advancedinstaller.com/
Daniel
 
Posts: 2006
Joined: Mon Apr 02, 2012 1:11 pm


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

cron