How to rename a folder using msi table?
Hi, just wondering if there ia an msi table to rename a folder. Like MoveFile table.
Thank you.
0 Comments
[ + ] Show comments
Answers (4)
Answer Summary:
Follow the below steps
Follow the below steps
Please log in to answer
Posted by:
SMal.tmcc
12 years ago
Posted by:
jagadeish
12 years ago
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