mandarj123
Posts: 18
Joined: Tue Nov 18, 2014 2:38 pm

advanced installer updating with exe and msi

Hello,
Til today my advanced installer logic of updation was working very well, as I was using only MSI file for installation and updation.
Today I moved to exe with resources outside. and installed software, but during updation, although updates are detected , during updates processing error is thrown "Some of the updates cannot be installed"

For the information, In the update configuration, url and directory, I use MSI setup. Is there any precaution to be taken when using exe and msi together?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: advanced installer updating with exe and msi

Hello,

Please note that you should create a Single EXE setup (resources inside) Package Type, an EXE file with all resources included in it. By the way, is there any reason why you didn't select this option for the package type and you selected instead the EXE setup with resources next to it option as the package type?

Also, in the Update Properties Tab from the Updates Configuration project you should set the url to the .EXE setup file.

Please let me know if the behavior still persist after performing these changes.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mandarj123
Posts: 18
Joined: Tue Nov 18, 2014 2:38 pm

Re: advanced installer updating with exe and msi

Hello Dan,
Thank you for the response.I will try with the option.Can you suggest, In which scenario it is suggested to use "exe with resources next to it" option

Thanks
mandarj123
Posts: 18
Joined: Tue Nov 18, 2014 2:38 pm

Re: advanced installer updating with exe and msi

HI Dan,
Also on your question, about preferring exe with resources next to it.

Here is my scenario.

I have created an exe which also has prerequisites about 100-150 mb. If i create exe with resources inside, then all prerequisite files are inside the exe and the each next update is also of huge size of 150 mb. ideally I would only want my code to be part of the update and not prerequisite files?

Any solution to that?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: advanced installer updating with exe and msi

Hello,
In which scenario it is suggested to use "exe with resources next to it" option
Usually, this option is used when the package size is over 4GB.
I have created an exe which also has prerequisites about 100-150 mb. If i create exe with resources inside, then all prerequisite files are inside the exe and the each next update is also of huge size of 150 mb. ideally I would only want my code to be part of the update and not prerequisite files?
In this case, you can add the prerequisites from an online location using the [ New URL Prerequisite ] toolbar button from the Prerequisites page.
So, the prerequisites will only be downloaded if they need to be installed, based on their Install Conditions.

Please keep in mind that this type of prerequisite is created with default settings, so you need to configure it manually. The best way to see what install conditions you should use is to install the prerequisites on a clean machine and see what changes take place.

Usually the easiest way is to see changes that affect the registry hive, HKCU or HKLM. You can also see if certain files are installed on the machine, for example a specific DLL file or EXE and search for them in the Install Conditions tab, Searches group.

EDIT:
There is another solution.
Duplicate your build from the Media page. This will create a new build with exactly the same settings and content. Content means: prerequisites, features, searches, launch conditions.
Then, you can chose to remove the feature from some builds. In the Builds section from the Feature properties you can specify the exact builds that will contain that feature.
Please take a look on the Multiple Build Configurations article which will guide you in creating a project with multiple build configurations.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”