AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Patch problem

I have created an installation project with version 1.0
Then I have updated some data files and upgraded the version to 1.1

Then I created a patch project with upgraded package v1.0 and destination package v1.1

when I install the patch after installing v1.0 it gives me an error says "This patch package could not be opened , ....."

Hint the difference in size between v1.0 package and v1.1 is about 100 MB, However the size of the patch file is about 5 MB
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch problem

Hello,
Hint the difference in size between v1.0 package and v1.1 is about 100 MB, However the size of the patch file is about 5 MB
That seems like a very big difference for a patch upgrade but it also indicates a mistake in the patch creation process. As mentioned in the article, the recommended way is a major upgrade.

Also, the patch implementation process is very delicate. Did you follow our Patch tutorial regarding this?
If the steps you took are similar, please keep in mind the patch rules as well.

If you can't find anything obvious, please send us a zipped archive with your consecutive versions project files (.AIP) and the patch project file to support at advancedinstaller dot com so we can maybe spot the mistake.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Patch problem

I have checked the tutorial and the found that I have placed the "updated package" in the "target package" place and the "target package: in the "updated package" place,

When I put them in their correct places the patch file size was about 80 MB, but however it gives me the same error.

Hints :
1- this error is produced on windows XP when I try to make the same scenario on windows 7 it gives me another error "Source file not found: C:\Users\...\disk1.cab. verify that the file exist and that you can access it." with "Retry" & "Cancel" buttons.

2- original Installation (v1.0) always gives me an error it the start of the progress "Not able to retrieve sourceDir ,...", However it continue installation and end it successfully.

Thanks in advance.
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Patch problem

It worked on windows 7 :D , the problem may be was that I was installing from the EXE installer then patch.
When I firstly installed from the MSI installer then run the patch it worked correctly, However it still doesn't work on XP and gives the same error that the package may be corrupted.

Also the installing error I mentioned before ("Not able to retrieve SourceDir property") is still happening on windows 7 & XP.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch problem

Hello,
When I put them in their correct places the patch file size was about 80 MB
How big are your target and upgraded packages? 80 MB seems very much for a patch and I still incline you should go with a major upgrade. BTW, a major upgrade gives you less headache than a patch. We don't recommend using patches unless you really need to.
the problem may be was that I was installing from the EXE installer then patch. When I firstly installed from the MSI installer then run the patch it worked correctly, However it still doesn't work on XP and gives the same error that the package may be corrupted.
Please keep in mind that when applied, the patch will request the original MSI package (because, by default, the bootstrapper deletes the extracted files). In order to avoid this problem, select the option "Do not delete extracted MSI and CAB files" in the Media page, "Bootstrapper" tab.
Also the installing error I mentioned before ("Not able to retrieve SourceDir property") is still happening on windows 7 & XP.
Can you please give us the exact error message (maybe attach a screenshot) and send us the project file (.AIP) and a verbose log to support at advancedinstaller dot com so we can investigate?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Patch problem

Thanks for your help.
the patch worked also on XP but with service pack 3 installed, so it was my fault :oops:

About the error of the sourceDir property it was an error caused by the serial DLL I developed, so it was also my fault :oops: :oops:

Thanks again for your help and sorry for wasting your time.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch problem

No worries, we're here to help :mrgreen:

Let us know if you have any other doubts or questions :)

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”