I edited the AppDeployToolkitConfig.xml changing the default log file directory entries from
<Toolkit_LogPath>$envWinDir\Logs\Software</Toolkit_LogPath>
<MSI_LogPath>$envWinDir\Logs\Software</MSI_LogPath>
To the following in an effort to isolate installations into a sub-directory using a variable defined in the Deploy-Application.ps1
<Toolkit_LogPath>$envWinDir\Logs\Software\$pkgId</Toolkit_LogPath>
<MSI_LogPath>$envWinDir\Logs\Software\$pkgId</MSI_LogPath>
The Deploy-Application.ps1 writes both install and uninstall logs to the $pkgId; however, the AppDeployToolkitMain.ps1 simply refuses to conform it consistently writes PS_AppDeployToolkitMain_3.1.4_EN_01_PSAppDeployToolkit_.log to $envWinDir\Logs\Software directory despite my best efforts.
The log file consists of the following
[20-06-2014 23:01:11] [Asynchronous] App Deploy Toolkit Main called with switch ShowInstallationPrompt
[20-06-2014 23:01:11] [Asynchronous] Displaying custom installation prompt with the non-default parameters: [(Message=The uninstallation of Wireshark 1.10.8 complete.) (ButtonRightText=Ok) (Icon=Information)]...
I understand why the log file was generated, but I don't understand why I am unable to force it to write to $envWinDir\Logs\Software\$pkgId. Any words of wisdom would be greatly appreciated.
<Toolkit_LogPath>$envWinDir\Logs\Software</Toolkit_LogPath>
<MSI_LogPath>$envWinDir\Logs\Software</MSI_LogPath>
To the following in an effort to isolate installations into a sub-directory using a variable defined in the Deploy-Application.ps1
<Toolkit_LogPath>$envWinDir\Logs\Software\$pkgId</Toolkit_LogPath>
<MSI_LogPath>$envWinDir\Logs\Software\$pkgId</MSI_LogPath>
The Deploy-Application.ps1 writes both install and uninstall logs to the $pkgId; however, the AppDeployToolkitMain.ps1 simply refuses to conform it consistently writes PS_AppDeployToolkitMain_3.1.4_EN_01_PSAppDeployToolkit_.log to $envWinDir\Logs\Software directory despite my best efforts.
The log file consists of the following
[20-06-2014 23:01:11] [Asynchronous] App Deploy Toolkit Main called with switch ShowInstallationPrompt
[20-06-2014 23:01:11] [Asynchronous] Displaying custom installation prompt with the non-default parameters: [(Message=The uninstallation of Wireshark 1.10.8 complete.) (ButtonRightText=Ok) (Icon=Information)]...
I understand why the log file was generated, but I don't understand why I am unable to force it to write to $envWinDir\Logs\Software\$pkgId. Any words of wisdom would be greatly appreciated.