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.
I had this same issue with Show-InstallationPrompt creating a 2nd log file. When the -nowait parameter is used, the AppDeployToolkitMain.ps1 script is called ‘asynchronously.’ Because my config XML file had this line: “<Toolkit_LogPath>$envWinDir\options\logs$AppVendor $AppName $AppVersion</Toolkit_LogPath>” using variables with values set in Deploy-Application.PS1, AppDeployToolkitMain.ps1 did not evaluate the following line to include the variables. “[String]$configToolkitLogDir = $Executio…