Friday, January 9, 2015

.Net Framework 3.5 required for PS AppDeploy Toolkit version 3.5

I recently blogged about deploying Java using the PS AppDeploy Toolkit. It appears the new version of the toolkit, 3.5 has a bug. While deploying to one of our pilot group, a user reported to me via email that a dialog box popped up titled "Windows Features", thinking it was the Java update they were expecting they selected download and install. They got the following error message "Windows couldn't connect to the Internet to download necessary files. Make sure that you're connected to the Internet, and click "Retry" to try again. They clicked on the link "Tell me how to solve this problem" and were taken to http://support.microsoft.com/kb/2734782.

When I looked at the kb article, I had a suspicion that I knew what the problem was. That the new toolkit needed .Net Framework 3.5! I had already solved the issue of creating a Windows 8 deployment of .Net Framework 3.5, but I wasn't convinced that it was desirable to start installing it on all my Windows 8 machines.

I did a quick search to see if anyone else had the same issue, and quickly found this discussion and solution: https://psappdeploytoolkit.codeplex.com/discussions/574060

Create a file named "deploy-application.exe.config" with the following text
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0"/>
    <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>
Put this file in your source directory with the Deploy-Application.exe and redistribute/redeploy.
I am going to be putting this file with every deployment I am using with version 3.5 of the toolkit. When a new version of the toolkit comes out I will test if it is still needed.

No comments:

Post a Comment