IAdvinstLicenseInfoCopy link to this sectionLink to this section copied!

Information about the Advanced Installer license is stored in this object.

OverviewCopy link to this sectionLink to this section copied!

Iadvinstlicenseinfo

PropertiesCopy link to this sectionLink to this section copied!

  • String EndMaintenance - Gets the end date of the maintenance plan as a string.
  • String Owner - Gets the owner of the license as a string.
  • String RegisterDate - Gets the date when the license was registered as a string.
  • String Type - Gets the type of the license as a string.

Sample command lines:Copy link to this sectionLink to this section copied!

# IAdvinstLicenseInfo automation
$advinst = New-Object -ComObject "AdvancedInstaller"

# Show License Info
$advinst.LicenseInfo

# access info property
Write-Output "`nLicense info end maintenance date:"
$advinst.LicenseInfo.EndMaintenance

# show available methods
$advinst.LicenseInfo | gm

$projectType = $advinst.ProjectTypes.Enterprise
$project = $advinst.CreateProject($projectType)

# save project
$project.SaveAs("F:\cmdlet\output\DemoProject Enterprise.aip")

# load project
$loadedProject = $advinst.LoadProject("F:\cmdlet\output\DemoProject Enterprise.aip")