View Full Version : Can I rename a directory in Installshield?

04-24-2006, 07:10 PM
I would like to rename a specific directory if it already exists on the users hard drive. Can I do this? The directory happens to be the directory I am using as my InstallDir. So, I need this rename to take place before I install any files.

I was thinking I could use a VB Script, but don't I have to install the script before I can run it? If so, then I won't be able to do this.

Any help is appreciated.


04-25-2006, 01:22 AM
If my memory serves, FileSystemObject object becomes available in Windows Scripting Host 5.0, which comes with IE 5.0. If your users have IE 5.0 or newer, your VBScript custom action would be able to rename folders.