Skip to Content

Error while installing the branded Agentry WPF client 70.15.2

Oct 03, 2017 at 12:25 PM


avatar image

Dear All,

This is regarding an issue, I am facing during installation of Agentry Windows branded client.

Below are the system details

SMP : SMPSDK30015P_6-21011834
Agentry WPF client : Agentry_70.15.2_ClientDotNET
OS : Windows 7 64 bit

I have followed the link :

and successfully created a branded WPF client for version



Now when I am installing the client, It is giving me error : unable to install the required Microsoft c++ run time files (code 5). the application might not open

We have even installed this in the system where the user has admin rights and also when Microsoft visual c++ 2015 is already installed in the system. It still gives the same error.

Has anyone faced similar error before. Please share your opinion

Thanks and Regards

Neha Mahanty

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bill Froelich
Oct 03, 2017 at 01:49 PM

I believe that error can occur when the machine already has a newer version of the MSVC++ runtime files already installed. With the default client when I encounter this I am able to just continue and the client works as expected.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Bill,

So, If we already have MSVC++ installed in our system , how can we bypass this error message, any idea ?

This is the code written in AgentryClientDotNET.nsi


# Include the Microsoft Redistributable.
!include MSredist_x86.nsh

Section "-Microsoft .NET Framework" sectionMSDotNet
SetOutPath "$INSTDIR"

# Install using the web bootstrapper. By omitting the /LCID option, setup will install
# the language pack that matches the user's MUI setting.
# REF:

# Install it only if it's not installed already
# REF:
ReadRegDWORD $R0 HKLM "Software\Microsoft\NET Framework Setup\NDP\v4\Full" Release
${If} $R0 < 394254
File ${gNonFatal} "${gMicrosoftDotNetRuntimeDir}\NDP461-KB3102438-Web.exe"
ExecWait "$INSTDIR\NDP461-KB3102438-Web.exe /promptrestart /serialdownload" $0
Delete /rebootok "$INSTDIR\NDP461-KB3102438-Web.exe"

DetailPrint "Microsoft .NET Framework redistributable returned $0"
${If} $0 = 3010
SetRebootFlag true
${ElseIf} $0 <> 0
MessageBox MB_OK|MB_ICONEXCLAMATION "Unable to install the required Microsoft .NET Framework (code $0). The application might not open." /sd IDOK

!ifmacrodef Branding_${__SECTION__}
!insertmacro Branding_${__SECTION__}


Again , If we do not have MSVC++ and during Agentry client installation it tries to install , then we need admin rights otherwise this error is expected.

Please share your opinion.

Thanks and Regards

Neha Mahanty


I believe the best solution would be to update the MSVC++ installer files in your branded installer to be the latest version. In theory that should then detect it is already installed and not try to re-install. Please note I have not tried this out in practice so please let us know your outcome if you try this option.


Hi Bill,

Thank you so much !! I will surely try this option and will update you .

Many Thanks

Neha Mahanty