WaitUntilEnd not working

Hi,

I am running a Custom Action to check to see if a folder exists, if it does run the uninstaller and WaitUntilEnd is checked. But it is being ignored and the package continues to run over the top of the uninstaller dialog box.

Capture

<?xml version="1.0" encoding="utf-8"?> <pbgroup><action GUID="HMJJL"><type>TFileExistsInfo</type><desc>Check if folder &quot;%MYDOCDIR%\%APPTITLE%&quot; exists and store result into &quot;%APPFOLDEREXISTS%&quot;</desc><imgn>99</imgn><prop><ReturnVariable>%APPFOLDEREXISTS%</ReturnVariable><FileName>%MYDOCDIR%\%APPTITLE%</FileName><CheckFolder>True</CheckFolder></prop></action><action GUID="62PL7"><type>TCheckValInfo</type><desc>If %APPFOLDEREXISTS% = 1 then</desc><imgn>87</imgn><prop><Variable1>%APPFOLDEREXISTS%</Variable1><Variable2>1</Variable2><Operator>Equals</Operator></prop></action><action GUID="PKSOC"><type>TShowMessageInfo</type><desc>Display the message &quot;A previous version of %APPTITLE% is already installed. This will now be uninstalled.&quot;</desc><imgn>32</imgn><prop><MessageType>psIconInformation</MessageType><MessageBtn>pbOK</MessageBtn><Caption>%APPTITLE%</Caption><Text>A previous version of %APPTITLE% is already installed. This will now be uninstalled.</Text></prop></action><action GUID="TPQHB"><type>TExecAppInfo</type><desc>Execute the program &quot;%MYDOCDIR%\%APPTITLE%\Uninst.exe&quot; and wait until its end.</desc><imgn>48</imgn><prop><Filename>%MYDOCDIR%\%APPTITLE%\Uninst.exe</Filename><WaitUntilEnd>True</WaitUntilEnd><HideProgram>False</HideProgram></prop></action><action GUID="SS3A8"><type>TEndValInfo</type><desc>End If</desc><imgn>87</imgn><prop/></action></pbgroup>

Why is this being ignored?

Thanks

Is it an uninstaller made with Paquet Builder?

Hi,

Yes it is an installer created with Paquet Builder.
The uninstaller starts to run but then the package carries on to install and the uninstall window is then hidden by the installer window.

The uninstaller starts a temporary copy of it and immediately exits. That’s why the WaitUntilEnd will not work here. You could for instance make the package wait for the uninstaller (run silently with the /s command line switch). Here is the idea:
image