Author: Lawrence Albert Pardo-Ilao - Naga City, Philippines

Free! Guitar Tutorials and Chords!

New! VB.NET HTML5 and CSS3 Tutorials!

Unlock For Us

[C# and VB.Net] Program Compatibility Assistant Message in Windows 7 (and Vista)

setup

While creating a setup program and testing for the new version of WinBubbles for both Windows 7 32 and x64 bit version, I encountered this message.

This program might not have installed correctly

If this program didn’t install correctly, try reinstalling using settings that are compatible with this version of Windows.

Program Compatibility Assistant detects known compatibility issues in older programs and new applications in which the manifest file is not updated.

How to edit the manifest file of your programs written in vb.net and C# along with UAC

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>

<!—ADD THIS -->
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!--application support for Windows Vista -->
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
      <!--application support for Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
    </application>
  </compatibility>

<!—The ID indicates the support for the OS>

</asmv1:assembly>

There’s another simplest way to ignore or prevent the message. Change your Product name without using any word related to installation of softwares.

  • Setup
  • Install
  • Installer
  • Installation
  • uninstall

Hope this helps!

0 Comments:

 

© UnlockForUs 2007-2022 | Blogger| License Agreement