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
- :
- Inconsistent Installer ability to rename a folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Mar 21, 2013
02:03 PM
Inconsistent Installer ability to rename a folder
I am having the installer execute a command line action in the pre-install and post-install sections to rename the User Install Direcoty folder using the REN command. I run the installer on my Windows 7 64 bit machine and sometimes this rename can be performed, and sometimes it can not be. The error message received when it can not be performed is simply "access is denied".
Some notes:
This behavior applies not only to $USER_INSTALL_DIR$, but also to any file on my machine.
The installer was build on a different server. I copy the installer to the Desktop on my machine and run it from there to modify files in the Desktop folder.
Any insights and help would be greatly appreciated! Thanks!
Some notes:
This behavior applies not only to $USER_INSTALL_DIR$, but also to any file on my machine.
The installer was build on a different server. I copy the installer to the Desktop on my machine and run it from there to modify files in the Desktop folder.
Any insights and help would be greatly appreciated! Thanks!
- Tags:
- rename file
(1) Reply
Apr 02, 2013
11:31 AM
This was caused by me not closing a filestream in some custom code. When it worked, java's garbage collector probably managed to close it for me. When it didn't work, java's gc probably didn't close it. It appears to be unpredictable.