INSTALLSPEC union (appmgmt.h)

The INSTALLSPEC structure specifies a group policy application by its user-friendly name and group policy GUID or by its file name extension. The Spec member of the INSTALLDATA structure provides this information to the InstallApplication function.

Syntax

typedef union _INSTALLSPEC {
  struct {
    WCHAR *Name;
    GUID  GPOId;
  } AppName;
  WCHAR  *FileExt;
  WCHAR  *ProgId;
  struct {
    GUID  Clsid;
    DWORD ClsCtx;
  } COMClass;
} INSTALLSPEC;

Members

AppName

Structure that contains the following members.

AppName.Name

The user-friendly name of the application as it appears in Add or Remove Programs and the Group Policy Object Editor. You can obtain the name by calling GetManagedApplications.

AppName.GPOId

The GUID for the group policy object in which the application exists. You can obtain the group policy object GUID by calling GetManagedApplications.

FileExt

The file name extension, such as .jpg, of the application to be installed.

Note  InstallApplication fails if the Type member of INSTALLDATA equals FILEEXT and there is no application deployed to the user with this file name extension.
 

ProgId

This parameter is reserved and should not be used.

COMClass

This parameter is reserved and should not be used.

COMClass.Clsid

This parameter is reserved and should not be used.

COMClass.ClsCtx

This parameter is reserved and should not be used.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header appmgmt.h

See also

GetManagedApplications

Group Policy Overview

Group Policy Structures

INSTALLDATA

InstallApplication

UninstallApplication