Patching/Upgrading Java program - Advanced Installer Community

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!

BadgerB
Posts: 4
Joined: Mon Jun 29, 2009 11:17 pm

Patching/Upgrading Java program

Hello,

I'm attempting to create a patch file for a Java program. The question I have is there doesn't seem to be a way to tell the patch which files have changed, so how does it know what jar files to include? It doesn't appear to be doing anything when I upgrade at this point.

Thanks
Bob
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patching/Upgrading Java program

Hi Bob,

The patch mechanism is simple. You must create two projects( target and upgraded ) and after that a patch project referencing the two builds. The result .MSP will contain the system modifications from one version to its upgrade.

Please follow this link to our tutorial which demonstrates the basics on how to author a patch using Advanced Installer.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BadgerB
Posts: 4
Joined: Mon Jun 29, 2009 11:17 pm

Re: Patching/Upgrading Java program

That's what I was afraid of,

I did exactly that and the msp generated did not update any of my jars, or any of the files in the system.

I cannot upload the msp file it keeps telling me the extension is not allowed even if I change the filename extension it says upl is not allowed or mspUPLOAD is not allowed etc.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patching/Upgrading Java program

Hi,
I did exactly that and the msp generated did not update any of my jars, or any of the files in the system.
This can happen if you changed the product code or if your broke any of the patch rules. To get past this please consult this article from our user guide.
I cannot upload the msp file it keeps telling me the extension is not allowed even if I change the filename extension it says upl is not allowed or mspUPLOAD is not allowed etc.
If you are referring to your domain server, please note that some domain server accounts( especially free ones ) do not support all file extension types. With IIS server you will also have to add the extension to its MIME configuration.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BadgerB
Posts: 4
Joined: Mon Jun 29, 2009 11:17 pm

Re: Patching/Upgrading Java program

Hi,

I looked at the article, and I don't see anything different. The MSIs are fairly straight forward Java program installation.

Do not change the primary keys in the File table between the original and new MSI file versions.
- I don't think I have access to doing this in your product.
Do not move files from one folder to another.
- The files that are being packaged are technically in different folders since it's a new version and we branch our code and keep the directories separated, but the target location isn't different.
Do not move files from one cabinet to another.
- Didn't do anything here.
Do not change the order of files in a cabinet.
- I don't think we can do this in Advanced installer.
Do not change the Component GUID for any Component.
- This is a java program so I don't think there are Components (dlls for example)
Do not change the name of the Component's key file because this would require changing the Component GUID.
- I don't think this is happening, we are not directly manipulating the Features or components.
Do not reorganize the existing hierarchy of Features and Components. A new Feature can be added, but if a parent Feature is removed, all its child Features must be also removed.
- I don't think this is happening, we are not directly manipulating the Features.
Do not remove Components from a Feature.
- I don't think this is happening, we are not directly manipulating the Features. There is a change in one jar file. and 2 new jar files are added.
The Target and Upgraded MSI packages must have the same name.
- Pretty sure this is true. Our product name is the same and if I try to run the msp when the wrong starting version is installed it identifies it properly and says I can't patch the installed version.
The Target and Upgraded MSI packages must have the same Product Code.
- Pretty sure this is true. Our product name is the same and if I try to run the msp when the wrong starting version is installed it identifies it properly and says I can't patch the installed version.

What I meant by the upload comment was I tried to upload the msp as an attachment to my post and got those errors from your site :). Sorry for the confusion.

Thanks
Bob
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patching/Upgrading Java program

Hello,

You should make sure everything is in place. If everything proves correct please send the .AIPs (projects) and a verbose log of the patch installation to support at advancedinstaller dot com so we can help you investigate.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”