holly
September 29, 2017, 10:51pm
1
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?
jim
October 3, 2017, 3:16am
3
Are you using $dirWSSource for anything else? Why not just put c:\sccmsupport in the XML file?
<Toolkit_LogPath>c:\sccmsupport</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
claudeg8:
Windows\AppsLogs
<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.
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…