I´m trying to make a custom action to erase a file when an installation is canceled during the installation process. I´ve tried putting it in the rollback part but it doesn´t seem to do nothing.
Any help, please?
The file should be automatically erased in the rollback phase.
If this file is created by your own custom action during the installation, you should schedule your rollback custom action before the custom action you want reverted. Also, you should set your rollback custom action with the "Rollback" execution option in the custom action's properties pane. Please note that a rollback can be triggered only by a custom action scheduled between "InstallInitialize" and "InstallFinalize" standard actions.
sorry I said 'file' when I wanted to refer to an empty folder that it's not erased when the installation is cancelled. I´ve put the custom action in the Installinitialize part and I've realised that, if I stop the installation before the installer is writting the INI files, the folder is erased, but if it starts to write them it doesn´t erase it.
Can you please send us the .AIP (project) file you are using and a verbose installation log to support at advancedinstaller dot com so we can investigate them?
FOLLOW US
Get the latest news in Application Packaging