My application installs one or more of our other applications as prerequisites. At uninstall time we want to remove these other prerequisite installs as well.
I followed the instructions from the user guide here: https://www.advancedinstaller.com/user- ... l-msi.html
This works fine if I only need to uninstall one other msi, but in my case I may have more than one. Adding multiple custom actions for each msi to be uninstalled results in only one app being uninstalled. I understand this doesn't work because there are collisions when trying to run more than one uninstaller at the same time.
How do I wait for one uninstall Custom Action to finish before the next one starts? I tried using a PowerShell script to make multiple calls but that still doesn't wait for one to finish before calling the next one. I even tried putting a Sleep call in between like below:
Code: Select all
$cloudProductCode = (AI_GetMsiProperty GSI_CLOUD_UPLOAD_PRODUCT_CODE)
$isProductCode = (AI_GetMsiProperty SEARCH_I_S_PRODUCT_CODE)
$process = Start-Process -FilePath msiexec.exe -ArgumentList "/X $isProductCode /passive"
Start-Sleep -seconds 5
$process = Start-Process -FilePath msiexec.exe -ArgumentList "/X $cloudProductCode /passive"
Thanks,
Peter
FOLLOW US
Get the latest news in Application Packaging