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!

mike.mcgraw
Posts: 3
Joined: Tue Jul 03, 2007 7:03 pm

Creating patches for exe installers

Hello, I have been using AI for months now, and have been having a lot of problems getting patches to work consistently.

I have an Enterprise project. My installer needs to be an exe (with bundled jre) that leaves the msi in the AppData folder on the user's machine, so the future patches will work.

I'd appreciate it greatly if you could answer these questions:


1. When creating my initial installer exe, what settings do I need in the Builds page, MSI, and Bootstrapper tabs?

2. When creating msi's for my updates (patches), what settings do I use in those same tabs?

The various combinations of checkboxes and radio buttons in both msi's are confounding me. It is not an intuitive process at all. In one post, I read that you need to run the original installer exe with an /extract option in order to extract the msi from the exe, to allow you to run off a patch, but the post didn't really explain where to go from there. Any help would be much appreciated! Thank you in advance,


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

Hi Mike,
1. When creating my initial installer exe, what settings do I need in the Builds page, MSI, and Bootstrapper tabs?

2. When creating msi's for my updates (patches), what settings do I use in those same tabs?
All settings in "Builds" page works with patch creation. The only requirement is to have the "Do not delete extracted MSI..." option set in case you package all files in the EXE.
In one post, I read that you need to run the original installer exe with an /extract option in order to extract the msi from the exe, to allow you to run off a patch, but the post didn't really explain where to go from there.
This applies in case you package all files in the EXE. In order to create a patch you need the MSI for both images. In order to extract the MSI from the EXE you can use following command line: package.exe /extract. The files will be extracted in the same folder with the EXE.

In order to create a patches use the "File->Save As" main menu option to create the upgrade image, increase the "Product Version" and answer no when AI ask you to generate a new "Product Code".

Also you must respect all the patch creation rules listed here:
http://www.advancedinstaller.com/user-g ... tches.html

If you still encounter problems please give me ore details.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mike.mcgraw
Posts: 3
Joined: Tue Jul 03, 2007 7:03 pm

Hi Gheorghe,
gigi wrote:All settings in "Builds" page works with patch creation. The only requirement is to have the "Do not delete extracted MSI..." option set in case you package all files in the EXE.
The only reason I feel I need to package the files as an exe is that I need to force the msi's to remain on the user's machine after installation. When I create packages as msi's, my clients download them (usually to their default download folder, like 'MyReceived Files' or something) and then typically delete them hours or days later. When I release a patch msp, these clients then get error messages when downloading those, along the lines of, "the network resource is no longer available" or some such thing, presumably because they no longer have the msi files on their machine.

Can you tell me, is there any way to specify in an msi installer (i.e. no bootstrapper) that you want the msi saved somewhere (like the App Data folder) after installation? If the answer is no, then it would seem to me the only useful way to package an installer that will likely be patched later, and be relatively sure the original msi's will still be on the user's machine, is to do it in a bootstrapper. Am I wrong about this?

I have another question: Is there anything in particular I have to do differently to patch an enterprise project that bundles the jre? It seems if I leave the jre bundled in the second (patch) image, when it comes to creating the msp, I get reams of warnings as the patch tool seemingly attempts to patch all the files in the jre folder. If I leave the jre OUT of the second image, the patch tool complains that I've removed the jre feature from the second image. What is the proper approach to creating a patch when the first image was the bundled jre?

Thanks very much,

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

Hi Mike,
Can you tell me, is there any way to specify in an msi installer (i.e. no bootstrapper) that you want the msi saved somewhere (like the App Data folder) after installation?
You can save the MSI file after installation by using a custom action (the location from where the MSI runs is given by the SourceDir property). But even if you save the MSI file in other location, Windows Installer always searchs for the original MSI in the location from where it was installed. So the process will not be automated because in case Windows Installer fails to detect the original MSI will prompt the user to select it.

Regarding the second question, to create the upgrade image use the "File->Save As" main menu option and do not delete and re-add the bundled JRE. Because in this case new components are created which breaks the patch creation rules:
http://www.advancedinstaller.com/user-g ... tches.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mike.mcgraw
Posts: 3
Joined: Tue Jul 03, 2007 7:03 pm

gigi wrote: Regarding the second question, to create the upgrade image use the "File->Save As" main menu option and do not delete and re-add the bundled JRE. Because in this case new components are created which breaks the patch creation rules:
http://www.advancedinstaller.com/user-g ... tches.html


Gheorghe, thanks very much for this info- much appreciated!
Mike

Return to “Common Problems”