This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Delete files/folders
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎May 21, 2012
01:40 AM
Delete all folders which is newly created by user
Hi,
I am new to Installanywhere.
Is there any way to delete the folder/files, which is created after installation?
Thanks in advance.
I am new to Installanywhere.
Is there any way to delete the folder/files, which is created after installation?
Thanks in advance.
(9) Replies
‎May 21, 2012
04:44 AM
The installer cannot know what is not done by itself, so you can't.
If those files/folders are created under the installation directory, you can still add command in the uninstallation phase that will recursively delete everything.
Also in folders creation (install phase), there is a checkbox "Recursively delete..." that you may check.
--Jerome
If those files/folders are created under the installation directory, you can still add command in the uninstallation phase that will recursively delete everything.
Also in folders creation (install phase), there is a checkbox "Recursively delete..." that you may check.
--Jerome
‎May 21, 2012
05:42 AM
hai12345 wrote:
hi jerome_IA,
thanks.
where i can get "Recursively delete". it is under Install or pre- install in UI.
please can you specify it.
In the install phase, in the create folder action, there are 4 checkboxes, one is the recursive delete.
--Jerome
‎May 21, 2012
07:29 AM
hai12345 wrote:
thanks,
yes. i can able to delete new folder like uninstall, other folder.
How i can delete home directory itself, even user add any new files/folder.
You will have to create custom script or run custom code action that will delete those files/folders. e.g.
--Jerome
‎May 22, 2012
06:12 AM
hai12345 wrote:
Hi Jerome,
Thanks.
I have added "rm -rf $USER_INSTALL_DIR$" command in Post-Uninstall. It is deleting all files/folders.
Is it will affect any other functionality?
--
Mahendran
Not until $USER_INSTALL_DIR$ is equal to "/" 😉
‎May 23, 2012
02:22 AM
hai12345 wrote:
Hi,
I have one more doubt, I have tested this in windows.
is same command will works for all platform? if not what change i have to do?
Of course it cannot work, each platform should have its specific command.
InstallAnywhere will execute the command exactly like you entered it!
Use platform rule in you action so that linux commands are not executed on windows & vice et versa.