Summary
This article explains how to override the default version of the .NET Framework and manually specify your own version.Synopsis
When the .NET Precompile Assembly component property is set to Yes, at installation, the setup creates a native image from the .NET assembly included in the component and installs it to the native image cache on the target system. The .NET Framework is used in this process, and the setup automatically determines the version of the .NET Framework to use.
This article explains how to override the default version of the .NET Framework and manually specify your own version.
Discussion
When setting the .NET Precompile Assembly property for a component to the value of Yes, the version of the .NET Framework to use during the native image generation is selected by default. This version is determined by retrieving the version of the file InstallUtilLib.dll specified in the Tools > Option dialog. For example, if the version of this file is 1.1.4322.573, this process uses a minimum version of 1.1 for the .NET Framework. If no path is specified in the InstallUtilLib.dll location field, the default minimum version used is 1.1. This location of InstallUtilLib.dll can be modified using the following steps:
- Select Tools > Options.
- Select the .NET tab.
The version of the .NET Framework to be used can be set manually. This is helpful when multiple versions of the .NET Framework are on the machine and you'd like to specify a version prior to the latest version. Follow these steps:
- Select the System Search view.
- Right-click on the search item entitled ngen.exe and choose Modify.
- In the How do you want to look for it? panel, click the Details button.
- Specify a new Minimum Version and Maximum Version for the .NET Framework.
- Rebuild the release.
Additional Information
The .NET Precompile Assembly property is discussed in further detail in the Help Library topic Component Settings.
Related Articles
Microsoft .Net Framework unhandled exception “Could not load file or assembly ‘ Microsoft.Report.Viewer.WinForms, version … 24Number of Views How to Determine What .NET Framework Version is Installed on a User's System Using InstallShield 8Number of Views Verify the .NET Framework version currently installed 13Number of Views InstallShield Prerequisites for .NET Framework 3.5 SP1 on Windows 7 and Later, Windows Server 2008 R2 and Later 6Number of Views .NET Framework OS Requirements 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago