Portrait Dialogue - Error 1722 when Installing Web Apps


When trying to install the Portrait Dialogue Web Applications the following error message appears:

"Error 1722  There is a problem with this Windows Installer package"


There are different causes, all of which result in components for the installation not being able to be found

Cause 1
the installation package is looking in the wrong directory for the .net framework due to registry settings. 

Cause 2
IIS has not been set to allow 32 bit applications

Cause 3
If ASP.NET 4.5 has been installed before the IIS Application Role, then the 4.0 is not installed correctly in IIS (ISAPI and CGI registrations). 
The Web parts would not have been installed, because in that situation those components (ISAPI and CGI registrations) would not have been required.

Cause 4
The user does not have write access to the C:\Windows\Microsoft.NET\Framework directory


UPDATED: March 30, 2017
Solution 1
With PD 5.x You can try the following:
Change the registry value of the 32-bit registry key
“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\2.0.50727.0\Path” (Wow6432Node after Software shows you it's the 32-bit version)
from “C:\Windows\Microsoft.NET\Framework\v2.0.50727”
to     “C:\Windows\Microsoft.NET\Framework64\v2.0.50727”
before running the installation, and then change it back afterwards.

Solution 2
With PD 5.x You can try the following:
To activate the 32 bit mode in IIS on a server 2008 64 bit, run:
cscript %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

Solution 3
With PD 6.x You can try the following:
If you do a repair of the ASP.NET 4.5 after the addition of the IIS application role from the Add/Remove program, then ASP.NET gets correctly registered in IIS and then it’s possible to install the web parts without any problems.

Solution 4
If installing HQ You can try the following:
This error is seen when user does not have full access to below folder


After giving full access to above folder the issue was resolved
Environment Details