From: Kai T. <kti...@go...> - 2012-02-11 10:04:12
|
Hello Jim, well to provide a template-manifest file for users in Wiki, or maybe even in repository might be something useful. AFAIK doesn't require msvcrt.dll manifest-file by itself. But of course some compiled executable might need it for getting elevation etc. If you want to use msvcr???.dll runtime, then you need to provide it, as otherwise application won't start anymore. There are two ways to provide manifest-files for executables (dll). One way is to provide the manifest-file with same name as executable with .manifest extension. The other way is to include it as MANIFEST resource. An manifest isn't something fixed and needs for some applications adjustments. Also binutils' ld has the issue that you can't link multiple resource-objects. So it is nothing we can provide as default within our runtime. But maybe it would be worth to write a manifest-generator for mingw-w64 as tool. This might ease the generation of the required xml-file for end-users pretty much, and avoids typos/thinkos. Regards, Kai 2012/2/11 Jim Michaels <jmi...@ya...>: > what exact version of msvcrt.dll is required for latest version of auto > build? is it a good idea to make this a dependentassembly in the xml > manifest? something like this? > and what should this assemblyIdentity name= look like, and what is the > publicKeyToken? > should I even mention msvcrt.dll? what about the other dll's? (windows will > try to load the DLL's and may try to execute DLLMain(), not sure) > > <?xml version='1.0' encoding='UTF-8' standalone='yes'?> > <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> > <dependency> > <dependentAssembly> > <assemblyIdentity type='win32' name='Microsoft.VC80.CRT' > version='8.0.50608.0' processorArchitecture='x86' > publicKeyToken='1fc8b3b9a1e18e3b' /> > <file name="msvcrt.dll"/> > <file name="libgcc_s_sjlj-1.dll"/> > <file name="libstdc++-6.dll"/> > </dependentAssembly> > </dependency> > </assembly> > > and I also leard about this section which adds vista and 7 compatibility > mode to older apps I guess. > <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> > > > my manifests look like this, for cross-windows-version compatibility: > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> > <ms_asmv2:trustInfo > xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2"> > <ms_asmv2:security> > <ms_asmv2:requestedPrivileges> > <ms_asmv2:requestedExecutionLevel > level="asInvoker"> > </ms_asmv2:requestedExecutionLevel> > </ms_asmv2:requestedPrivileges> > </ms_asmv2:security> > </ms_asmv2:trustInfo> > <file name="msvcrt.dll"/> > <file name="libgcc_s_sjlj-1.dll"/> > <file name="libstdc++-6.dll"/> > </assembly> > > > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> > <ms_asmv2:trustInfo > xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2"> > <ms_asmv2:security> > <ms_asmv2:requestedPrivileges> > <ms_asmv2:requestedExecutionLevel > level="asInvoker"> > </ms_asmv2:requestedExecutionLevel> > </ms_asmv2:requestedPrivileges> > </ms_asmv2:security> > </ms_asmv2:trustInfo> > </assembly> > > for some odd reason, df.exe works, while whereis.exe comes up with "the > application failed to initialize properly (0xc0000034)" built with the same > manifest. > I can't figure this out. > I have a windows 2008 R2 (like 7) user who is saying he has to run my df.exe > program as administrator or it won't give drive space results,just errors. > I can give a list of win32 functions it is using, but I didn't think any of > them were earth shattering or would set off UAC. > I am just about at the end of what I know to do. and this bothers me: > http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/e81f7ec2-1889-4f91-b7be-f3fe48dd578b > because mingw-w64 probably doesn't contain any link options for UAC. > not only this, but 2 list<string> I was .merge()'ing to get a dir count > turn up to me totally empty when I printf their .size() in whereis. > everything I have done should give me a list of directories. but it > doesn't. > > I need manifests that will work in 8, 7, vista, xp, and 2000. does ANYONE > have a clue as to how these should look for an EXE, given the fact that > mingw-w64 exe's depend upon msvcrt.dll, libgcc_s_sjlj-1.dll, and > libstdc++-6.dll at a minimum? > > > if I use my vista+ assembly I get "not a valid win32 application" which is > too generic a message. nothing shows in the event log. > > > ------------- > Jim Michaels > jmi...@ya... > JimM@JimsComputerRepairandWebDesign.com > http://JimsComputerRepairandWebDesign.com > http://JesusnJim.com (my personal site, has software) > --- > Computer memory measurements, SSD measurements, microsoft disk size > measurements (note: they will say GB or MB or KB or TB when it is not!): > [KiB] [MiB] [GiB] [TiB] > [2^10B=1,024B=1KiB] > [2^20B=1,048,576B=1MiB] > [2^30B=1,073,741,824B=1GiB] > [2^40B=1,099,511,627,776B=1TiB] > hard disk industry disk size measurements: > [KB] [MB] [GB] [TB] > [10^3B=1,000B=1KB] > [10^6B=1,000,000B=1MB] > [10^9B=1,000,000,000B=1GB] > [10^12B=1,000,000,000,000B=1TB] > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Mingw-w64-public mailing list > Min...@li... > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination |