PDA

View Full Version : Windows 7 compatibility for s3pe?


Drakah
27th Nov 2009, 03:32 PM
I have been using s3p3 for a while now on my Windows 7 computer, and have not had any problems so far.

But everytime I install it from doing an upgrade version, I keep getting the "This program might not have installed correctly" message dialog popping up.

I also use s3oc too, and when I install/update that, I dont get the message from that one.

Just thought I would let you know.

pljones
27th Nov 2009, 06:45 PM
Do you choose to associate packages and whatnot during the s3pe install? I may be doing those wrong for Win7. Thanks -- when I get a PSU for my real PC (http://www.amazon.co.uk/gp/registry/1SR3UIAXMHVZE?sort=priority), I'll have a Windows 7-capable machine to test with.

Digitalchaos
28th Nov 2009, 04:09 PM
Hey, peter if you could tell me how you're associateing the package file type (code and program language)...I could test this (as I am running Windows 7) with access to Vistual Studio 2005/2008 .NET (all languages, vb, c#,etc)

-- digitalchaos

pljones
28th Nov 2009, 04:54 PM
I'm using NSIS with this script (http://s3pi.svn.sourceforge.net/viewvc/sims3tools/S3PIDemoFE/trunk/mknsis.nsi?revision=302&view=markup) to create the installer. Lines 63 through 101 are the relevant ones, specifically 91 to 99. Any input most appreciated!

Digitalchaos
28th Nov 2009, 05:22 PM
I'm not an expert on NSIS scripts, so am not the best person to give advice on potential gotchas in that script.

However, I believe the issue that the OP is refering to, on windows 7, has nothing to do with your nsis script.

The message "This program might not have installed correctly", appears on windows 7 systems; when, the application manifest does not contain the: "Compatibility" section that was added in Windows 7. I also looked at the manifest for the S3PE installer and the compatibility section is not present (I used reshacker to view it).

You can read the full MSDN article here: Windows 7 - Application Manifest (http://msdn.microsoft.com/en-us/library/dd371711(VS.85).aspx)

Example Manifest:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<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}"/>
</application>
</compatibility>
</assembly>

EDIT: The message the op was refering to is part of the: Program Compatibility Assistant (PCA)

The PCA can be disabled by running:

services.msc
and Stopping and Disabling the "Program Compatibility Assistant Service"

as per this link: Disable Program Compatibility Assistant in Windows 7 and Vista (http://www.howtogeek.com/howto/4161/disable-program-compatibility-assistant-in-windows-7-and-vista/)

pljones
28th Nov 2009, 06:03 PM
Hmmm... Why with one and not the other, though...