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!

yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

"Can not install upgrade" patch error msg

Using Advanced Installer 4.1.2 to try and create a patch to the application. I made full build of a 3.97 version of my application, made some changes, and made full build of 3.98 (both in a form of an exe).

Than, I started a new patch project, set the updated to the 3.97 exe and the target to the 3.98 exe and built the patch. The patch is an msi file.

When I try to run the patch I get an error message:
"The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch"

Any idea where to look or what is going on?

Thanks

-Yishai
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please ensure that you have installed the 3.97 version of your package before running the patch.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

I did

of course I did. It even gets the update from a server by using the auto updater check for updates, but still, does not recognize it & gives me this error message
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please test the patch without the updater. If does not work then i think you miss something when you create the patch. Please take a look on those links:
http://www.advancedinstaller.com/user-g ... tches.html
http://www.advancedinstaller.com/user-g ... patch.html

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Still confused about the product code

Still confused.

For a patch, it says "That is why is recommended to use patches only for minor updates, that do not change the Product Code".

For updates it says "You must allow the generation of the new product code if you want to allow the automated upgrade of older versions of the product".

Now, I have an automated process that build the package, lets say V1. Now, I make some fixes, and generate V 1.1. I want new users to download 1.1, old users who get 1.1 to update their curent versions. And I want to generate a patch between 1.0 to 1.1 for the automatic update.

Seems as if this is impossible as I need a new product code for the new version to work, but I can not have a new product code for the patch to work?

So, what is the best way to handle upgrades/patches. Always upgrade with the full version?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Than, I started a new patch project, set the updated to the 3.97 exe and the target to the 3.98 exe and built the patch.
The problem is that you don't set the upgraded and target images right. When you add "New Upgraded" select the 3.98 version of your package, for "New Target" select the 3.97 version.
For a patch, it says "That is why is recommended to use patches only for minor updates, that do not change the Product Code".

For updates it says "You must allow the generation of the new product code if you want to allow the automated upgrade of older versions of the product".
A patch is the difference between two msi packages and needs the first version in order to be installed. Thats why you must not change the "Product Code" for patches. For automatic upgrade you don't need to have the older version installed and its required to generate a new "Product Code".
I want new users to download 1.1, old users who get 1.1 to update their curent versions. And I want to generate a patch between 1.0 to 1.1 for the automatic update.
Seems as if this is impossible as I need a new product code for the new version to work, but I can not have a new product code for the patch to work?
My suggestion is to use "File->Save As" option after you change the "Product Version" or generate a new "Product Code". In this way you will keep the older version of your package.
So, what is the best way to handle upgrades/patches. Always upgrade with the full version?
If your package is not too big then you can use the automatically upgrade. Else my suggestion is to use patches for minor updates.

Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
swissiws
Posts: 4
Joined: Wed Aug 23, 2006 2:19 pm

Patch installatio fails

Hi,

I am having problems with v4.12 patch installation. made the 'simple project' example as shown in tutoral, installed patch with success. all fine.

now created a new 'professional project' msi, installed, made a patch. now as i followed the same instructed steps to create a patch as above, i get the error message 'another version of this product is already installed....'

what do i do wrong? Thanks for help.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I think you miss something in the patch creation. Are you sure that you have done like this:

Create your first professional project. Add some files in "Files and Folders" page and build it. Use "Save As" option (choose other name for the new project). Increase the version with 1 (from 1.0.0 to 1.0.1) save and choose no when AI ask you to generate a new product code.

Now with those msi you have created build your patch. I recommend you to use the wizard since is more easy to use.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
swissiws
Posts: 4
Joined: Wed Aug 23, 2006 2:19 pm

REG_DWORD value changes after patch upgrade to REG_SZ

V.4.3

Hi All

now having problem with Project Setting search. I do have several Registry keys and values, getting installed with the original msi file and later modified with the program application.

Creating a patch file, i search for the current registry key values, raw value, REG_DWORD and REG_SZ.

After i run the patch, all existing REG_SZ values are taken over correctly. All REG_DWORD values have changed to REG_SZ and have the value # in front. For example if the REG_DWORD value was 1, after patching, the value will be #1 and changed to REG_SZ!!????

Any idea are very appreciated.

Thanks!
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Please see the following post:
http://www.advancedinstaller.com/forums ... =5081#5081

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”