Hi,
You can use a custom action under "Uninstall" which shows a message box for this. Here is an example:
Code: Select all
dim ans, question
question="Do you want to remove the database?"
ans=MsgBox(question,vbYesNo+vbQuestion, "Question")
if ans=vbYes then
'here you can place the code that will uninstall the database'
MsgBox "Database will be deleted"
else
MsgBox "Database will not be deleted"
end if
You can modify this custom action in order to execute the uninstall of the database when the "Yes" button is pressed.
Note that if you have a custom action which backs up and uninstalls the database you can set in the above custom action a property which will be used to condition it. In this case the above custom action will be set to "Immediate".
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging