true, the function raises an error:
Invalid packaged application ID passed.
Invalid authentication type passed. For list of available authentication types, query APEX_PKG_APP_AUTHENTICATIONS view.
Syntax
APEX_PKG_APP_INSTALL.INSTALL( 
    p_app_id              in number,
    p_authentication_type in wwv_flow_authentication_api.t_authentication_type default null,
    p_schema              in varchar2 default null ) return number;
Parameters
Table 24-3 INSTALL Function Signature 1 Parameters
| Parameter | Description | 
|---|---|
| 
 | The packaged application ID. | 
| 
 | The type of authentication to use. If  | 
| 
 | The database schema the application parses SQL statements as. If  | 
Example
The following example shows how to use INSTALL function to install packaged application ID 7060 in DEMO workspace with 'Application Express Account' authentication using ‘SCOTT’ schema.
declare
    l_installed_app_id   number;
begin
    APEX_UTIL.SET_WORKSPACE( 'DEMO' );
    l_installed_app_id := APEX_PKG_APP_INSTALL.INSTALL( 
                            p_app_id              => 7060,
                            p_authentication_type => APEX_AUTHENTICATION.C_TYPE_APEX_ACCOUNTS,
                            p_schema              => 'SCOTT' );
end;
Parent topic: APEX_PKG_APP_INSTALL