Sets the status for a unit package relation.
SetUnitPackageStatus( Byval UnitName as String, Byval UnitType as String, Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as Integer, Byval Status as String, Byval changelogComment As String ) as Boolean
The name of the unit , or the uuid of the unit
Type of Unit
The name of the package
The package version
- "1" (Computer)
- "2" (User)
- When changed to waiting, the package will be installed according to its schedule. You can change the schedule with the function SetPackageSchedule.
- To change the status to uninstall it requires that the current status is Installed, and that the package has an uninstall script.
A comment that will be added to the changelog entry on the package and the unit.
Boolean. The function returns True if successful, otherwise false.