MSEndpointMgr / IntuneAppFactory

Intune App Factory automates Win32 application packaging in Intune.
https://msendpointmgr.com/intune-app-factory
MIT License
40 stars 12 forks source link

New-Win32App fails on VersionComparisonValue not matching REGEX string #26

Open Eagle-Admin opened 3 weeks ago

Eagle-Admin commented 3 weeks ago

Using the supplied 7-zip example App.json, running the pipeline fails at New-Win32App in publish_apps.

Creating .intunewin package file from source folder
Creating default requirement rule
Creating additional custom requirement rules
Creating detection rules
C:\IntuneAgent\_work\1\s\Scripts\New-Win32App.ps1 : Cannot validate argument on parameter 'VersionComparisonValue'. 
The argument "<replaced_by_pipeline>" does not match the "^(\d+(\.\d+){0,3})$" pattern. Supply an argument that 
matches "^(\d+(\.\d+){0,3})$" and try the command again.
At C:\IntuneAgent\_work\_temp\<random_guid>.ps1:4 char:1
+ . 'C:\IntuneAgent\_work\1\s\Scripts\New-Win32App.ps1' -TenantID <tenant ID> ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-Win32App.ps1], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,New-Win32App.ps1

##[error]PowerShell exited with code '1'.
Finishing: New-Win32App

I'm unsure if the error is on my part, or the supplied app.json.

obuolinis commented 1 week ago

Seems like the original App.json recipe wasn't properly processed in a previous stage by the script Prepare-AppPackageFolder.ps1. How exactly did you execute the Intune App Factory on your end?