GacUninstallAssembly() private method

private GacUninstallAssembly ( IntPtr InContext, String InAssemblyName, String InDescription, String InUniqueID ) : bool
InContext System.IntPtr
InAssemblyName String
InDescription String
InUniqueID String
return bool
Ejemplo n.º 1
0
        public static void GacUninstallAssembly(
            IntPtr InContext,
            String InAssemblyName,
            String InDescription,
            String InUniqueID)
        {
            Boolean Res;

            if (Is64Bit)
            {
                Res = NativeAPI_x64.GacUninstallAssembly(InContext, InAssemblyName, InDescription, InUniqueID);
            }
            else
            {
                Res = NativeAPI_x86.GacUninstallAssembly(InContext, InAssemblyName, InDescription, InUniqueID);
            }
            if (!Res)
            {
                throw new ApplicationException("Unable to install assembly in the GAC. This usually indicates either an invalid assembly path or you are not admin.");
            }
        }