|
Post by fp00099 on Jul 9, 2019 21:27:03 GMT
We use different XML files for in-place upgrade or OSD because combining every scenario into a single XML file hasn't worked well for us due to our requirements. The issue we are facing now is the preflight checks are duplicated in so many files and we have to change each one every time there is an update.
I am hoping to be able to insert or call the pre-flight XML file as part of the main file so we only need to maintain the code in one file.
I tried using this but it simply launches another session and doesn't let us use the variables in the main file. Is there a way to accomplish this?
<!-- PreFlight Checks -->
<Action Type="ExternalCall" Title="Download pre-flight check configuration">PowerShell.exe -Command "& { $WebClient = New-Object System.Net.WebClient ; $Url = '%ZZHTTPDownloadLocation%/UIConfig/CGPreflight-v1-1-Testing.xml' ; $Path = $_SMSTSPackageDownloadLocationLP000600+'\CGPreflight-v1-1-Testing.xml' ; $WebClient.DownloadFile( $url, $path ) }"</Action>
<Action Type="ExternalCall" Title="Execute pre-flight check">$_SMSTSPackageDownloadLocationLP000600\x64\ServiceUI.exe -process:tsprogressui.exe $_SMSTSPackageDownloadLocationP0100693\x64\ui++64.exe /config:$_SMSTSPackageDownloadLocationLP000600\CGPreflight-v1-1-Testing.xml</Action> Thanks for any help offered.
|
|
|
Post by fp00099 on Jul 9, 2019 21:34:05 GMT
Would something like using XInclude work?
<!-- PreFlight Checks --> <article xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> <info> <xi:include href="http://server.fqdn.com/UIConfig/CGPreflight-v1-1-Testing.xml" parse="xml" xpointer="Actions"/> </info> </article>
|
|
|
Post by Jason on Jul 25, 2019 21:24:30 GMT
I've not designed for this at all so can't say what will or won't work but it is a good idea that I need to add to my backlog.
|
|