How can I rename a folder?
Posted: Thu Aug 29, 2013 4:38 am
I want to preserve a folder during uninstallation. There doesn't appear to be a 'rename' command, but in a Unix-like way, it looks as though the 'Move Local Files' would have the same effect:
This didn't work - the folder was deleted! So I tried using the debugger to see what was happening.
In order to get the uninstall code to run, I had to set 'REMOVE' to TRUE. NATIVE_ENGINE is also TRUE.
What I saw happening was:
The 'resources' folder was copied to 'resources_old' when the statement was executed. However, when the " Apply Uninstall" statement was run, both folders disappeared.
Is this a bug (IA 16) - I think only the 'resources' folder should have been deleted? If not, how should I do a rename of a folder?
Regards, John
Code: Select all
Move Local Files $MYPROFILES$\Romonet\$TITLE$\resources\*.* to $MYPROFILES$\Romonet\$TITLE$\resources_old\ (include subfolders)
This didn't work - the folder was deleted! So I tried using the debugger to see what was happening.
In order to get the uninstall code to run, I had to set 'REMOVE' to TRUE. NATIVE_ENGINE is also TRUE.
What I saw happening was:
The 'resources' folder was copied to 'resources_old' when the statement was executed. However, when the " Apply Uninstall" statement was run, both folders disappeared.
Is this a bug (IA 16) - I think only the 'resources' folder should have been deleted? If not, how should I do a rename of a folder?
Regards, John