PDA

View Full Version : Manifest Question



NewsArchive
03-04-2010, 01:55 AM
Hi Friedrich,

could you send me the xml-file you use for windows 7 uac-manifest? We
need this for debugging purposes of our exe, which is doing somthing
wrong with the embedded manifest.

Thank you.

Markus

NewsArchive
03-04-2010, 01:55 AM
Hi Markus,

> could you send me the xml-file you use for windows 7 uac-manifest? We need
> this for debugging purposes of our exe, which is doing somthing wrong with
> the embedded manifest.

The compiler generates the manifest at compile-time and embeds it into the
..exe. There is no pre-defined XML-file per-se.

static LPSTR szFormatWin7 = "<?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>"
"<supportedOS Id=\"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}\"/>"
"</application>"
"</compatibility>"
"<assemblyIdentity "
"version=\"1.0.0.0\" "
"processorArchitecture=\"x86\" "
"name=\"%s\" "
"type=\"win32\" />"
"<description>%s</description>"
"<!-- Identify the application security requirements. -->"
"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v3\">"
"<security>"
"<requestedPrivileges>"
"<requestedExecutionLevel "
"level=\"%s\" "
"uiAccess=\"false\"/>"
"</requestedPrivileges>"
"</security>"
"</trustInfo>"
"<dependency>"
"<dependentAssembly>"
"<assemblyIdentity type=\"win32\" "
"name=\"Microsoft.Windows.Common-Controls\" "
"version=\"6.0.0.0\" "
"publicKeyToken=\"6595b64144ccf1df\" "
"language=\"*\" "
"processorArchitecture=\"x86\"/>"
"</dependentAssembly>"
"</dependency>"
"</assembly>";

Friedrich

NewsArchive
03-04-2010, 01:55 AM
Thank you Friedrich.

We still have to use Delphi 7 and there a some known problems with the
common-control 6.0 and newer.

Could you provide a Checkbox in your "embed uac manifest"-directive to
NOT embed the following section?

"<dependency>"
"<dependentAssembly>"
"<assemblyIdentity type=\"win32\" "
"name=\"Microsoft.Windows.Common-Controls\""
"version=\"6.0.0.0\""
"publicKeyToken=\"6595b64144ccf1df\""
"language=\"*\""
"processorArchitecture=\"x86\"/>"
"</dependentAssembly>"
"</dependency>"

Thank you.
Markus

NewsArchive
03-04-2010, 01:56 AM
Hi Markus,

> We still have to use Delphi 7 and there a some known problems with the
> common-control 6.0 and newer.

Interesting information.

> Could you provide a Checkbox in your "embed uac manifest"-directive to NOT
> embed the following section?

No problem. We'll add a new "Skip MANIFESTDEPENDENCY" option to the "#embed
UAC-manifest..." compiler directive. This option causes the compiler to not
generate the "dependency" and "dependentAssembly" elements of the Publisher
Configuration File.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-04-2010, 01:57 AM
New "Do not add MANIFESTDEPENDENCY element" option added to the "#embed
UAC-manifest..." compiler directive (see screenshot).

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-04-2010, 01:57 AM
Thank you very much!!!

Markus Zander

NewsArchive
03-04-2010, 01:57 AM
>
> Thank you very much!!!
>

You are very welcome. We'll make a new development build available later
today.

Friedrich

NewsArchive
03-04-2010, 01:58 AM
It works!

Thank you again.

Markus

NewsArchive
03-04-2010, 01:58 AM
> Hi Friedrich,
>
> could you send me the xml-file you use for windows 7 uac-manifest? We
> need this for debugging purposes of our exe, which is doing somthing
> wrong with the embedded manifest.

Markus,

This Windows 7 manifest file was provided by Larry Sands in one of the
SoftVelocity newsgroups - If that will help as well...

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="SoftVelocity.Clarion7.Application"
type="win32"
/>
<description>Clarion Application</description>
<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>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
03-04-2010, 01:59 AM
Thank you, but we do not develop with clarion.

Markus

NewsArchive
03-04-2010, 01:59 AM
> Thank you, but we do not develop with clarion.

Markus,

I would suggest you modify the XML file for your purposes (I believe the
Clarion descriptors added by Larry - name= and <description> are merely
commentary)

Then as a suggestion - you could drop the <dependency> section - not
required according to this MS doc - and see if that solves your manifest
problem - an experiment before Friedrich decides on the checkbox you've
requested.

http://msdn.microsoft.com/en-us/library/aa374191%28VS.85%29.aspx

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
03-04-2010, 02:00 AM
Hi David,

we already have intensivley tested this and we know exactly, what we are
doing. Thanks for your suggestion.

Markus

NewsArchive
03-04-2010, 02:00 AM
> Hi David,
>
> we already have intensivley tested this and we know exactly, what we are
> doing. Thanks for your suggestion.

Markus,

Shortly after I posted this - it hit me - this company has already modified
a manifest, tested, and just needed Friedrich to add the option to make it
more convenient and use the SB method (which I prefer as well - keep as
MUCH as possible in Setupbuilder scripts).

But, I know, others follow these discussions, and it might help someone
else out.

BTW, thanks for all your help in making SetupBuilder a better product!

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
03-04-2010, 02:01 AM
You're welcome.

Markus