Visual J# Launch Condition
The Visual J# launch condition checks for the Visual J# Redistributable Package on a target computer during the installation of your application. During setup, the Visual J# launch condition searches for the version of the Visual J# Redistributable Package specified in the SupportedRuntimes property of the .NET Framework launch condition. If the .NET Framework launch condition is not present, the SupportedRuntimes value is used as the current version of the Visual J# Redistributable Package.
If the required version of the Visual J# Redistributable Package is not found, the installation is halted. The user is presented with a Yes/No dialog box that contains the text specified in the Message property. If the user chooses Yes, a redirect displays the location specified in the InstallUrl property, which is, by default, a Microsoft Support Web site that contains a downloadable copy of the Visual J# Redistributable Package. In many cases, you will want to modify the InstallUrl property to point to your own location for the redistributable file. For example, if you are distributing your application on CD-ROM, you should include the redistributable file on the CD and change the InstallUrl property to the file path. If you change the InstallUrl property, you should also change the Message property to explain what is being installed and from where.
Normally, the launch condition is automatically included to your deployment project when a dependency on the Visual J# Redistributable Package is detected. However, you may have to manually add the Visual J# launch condition to your setup project even if it does not have any explicit dependencies on the Visual J# Redistributable Package. For example, if Visual J# third-party components are zipped and available in a setup, then the deployment project will not detect the Visual J# dependency.
Once added, it cannot be removed. If you decide that the dependency is no longer required, you can just recreate the project.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
To manually add the Visual J# launch condition to your setup project
In Solution Explorer, right-click the setup project to which you want to add the Visual J# launch condition.
Click Add, and then click Merge Module.
The Add Modules dialog box appears.
Select the VJSharpRedist_x86.msm file, and click Open.
The Visual J# merge module and launch condition are added to the Setup project.