ale
New Member
Posts: 2
|
Post by ale on Nov 30, 2017 16:02:39 GMT
Hy Guys using UI++ 2.9.6.0 (latest) to generate my app tree for choosing what to deploy on my task sequence. My problem is that only applications are deployed properly, packages are not. I created of course the required TS actions to deploy apps and packages based on variable but no way. When I read the UI++.log I see this: + Set the task sequence variable 'XApplications01' to the value 'WinRAR' 01/01/1601 00:00:00 0 (0x0000) + Set the task sequence variable 'XApplications02' to the value 'Google Chrome' 01/01/1601 00:00:00 0 (0x0000) + Set the task sequence variable 'XApplications03' to the value 'Office 365 Installer' 01/01/1601 00:00:00 0 (0x0000) + Set the task sequence variable 'XPackages001' to the value ':Silen Install' 01/01/1601 00:00:00 0 (0x0000) + Set the task sequence variable 'XPackages002' to the value ':Silent Install' 01/01/1601 00:00:00 0 (0x0000) THen the TS is failing with this code: Failed to add Silen Install to the install list, hr=0x80070057 As far as I know this is expected because according to MS the syntax should be "PackageID:ProgramName", in the LOG I see only a column followed by the proper name of the program Reference: technet.microsoft.com/en-us/library/hh846237.aspx?f=255&MSPPError=-2147217396#BKMK_InstallPackageAny hints? Attached the UI++.xml thanks! Attachments:UI.xml (3.8 KB)
|
|
ale
New Member
Posts: 2
|
Post by ale on Nov 30, 2017 18:09:22 GMT
Guys, I solved but not sure about the reason. I generated the list of apps/packages using the tool builder script home.configmgrftw.com/ui-xml-builder-script/ then I copied the output and pasted into my UI++.xml file and modified properly. I got the problem. After many tests I just copied one sample from the standard UI++.xml and replaced the values with mine. IT worked. THe only difference I found out was the way PkgID was written: PkgID in the one working, PkgId in the one not working. Not sure if this is the reason but it worked out for me.
|
|
daja
New Member
Posts: 4
|
Post by daja on Jan 29, 2018 14:15:02 GMT
thx ale!!!, you saved my day
|
|
|
Post by BarkDerkweiler on Mar 29, 2019 14:25:39 GMT
Any change that xml build script is published somewhere else? That Link is dead
|
|
|
Post by Jason on Apr 16, 2019 2:22:19 GMT
|
|
|
Post by whiatt on Apr 30, 2019 20:04:44 GMT
Jason,
Just an FYI in the script, it does output PkgId instead of PkgID and does cause UI++ to blank out the package id when building the TS vars. Also, in my environment, I haven't had time to debug, but it was also trying to duplicate some packages/applications, as well as it had a hardcoded site name on lines 214-215, causing an error.
|
|
|
Post by whiatt on Apr 30, 2019 20:11:18 GMT
I changed lines starting at 21 to the following and fixed the errors with duplicates for applications. if (!$appHash.Contains($Application.LocalizedDisplayName)) { $guid = [guid]::NewGuid() Write-Output "`t<Application Id=`"$guid`" Label=`"$($Application.LocalizedDisplayName)`" Name=`"$($Application.LocalizedDisplayName)`"/>" $AppHash.Add($Application.LocalizedDisplayName, $guid) }
|
|