Hi,

We use the following code to uninstall any other version of our product which is on the system :

! Remove any previous installation silently.
Set Variable %_SB_INSTALLDIR% to FUNCTIONetect Previous Version("{5F62ECB0-443D-11DD-6784-0002EE1F18BE}")
If %_SB_ERRORCODE% Does Not Equal "0" Then
/* Display Message Box "The installer has detected a previous version of t..." -- "Previous version detected." */
Run Program %_SB_INSTALLDIR%\Uninst_[PRODUCTNAME].exe /U "[UNINSTALL_LOG]" /S (Always Install) [Wait]
If %_SB_ERRORCODE% Does Not Equal "0" Then
Display Message Box "Failed to uninstall previous version." -- "Failed to uninstall previous version."
Exit Installation(1)
End
End


The issue we have is that if any of the files are locked the user is asked if they would like to reboot at the end of the uninstall. The issue with this is that if the user chooses to reboot it occurs immediately and on reboot they are left without any installation at all.

What I need to happen is that the user isn't told that they need to reboot until install phase is complete. Is this possible?

Thanks,

Mike Doris