This guide will walk you through building the MSI installer for the ObjectARX Wizards.
Before you begin, ensure you have the following installed:
- Visual Studio 2019 or 2022 with C++ development tools
- WiX Toolset v3.14.0 - Download Here
- WiX Toolset Visual Studio Extension - Get from Marketplace
⚠️ Important: Make sure to install WiX v3.14.0 specifically, as newer versions may have compatibility issues.
-
Install WiX Toolset
- Download and install WiX Toolset v3.14.0
- Restart your computer after installation
-
Install Visual Studio Extension
- Install the WiX Toolset Visual Studio Extension
- Restart Visual Studio
- Navigate to the
ObjectARXWizardsInstallerfolder - Open
ObjectARXWizard.slnin Visual Studio
The solution contains two important projects:
- Custom action project for post-installation file manipulation
- Configuration: Set to x86 (32-bit)
- Main WiX installer project
- Configuration: Set to x86 (32-bit)
⚠️ Critical: Both projects MUST be set to x86 architecture. The MSI engine uses a 32-bit custom action server, and using x64 will causeBadImageFormatExceptionerrors.
-
Set Configuration:
- Configuration:
Release(orDebugfor debugging) - Platform:
x86
- Configuration:
-
Build:
- Right-click the solution → Build Solution
- Or use
Ctrl+Shift+B
-
Output:
- The MSI installer will be generated in the
binfolder - Look for
ObjectARXWizards.msi
- The MSI installer will be generated in the
Need to debug the installation process? Follow these steps:
- Open ArxWizCustomAction Project
- Change Configuration to Debug
- Notice the Debug Code:
#if DEBUG System.Diagnostics.Debugger.Launch(); #endif
-
Build with Debug Configuration
-
Run the MSI Installer
-
Debugger Launch:
- MSI will break at the custom action
- Visual Studio "Just-In-Time" debugger will launch
- Attach to the process and debug normally
-
Source Code Access:
- The debugger will automatically find your custom action source code
- Set breakpoints and step through the code as needed
ObjectARXWizardsInstaller/
├── ObjectARXWizard.sln # Main solution file
├── ObjectARXWizard.wixproj # WiX installer project
├── ArxWizCustomAction.csproj # Custom action C# project
├── ObjectARXWizards.wxs # WiX source file (main)
├── directory.wxi # Directory structure definitions
├── feature.wxi # Feature definitions
├── property.wxi # Property definitions
├── UI.wxi # User interface definitions
├── Binary/ # Custom action binaries
└── temp/ # Temporary build files
| Issue | Solution |
|---|---|
BadImageFormatException |
Ensure both projects are set to x86 platform |
| WiX not found | Install WiX Toolset v3.14.0 and restart VS |
| Custom action fails | Check that custom action DLL is properly referenced |
| Missing dependencies | Verify all ObjectARX wizard files are present |
- Run as Administrator: Always install the MSI with administrator privileges
- Visual Studio Restart: Restart Visual Studio after installation
- Clear Cache: If wizards don't appear, see the Troubleshooting Guide
After successfully building:
- Test the MSI: Install on a clean machine to verify functionality
- Deploy: Distribute the MSI to users
- Documentation: Refer users to the main README.md for usage instructions
Need help? Check the Troubleshooting Guide for common installation issues!