PSD icon indicating copy to clipboard operation
PSD copied to clipboard

Adding debug parameter breaks deployment

Open yckbrd opened this issue 2 years ago • 1 comments

The current documentation says in order to enable debug mode one has to add the parameter to the PSDStart.ps1 execution command in PSD:\Templates\LiteTouchPE.xml. However, there is no such command in that file. So I added the parameter to the command in PSD:\Templates\Unattend_PE_x64.xml and PSD:\Templates\Unattend_PE_x86.xml.

But changing <Path>powershell.exe -noprofile -windowstyle hidden -file X:\Deploy\Scripts\PSDStart.ps1</Path> to <Path>powershell.exe -noprofile -windowstyle hidden -file X:\Deploy\Scripts\PSDStart.ps1 -Debug</Path> causes the deployment to stop and the monitor output remains the following indefinitely:

image

yckbrd avatar Sep 17 '22 14:09 yckbrd

Causing the issue seems to be the -windowstyle hidden parameter, which seems obvious now after finding out... Since the window is hidden the query at the beginning of PSDStart.ps1 whether to stay in debug mode or quit it doesn't receive an answer because we cannot make any inputs. My workaround for now is to change the parameter to -windowstyle minimized. Or, if you're lazy and don't want to press y everytime comment out the query until we find a robust solution. <#if($Global:PSDDebug -eq $false) { if($DeBug -eq $true) { $Result = Read-Host -Prompt "Press y and Enter to continue in debug mode, any other key to exit from debug..." if($Result -eq "y") { $DeBug = $True } else { $DeBug = $False } } }#>

yckbrd avatar Sep 18 '22 00:09 yckbrd

Thank you for the feedback, will check it with the team and try to reproduce, until then you can add the parameter in the BootStrap.ini file as such:

Priority=Default

Properties=PSDPrestartMode,PSDDebug

[Default]

PSDDebug=YES

GeoSimos avatar Oct 27 '22 22:10 GeoSimos

We're updating the documentation the aforementioned change.

GeoSimos avatar Dec 01 '22 19:12 GeoSimos