Dear Francesco
The delete at uninstall time is not happening. I wonder if I am doing these in the wrong place or time. I have tried when NATIVE_ENGINE is true and when false.
Code: Select all
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Set Variable NATIVE_ENGINE to TRUE
Move Local Files $MYPROFILES$\Romonet\$TITLE$\resources\*.* to $MYPROFILES$\Romonet\$TITLE$\resources_old\ (include subfolders)
Recursively Delete Files $MYPROFILES$\Romonet\$TITLE$\logging\*.*
Recursively Delete Files $MYPROFILES$\Romonet\$TITLE$\workspace\*.*
Recursively Delete Files $INSTALLDIR$\configuration\*.*
Recursively Delete Files $INSTALLDIR$\p2\*.*
Set Variable NATIVE_ENGINE to FALSE
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
else
<<Code Folding Region>>
I have run this where NATIVE_ENGINE is set to false, after the Move. Neither way works.
BTW, the 'Move' does work (as advised in other append), I see it happen early on in the unistall, as the 'resources' folder was installed, that gets removed, so I am effectively left with a renamed folder.
Regards, John