How can I add .NET Framework 3.5 as a prerequisite to my installation?

Article:HOWTO8456  |  Created: 2008-01-08  |  Updated: 2008-04-21  |  Article URL http://www.symantec.com/docs/HOWTO8456
Article Type
How To



Question
How can I add .NET Framework 3.5 as a prerequisite to my installation?

Answer

  1. From Installation Expert > Release Definition >  Build Options, from the .EXE options select Single file .EXE (with MSI inside).
  2. From Installation Expert > Release Definition > Prerequisites page select the Add button.
  3. From the File Path, browse out to the location of the dotNetFx35.exe
  4. In the Command Line: enter a valid command line option (optional)
  5. Click OK.
  6. Click the Edit Script button.
  7. You will see a message "You are about to edit the WiseScript that is generated to install the prerequisites. If you edit the WiseScript, the ability to add or edit files on the Prerequistes page is disabled. Do you want to continue?" Click Yes.
  8. This will create a Save dialog to save the MSI. Browse out to a location and name the file you wish to save. Click Save.
  9. You should now see a WiseScript with the same name you saved the MSI in step 8, open. (See the sample in the attached .zip file.)
  10. Add a Get Registry Key Value Action to look in the registry to see if .NET Framework 3.5 is installed. Enter a name in the Variable Name field. For the Default value, this is the value you want it to return to the variable if it is not found.
  11. Locate the Install File action that installs .NET Framework 3.5.
  12. Highlight the line above it. Add an IF Statement:
     
    IF Varible (from step 10) Equals the Value (enter the Default Value from step 10)

  13. Click OK.
  14. Add an End Statement after the Install file action that installs .NET Framework 3.5.
  15. Save and Compile the WSE.

See the attached sample WiseScript.


Attachments

installnetframework3_5.zip (3 kBytes)

Legacy ID



39973


Article URL http://www.symantec.com/docs/HOWTO8456


Terms of use for this information are found in Legal Notices