DotNetUnloadAppDomain
InstallShield 2024 » InstallScript Language Reference
Project:
• | InstallScript |
• | InstallScript MSI |
• | Basic MSI with InstallScript custom actions |
The DotNetUnloadAppDomain function unloads the specified .NET application domain and releases any assemblies that are currently loaded into the specified application domain.
Note:Once an application domain is unloaded, all .NET objects that were created with DotNetCoCreateObject become invalid. Therefore, you should set these objects to NOTHING using the set command before calling DotNetUnloadAppDomain.
Syntax
DotNetUnloadAppDomain ( byval string szAppDomain );
Parameters
Parameter |
Description |
szAppDomain |
Specifies the .NET application domain to be unloaded. For more information on .NET application domains, see the .NET Framework Developer’s Guide in the MSDN Library. |
Return Values
Return Value |
Description |
>= ISERR_SUCCESS |
The domain was successfully unloaded. |
< ISERR_SUCESS |
The domain was not unloaded. |
See Also