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!

chrisbl
Posts: 1
Joined: Fri Jan 09, 2015 10:31 pm

SendCollectedData After Silent Install Complete

Hi,

Is there a way to send data to a server after installation is complete with a silent installer? For Full UI, it works fine since I attach the Event to the Finish button. But, for silent, my data is sent before my prerequisites are installed. I would like to know the return code from my prerequisites.

Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: SendCollectedData After Silent Install Complete

Hello and welcome to Advanced Installer forums,

This is happening because the Feature-based prerequisites are launched after the main installation when your main installation is launched silently to install.

For the Feature-based prerequisites we cannot install them before the main installation package (the way they are installed when the main installer is launched with UI), so you can have the same installation order no matter how you perform the installation(silent or with Full UI) due to Windows Installer limitation.

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.
If you want to get the return code from the prerequisites, then you canadded 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.

In the EXE setup file article you can see the command lines supported by our bootstrapper.

If you have other questions, please let us know.

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

Return to “Building Installers”