Distribute Excel .NET Applications
One of the big advantages of Excel .NET applications is that they can be easily distributed through a network. Just set the project Assembly Link Location property to a network address and distribute the Excel workbook that uses the assembly. Whenever anyone uses the workbook, the assembly will then be loaded from that network location.
Before you can distribute applications in this way, however, you need to make sure your users meet the following requirements:
They must be using Excel 2003 or later. Prior versions of Excel are not supported for Excel .NET applications.
The Office PIAs must be installed on the user’s machine.
The .NET Framework Version 1.1 runtime must be installed.
The user’s .NET security policy must specify Full Trust for the network address from which the assembly is distributed.
The first two requirements are best handled using the Office Resource Kit’s Custom Installation Wizard or Custom Maintenance Wizard. You can use those tools to create a chained installation that calls subsequent installation programs, such as the setup for Excel .NET application prerequisites and security policy settings.
The .NET setup and deployment projects detect the Office PIAs and .NET Framework as dependencies of the Excel application. According to the Visual Studio .NET Tools for Office documentation, you shouldn’t distribute the PIAs through your setup program (instead, use the Office setup to do this as mentioned earlier). Special steps for creating ...
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.