cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jared_d_simon
Level 2

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!
Labels (1)
0 Kudos
(1) Reply
jared_d_simon
Level 2

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.
0 Kudos