FeatureGetItemSize
Project:This information applies to the following project types:
| • | InstallScript | 
| • | InstallScript MSI | 
The FeatureGetItemSize function retrieves the size—in bytes—of a specified feature. The sizes of subfeatures are not included.
Note:This function cannot be used with script-created feature sets.
Syntax
FeatureGetItemSize ( szFeatureSource, szFeature, nvSize );
Parameters
| 
                                                         Parameter  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         szFeatureSource  | 
                                                    
                                                         Specifies the media name of the file media that contains the feature whose size is to be retrieved.  | 
                                                
| 
                                                         szFeature  | 
                                                    
                                                         Specifies the name of the feature whose size is to be retrieved.  | 
                                                
| 
                                                         nvSize  | 
                                                    
                                                         Returns the size in bytes of the specified feature. You can also call FeatureGetData to get the total original file size of a specified feature. Call FeatureTotalSize to determine the total size of all selected features and subfeatures.  | 
                                                
Return Values
| 
                                                         Return Value  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         0  | 
                                                    
                                                         FeatureGetItemSize was successful.  | 
                                                
| 
                                                         < 0  | 
                                                    
                                                         FeatureGetItemSize failed. Call FeatureError for additional information.  |