Distributing the .NET Framework 4.5.2 with ZENworks bundles

Many applications require the use of the .NET Framework in order to use them. These include applications such as the latest ZENworks agent, Novell Filr, and many others. This cool solutions looks at how to build a bundle that will install the .NET Framework either standalone or as a dependent application. In order to build this bundle you need to download the .NET redistributable. Currently the latest version is 4.5.2 available here.

  1. Create a new empty bundle that will be used to install the .NET Framework.

    1. In ZCC, go to the Bundle page and browse to the folder you want to create the bundle in; then select New > Bundle…

  2. Select Windows Bundle

  • Select (Empty Bundle).

  • In the name field enter Install .NET 4.5.2; then click Next.

  • Select the option to Define additional details; then click Finish.

  • Add an action that will copy the .NET Framework installer.

    1. On the Actions tab, click Add > Install File(s).

  • In the Action name field, enter Copy .NET Installer.

  • Click Add.

  • Click Add.

  • Browse to ND452-KB2901907-x86-x64-AllOS-Enu.exe; the click OK.

  • For the destination directory field, enter %temp%.

  • In the Copy Option dropdown, select Copy if Newer.

  • Click OK.

  • Click OK to save the changes.

  • Add an action that launches the installer in a silent fashion as the SYSTEM user.

    1. On the Actions tab, click Add > Launch Executable.

  • In the Action name field, enter Run .NET Installer.

  • In the Command field, enter %temp%\ND452-KB2901907-x86-x64-AllOS-Enu.exe

  • In the Command Line Parameters field, enter /norestart /passive /showmui

  • In the Success Return Codes, enter 0,3010

  • Select the Advanced tab.

  • Select When action is complete

  • Select Run as secure system user (Don’t allow system to interact with desktop)

  • Click OK.

  • Add an action to remove the installer from the temp directory after the install is complete.

    1. On the Actions tab, click Add > File Removal.

  • In the Full Path to Source Files/Directories field, enter %temp%\NDP452-KB2901907-x86-x64-AllOS-Enu.exe; then click Add.

  • In the Run Action As dropdown, select System.

  • Click OK.

  • Click Apply to save the bundle changes.

  • Test the bundle by assigning the app to a machine and running it. Once you have verified success, publish the bundle.

You now have a bundle that will install the .NET 4.5.2 framework. These bundles are also available for subscription from the ZENguru zone. For more information about how to subscribe please refer to this solution.




How To-Best Practice
Comment List