How do I change the location of a directory during installation?
Place a Set Directory action after InstallValidate in Execute Immediate section of the MSI Script.
Custom Action Name: <Your Preference>
Directory: <Browse to directory that you are changing the value for>
Directory Value: <New path for the directory include directory name>
If the directory does not appear in the Directory browse dialog, you should go to Setup Editor > Tables >Directory. Find the Directory name for the DefaultDir value you are changing the directory location for. The Directory value for that entry needs to be in all caps. Type this value into the Directory field.