Return values and custom actions - 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!

st279
Posts: 19
Joined: Mon Jul 10, 2006 11:21 am

Return values and custom actions

Hi

I have two related problems that I hope you can help with:

1. I need to be able to run an exe that is installed (or attached) to my installation early in the install process to determine whether the install can continue or not. I need to be able to check the return value of this .exe and if the return value of this exe is non-zero I need to put up an informative custom error message to the user explaining why the install failed, then terminate installation cleanly.

2. The exe I need to run is dynamically linked and uses the Visual C++ 8.0 runtime dlls that I have included as merge modules in my installer. From looking at the log file of my install, it looks like the dlls are not installed on the system until the InstallFinalize part of the install, therefore the exe will non be able to run until after these have been installed and this part of installation is too late for me to run the exe as I need to run it pretty much at the start of installation.

Have you got any suggestions as to how I can solve these problems?

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

Hi,

You can create a separate msi with those merge modules and use it as prerequisite for your main package. Now in you main package you can schedule your exe as custom action and check the return code.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”