I need to delete a sqlite database file folder. I have written a custom action to delete this folder after InstallFinalize
. If I run my MSI from command prompt with administrator privilege, it is deleting that folder. Otherwise the sqlite database folder is not removed.
I have added the property tag in Product.wxs file,
<Property Id="MSIUSEREALADMINDETECTION" Value="1" />
I have added InstallPrivileges="elevated"
also.Nothing worked for me. The windows user I logged in has administrator privilege. Delete folder works if the msi is run as administrator via command prompt. I need to open the installer as administrator.