Hello there,
I know that nested installations are not recommended, but in this project we need to ensure that a particular configuration has been chosen in the parent installer. So, if the user is installing a "Complete" installation, we'll launch a child installer.
The child installer is an exe because it itself has prerequisites such as the .NET 2.0 Framework.
So, I have no problem launching the child installer (Custom Action in InstallFinalize, Asynchronous, don't wait for return). Launched by calling an EXE with working dir, with [#childInstaller.exe].
The problem I'm getting is on uninstall, I want to remove the child installation if a complete installation is currently installed, and it's now being uninstalled (conditions: "REMOVE="ALL" AND COMPLETE_INSTALLED).
So, I have a "Search" which finds a registry key that only exists on Standalone installations. However, because my child installer is set to basic user interface, launching the exe again won't work. So, I tried to use "MsiExec.exe /X{143C93BE-DC76-4D13-80E7-D7CF6D33DB85} /qn" but that gives me an error. Using "MsiExec.exe /X[#childInstaller.exe] /qn" won't work either because I don't expect the temporary file to survive until the time of uninstall.
Help!
FOLLOW US
Get the latest news in Application Packaging