Reputation: 21
I want to move the directory tree "C:\ProgramData\a" with an MSI setup to the new location "C:\ProgramData\b". Is this possible standard MSI actions?
I am using the Windows Installer Xml (WiX) toolset (https://wixtoolset.org/docs/v3/main/) to build the setup.
MSI action MoveFiles (https://learn.microsoft.com/en-us/windows/win32/msi/movefiles-action) can be used to move files but it does not move a complete directory tree (with sub folders).
The required functionality is provided by the Windows API function MoveFileExW (https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-movefileexw). I could use it in a custom action, but I prefer to use standard MSI actions so that error handling (e.g. rollback after errors) is included.
Upvotes: 1
Views: 52