Pre-Install prerequisites - Advanced Installer Community
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Pre-Install prerequisites

Hello,

I am building a silent setup package which includes prerequisites.
I want my prerequisites should install before the main installation and install/ uninstall in silent mode..
For this I have added prerequisites in 'Pre-install', but it does not contain option for 'Maintenance Command Line'
When we add prerequisite in the Feature-based section, during silent installation the prerequisite will be installed at the end of main installation.
How to solve this problem?

regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Pre-Install prerequisites

Hi Swati,

Let me explain you how we support the “Feature based” prerequisite:
Full UI installation package:
  • -We have a synchronous custom action in the “Install UI sequence” . This is required because you cannot have two .msi packages running in install UI sequence.
Silent installation package:
  • -We have an .EXE custom action, asynchronous execution which is launched after the install execute state from the main package ends. We do this because for silent installation there is no UI sequence, so we cannot schedule a custom action to be executed before install execute sequence starts.
Since you need to install the prerequisite before the main installation package then you can added them as “Pre-Install”. The Pre-Install prerequisite are handled by bootstrapper in separate process. After the prerequisite finish installation then the .msi package is launched by the bootstrapper.

You can try to remove the Pre-Install prerequisites through a custom action from the main installation package when the main installation package is uninstalled. You need to set this custom action after the Finish Execution stage and disable the Wait for custom action to finish before proceeding and Wait for return code at the end of the sequence options from the custom actions properties. The custom action that will trigger the prerequisite uninstall will only run on Uninstall.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Pre-Install prerequisites

Hello Dan
You can try to remove the Pre-Install prerequisites through a custom action from the main installation package when the main installation package is uninstalled. You need to set this custom action after the Finish Execution stage and disable the Wait for custom action to finish before proceeding and Wait for return code at the end of the sequence options from the custom actions properties. The custom action that will trigger the prerequisite uninstall will only run on Uninstall.
I tried for the above option. But now my main application does not uninstall prerequisites.
How to achieve the sequence of silent installation(i.e. install prerequisites before the main installation)?
How to uninstall Main application and prerequisites in silent mode?

regards
Swati
Attachments
Custom Action.png
Custom Action.png (92.94 KiB) Viewed 6432 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Pre-Install prerequisites

Hi Swati,
How to achieve the sequence of silent installation(i.e. install prerequisites before the main installation)?
This can only be done if the prerequisites are of Pre-Install prerequisites.
How to uninstall Main application and prerequisites in silent mode?
For Pre-Install prerequisites we do not have any predefined support to uninstall the prerequisites when the main installation is uninstalled.

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Pre-Install prerequisites

Hello Dan,

What about Chained packages?
Can I use chained packages for prerequisites to achieve this?

regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Pre-Install prerequisites

Hi Swati,

Of course you can use the Chained packages support. However, note that only MSIs packages can be added as chained packages.

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

Return to “Common Problems”