Hi, just wondering if there ia an msi table to rename a folder. Like MoveFile table.

Thank you.

Answer Summary:
Follow the below steps
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

You can do it using MoveFile table also,

Answered 07/03/2012 by: jagadeish
Red Belt

Please log in to comment

Answers

0

not sure of what you are trying to accomplish need more detail.  To rename a folder in windows the command is:

"rename c:\afolder\foldertorename renamedfolder"

Answered 07/03/2012 by: SMal.tmcc
Red Belt

Please log in to comment
0

You can also write vbscript like this and use it in custom action

Option Explicit

Dim objShell
Dim objFSO
Dim AllUsersProfile

Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

AllUsersProfile = objShell.ExpandEnvironmentStrings("%AllUsersProfile%")


If objFSO.FolderExists(AllUsersProfile & "\My OldFolder") Then
    objFSO.MoveFolder AllUsersProfile & "\My OldFolder" , AllUsersProfile & "\My NewFolder"
End If


Set objFSO = Nothing
Set objShell = Nothing

 

 

Answered 07/03/2012 by: jagadeish
Red Belt

Please log in to comment
0

Run a custom action to rename the folder.

Answered 07/05/2012 by: piyushnasa
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity