I'm facing a problem with this script toolbox, which is, whenever I try to use a custom UnattendTemplate.xml, I encounter an issue : the WinImageBuilder.psm1 script always assume that the starting point to get the UnattendTemplate.xml is the folder of the toolbox. Unfortunately, when I need to point to an absolute path for this, through the unattend_xml_path variable in my config file, the script seems to be appending the absolute path to the path of the script root, like so :
Which, in my case as you can see, results in the following path for my UnattendTemplate.xml : C:\Users\admsrv\windows-imaging-tools\C:\Users\admsrv\windows-builds\confs\w10\UnattendTemplate.xml. I'm not sure if this is intended behaviour, but I think I can provide a fix for that. Let me know if you're interested.
Hey there !
I'm facing a problem with this script toolbox, which is, whenever I try to use a custom![image](https://user-images.githubusercontent.com/71391944/208468142-50e4745a-49ba-4b22-b3ce-5728654692b9.png)
UnattendTemplate.xml
, I encounter an issue : theWinImageBuilder.psm1
script always assume that the starting point to get theUnattendTemplate.xml
is the folder of the toolbox. Unfortunately, when I need to point to an absolute path for this, through theunattend_xml_path
variable in my config file, the script seems to be appending the absolute path to the path of the script root, like so :Which, in my case as you can see, results in the following path for my
UnattendTemplate.xml
:C:\Users\admsrv\windows-imaging-tools\C:\Users\admsrv\windows-builds\confs\w10\UnattendTemplate.xml
. I'm not sure if this is intended behaviour, but I think I can provide a fix for that. Let me know if you're interested.