/build/static/layout/Breadcrumb_cap_w.png

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
Posted by: jagadeish 11 years ago
Red Belt
2

You can do it using MoveFile table also,

Posted by: SMal.tmcc 11 years ago
Red Belt
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"

Posted by: jagadeish 11 years ago
Red Belt
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

 

 

Posted by: piyushnasa 11 years ago
Red Belt
0

Run a custom action to rename the folder.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ