It sounds like, based on some condition within the source installation, you
want to uninstall after begining the install, via a custom action. To be
honest, I have never had need to do this intentionally. I have had occasion
where this occurs via an error being thrown in my custom action. Therefor, I
would recommend throwing an exception from your custom action code, such as
New Exception("You have a stolen source disk"). This install should then
"fail" more or less gracefully.
"vi***********@gmail.com" wrote:
Thanks that actually worked.
To confirm I want to ask I have to check some conditions from
SourceDir and if it fails then I have to rollback the installation.
However it looks like I have to write a program to delete the files
from TARGETDIR as it does not get deleted automatically.
Please confirm.