问题
I'm running into the Windows Vista/7 Program Compatibility Assistant problem described here:
"This program might not have installed correctly" message in Windows 7 RC
The solution (backed-up by similar questions elsewhere, and MSDN), is apparently to add a 'compatibility' section to setup.exe's manifest. InstallShield 10 SP1 does this automatically, but unfortunately I only have InstallShield 2009.
How would I go about editing the manifest? Is there a way to do this programmatically, so I can integrate it into my build?
回答1:
Look for the files named setupexe.*.manifest (Support or Program subfolder of InstallShield, I think) and edit or replace them. The appropriate one is selected and incorporated into setup.exe during build.
回答2:
Yes, just use mt.exe from the Windows SDK.
回答3:
a manifest file could be outside the exe, in the same path, or inside, in the resources of an exe.
回答4:
There is this tool from InstallShield that can update the manifest. Or a direct link here: isreman. The provided example manifests do not supply the application compatibility section, though.
来源:https://stackoverflow.com/questions/2931789/can-one-edit-an-installshield-setup-exes-manifest-file