Windows Integration Errors

Fix Error 1001 When Adding Custom Action DLL to MSI Installer

Rana GarciaRana Garcia Oct 12, 2026 868 views

Question details

The user is unable to complete a software installation due to Error 1001, which indicates that installer types cannot be obtained from a .NET 6 custom action assembly.

How to Fix Error 1001 When Adding a Custom Action DLL to an MSI
Product
Visual Studio 2022 / Microsoft Excel
Device & OS
Windows
Scenario
Building and testing an MSI installer project (VDPROJ) that includes a custom action DLL, likely for deploying an Excel add-in or Office integration.
Observed behavior
The MSI installer fails during execution, throwing Error 1001 because it cannot load the required assembly or identify the installer types within the .NET 6 DLL.
Before you start

Ensure that your Visual Studio 2022 Installer Projects extension is updated to the latest version and verify that you have administrative privileges to run MSI installers.

Solution 1Recommended

Verify Target Framework and Resolve Missing Dependencies

This solution helps identify assembly loading failures by checking framework compatibility and extracting the underlying LoaderExceptions.

Traditional Visual Studio Setup Projects (VDPROJ) often have limited support for modern .NET 6 assemblies in custom actions. You must ensure the framework is fully supported and all dependency DLLs are included in the installer.

1
Check Framework Compatibility

Verify that your custom action DLL targets a .NET framework version supported by the MSI technology. If .NET 6 is not supported natively by your VDPROJ configuration, consider building the custom action in a compatible .NET Framework version.

2
Include Required Dependencies

In Visual Studio, right-click your Setup Project, go to 'Add' > 'Project Output', and ensure that all dependencies and referenced assemblies of your custom action DLL are explicitly included in the installer payload.

3
Review LoaderExceptions

To find the exact cause of the load failure, wrap your custom action initialization code in a try-catch block catching 'ReflectionTypeLoadException'. Log the 'LoaderExceptions' property to a text file to see which specific dependency is missing.

4
Verify Installer Types

Ensure your custom action class inherits correctly from 'System.Configuration.Install.Installer' and is explicitly decorated with the '[RunInstaller(true)]' attribute so the MSI engine can discover it.

Verify Target Framework and Resolve Missing Dependencies
Additional Diagnostic Support: If you continue to experience assembly-load errors, consider posting the complete diagnostic log and LoaderExceptions output to Microsoft Q&A, where Excel and MSI engineers can provide specialized guidance.
Free Microsoft Office alternative

Looking for a Hassle-Free Office Experience? Try WPS Office

If you are frustrated with complex Microsoft Office deployments, COM add-in setups, and difficult MSI installer errors like Error 1001, consider switching to WPS Office. It provides a highly compatible and lightweight environment for your everyday productivity without the heavy deployment overhead.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for Windows.
  2. 2. Install WPS Office: Run the downloaded executable file. The lightweight installer takes only minutes to complete without complex configurations.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheets to instantly open, edit, and save your existing Excel documents seamlessly.
Fully compatible with Microsoft Excel formats (.xlsx, .xls)Lightweight software installation with zero complex MSI configuration neededFree to use with a familiar, easy-to-navigate user interfaceSeamless migration and deployment across multiple platforms
microsoft office alternative - wps office

Frequently Asked Questions

What does Error 1001 mean in a Visual Studio MSI installer?

Error 1001 indicates that the Windows Installer encountered an unexpected exception while trying to execute a custom action. This typically happens when the target framework of the custom DLL is unsupported, or when a required dependency fails to load during the installation process.

Can I use .NET 6 for custom actions in Visual Studio Setup Projects?

While it is possible, traditional Visual Studio Installer Projects (VDPROJ) are primarily optimized for the .NET Framework. Using .NET 6 or newer often requires workarounds, such as using COM extraction, publishing as self-contained, or migrating your installer project to the WiX Toolset.

How can I fix missing installer types in my DLL?

To resolve missing installer types, you must ensure that your main custom action class publicly inherits from the System.Configuration.Install.Installer base class. Additionally, the class must be marked with the [RunInstaller(true)] attribute so the MSI engine recognizes it as a valid custom action entry point.