InstallShield 2016 » InstallScript Language Reference
Project • This function applies to InstallScript projects only. This function is not required in InstallScript MSI projects since DIFx can be called by the Windows Installer in those projects.
The DIFxDriverPackageUninstall function uninstalls the specified driver package from the system and removes the driver package from the driver store.
It is not necessary to call this function explicitly for drivers installed with DIFxDriverPackageInstall or DIFxDriverPackagePreinstall while uninstall logging is enabled as these drivers are automatically removed by the OnUninstallingDIFxDriverFile event.
Note • This function calls the DIFxAPI function DriverPackageUninstall. See the DIFxAPI documentation for additional details regarding this function and its parameters and return values.
Syntax
DIFxDriverPackageUninstall( byval string szDriverPackageInfPath, byval number nFlags, byval number nISFlags );
Parameters
Parameter |
Description |
|||||||||
szDriverPackageInfPath |
String that supplies the fully qualified path to the driver package .inf file of the driver package to pre-install. |
|||||||||
nFlags |
One or more flags that control the installation operation. In most cases, specify 0 to have the installer automatically add the appropriate flags. The following additional flags can be specified manually: Note • These flags are defined by and passed directly to the Flags parameter of the DIFxAPI function DriverPackageUninstall. See the DIFxAPI documentation for additional information regarding these flags.
Caution • Use this flag with caution. Only use this flag if you can verify that a binary file in the system is not required by any other driver package or application. |
|||||||||
nISFlags |
Specifies InstallScript-specific flags. The following flags are available:
|
Return Values
Return Value |
Description |
ISERR_SUCCESS |
The function was successful. |
< ISERR_SUCCESS |
The function failed. If the return value from DriverPackageUninstall is a Win32 error (a positive return value), ISERR_WIN_BASE is added to the error to ensure that it is < ISERR_SUCCESS. You can use the following code to get the original Win32 error, if desired: if( nResult & ISERR_WIN_BASE ) then nResult = nResult - ISERR_WIN_BASE; endif; For a list of specific errors, see DIFxAPI Errors (InstallScript Projects). |
Additional Information
• | For more information on DIFx and DIFxAPI, see the MSDN Library. |
• | When a driver is installed by DIFxDriverPackageInstall or uninstalled by DIFxDriverPackageUninstall, the driver is associated with the application being installed by the installation by default. This association can be disabled by specifying ISDIFX_OPTION_DONT_ASSOCIATE. These functions use the following script variables to determine the application to associate: |
• | ISDIFXAPPID |
• | IFX_PRODUCT_DISPLAY_NAME |
• | IFX_PRODUCT_NAME |
• | IFX_COMPANY_NAME |
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |