Custom variable for log location resolving for PSADT logs but not MSI logs

I added this custom variable to AppDeployToolkitExtensions.ps1:
[string]$dirWSSource = ‘c:\sccmsupport’

Then I changed the log locations in AppDeployToolkitConfig.xml:
<Toolkit_LogPath>$dirWSSource\PSADTLogs</Toolkit_LogPath>
<MSI_LogPath>$dirWSSource\PSADTLogs</MSI_LogPath>

It’s working perfectly for the PSADT logs. I know this, because there is a log where I expect it to be. But it’s passing through incorrectly to the MSI Log:

<![LOG[[Installation] :: Executing [C:\WINDOWS\system32\msiexec.exe /i "L:\Windows10Deploy\AppSource-Executing [C:\WINDOWS\system32\msiexec.exe /i “L:\Windows10Deploy\AppSource-PSDeploy\AdobeFlashPlayer\Files\install_flash_player_27_active_x.msi” TRANSFORMS=“L:\Windows10Deploy\AppSource-PSDeploy\AdobeFlashPlayer\Files\install_flash_player_27_active_x.mst” TRANSFORMSSECURE=1 REBOOT=ReallySuppress /QB-! /L*v “\PSADTLog\install_flash_player_27_active_x_Install.log”]

Note the bad log path: "\PSADTLog\

Any suggestions for getting this to pass through correctly?

HI,

Did you configure the XML correctly?

Are you using $dirWSSource for anything else? Why not just put c:\sccmsupport in the XML file?

<Toolkit_LogPath>c:\sccmsupport&lt;/Toolkit_LogPath>
<MSI_LogPath>c:\sccmsupport</MSI_LogPath>

Hello,
on this subject, which variables shall i use to name the logs folder with the vendor, Application and version name?

<Toolkit_LogPath>$envSystemDrive\Windows\AppsLogs\$FolderName</Toolkit_LogPath>

Any help would be greately appreciated.

cf

<Toolkit_LogPath>$envSystemDrive\Windows\AppsLogs\${appVendor} ${appName} ${appVersion} ${appArch}</Toolkit_LogPath>

CHW1979, whoever you are. Thank you so much! It works like a charm!

When I used variables with values set in Deploy-Application.ps1 in the <Toolkit_LogPath> XML node, I encountered the same problem discussed in this other thread.