Tip to improve the installer exe and prevent the "This program might not have installed correctly"

Official support for: meldaproduction.com
Post Reply New Topic
RELATED
PRODUCTS

Post

This is a programming tip for Vojtech, for the installer.

Everytime we install the melda plug-ins on Windows Vista/7/8/8.1/10, when the installer closes we get an unnecessary warning dialog saying "This program might not have installed correctly" and giving you some options, despite the installer always install the stuff correctly.

The trick to avoid this is to alter/add a manifest file to the executable like this:

Code: Select all

  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!--The ID below indicates application support for Windows Vista -->
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
      <!--The ID below indicates application support for Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
      <!--The ID below indicates application support for Windows 8 -->
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
      <!--The ID below indicates application support for Windows 8.1 -->
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      <!--The ID below indicates application support for Windows 10 -->
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
    </application>
  </compatibility>
Inside the "assembly" section of the manifest. This will fix it.

Source of information:

http://stackoverflow.com/questions/8982 ... ges-on-vis

Hope this gets added to the installers in the future!

Regards,
Sergi

Post

Hi Sergi,

thanks for the info. The problem is, I was already checking this long time ago and it actually didn't help, plus it made the installer crashing due to its SFX nature. I'll check again, but I don't see it promising. Anyways on Win 10 here it actually stopped doing it! I was under the assumption, that Windows just like the new certificates or something... I assume it shows the stupid message in your computer, which OS do you have?
Vojtech
MeldaProduction MSoundFactory MDrummer MCompleteBundle The best plugins in the world :D

Post

Windows 7 Home Premium 64 bit SP1. I've added a version resource to one of my installers and looks like in some versions of Windows if you name your executable Setup.exe or describe it in a version resource as an "installer" those versions of Windows complain if an item in the "Remove programs" is not added or something like that. Gotta research more.

In my case I embedded as a resource to the .exe a manifest to my SFX installer and solved the problem with that. I don't see why can't you add it, if it works, for me it does.

The entire manifest resource I added to my executable is:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>RollerCoaster Tycoon 2 extras installer</description>
<dependency>
        <dependentAssembly>
                <assemblyIdentity
                        type="win32"
                        name="Microsoft.Windows.Common-Controls"
                        version="6.0.0.0"
                        processorArchitecture="X86"
                        publicKeyToken="6595b64144ccf1df"
                        language="*"
                />
        </dependentAssembly>
</dependency>
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!--The ID below indicates application support for Windows Vista -->
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
      <!--The ID below indicates application support for Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
      <!--The ID below indicates application support for Windows 8 -->
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
      <!--The ID below indicates application support for Windows 8.1 -->
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      <!--The ID below indicates application support for Windows 10 -->
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
    </application>
  </compatibility>
</assembly>
You can use the same thing for the SFX installer of melda plug-ins, i see no reason not to. Just change the description...

Just my 2 cents!

Regards
Sergi

Post

Thanks for the info Sergi! I actually never heard of adding it as a resource, but hey, why not to try! ;) I was trying the commandline tool that attaches the manifest to the executable, but then it was just crashing, so it didn't really work. But resources shouldn't cause any problems. It will be hard for me to check though, since it seems it doesn't do it on Win 10 anymore and it seems like all machines here are on Win 10. I can try in a virtual machine though.
Vojtech
MeldaProduction MSoundFactory MDrummer MCompleteBundle The best plugins in the world :D

Post Reply

Return to “MeldaProduction”