Sets the location where temporary imaging files are to be stored.
BOOL WIMSetTemporaryPath( HANDLE hWim, PWSTR pszPath );
[in] A handle to a .wim file returned by the WIMCreateFile function.
[in] A pointer to a null-terminated string, indicating the path where temporary image (.wim) files are to be stored during capture or application. This is the directory where the image is captured or applied.
If the function succeeds, then the return value is nonzero.
If the function fails, then the return value is zero. To obtain extended error information, call GetLastError.