FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Manifest for Windows 10
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
Manifest for Windows 10
Posted: Sat Aug 19, 2017 05:36 PM
I changed the .manifest file with the optimization information for Windows 7,8,8,1 and 10 and call the access request to administrator when loaded.
Include in the resource file

File Windows10.manifest
Code (fw): Select all Collapse
<?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> 
        <!--This Id value indicates the application supports Windows 10 functionality-->
          <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
        <!--This Id value indicates the application supports Windows Vista functionality -->
          <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> 
        <!--This Id value indicates the application supports Windows 7 functionality-->
          <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
        <!--This Id value indicates the application supports Windows 8 functionality-->
          <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
        <!--This Id value indicates the application supports Windows 8.1 functionality-->
          <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      </application> 
  </compatibility>

  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />  
       </requestedPrivileges>
    </security>
  </trustInfo>

<assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="FiveTech Software.FiveWin.32bits"
    type="win32"
/>
<description>Your application description here.</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Manifest for Windows 10
Posted: Sun Aug 20, 2017 05:02 AM

many thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Manifest for Windows 10
Posted: Sun Aug 20, 2017 08:57 AM

I tried the manifest but the buttonbar (at least the one of the preview window) has vanished.

EMG

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Manifest for Windows 10
Posted: Sun Aug 20, 2017 09:49 AM
Hi,

Code (fw): Select all Collapse
<description>Your application description here.</description>


When I write "My Application" in description above, Should I see "My Application" in Details of Properties of application?

Thanks,
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Manifest for Windows 10
Posted: Fri Aug 25, 2017 09:06 PM
Hakan

In order to 'burn' your development and Version Information .. save this code to Version.Rc and add Version.rc to your link list. Use Noteapad to edit your specific information

Rick Lipkin

Code (fw): Select all Collapse
//
// Version Information resources
//
LANGUAGE 0, SUBLANG_NEUTRAL
1 VERSIONINFO
    FILEVERSION     31,0,0,0
    PRODUCTVERSION  31,0,0,0
    FILEOS          VOS__WINDOWS32
    FILETYPE        VFT_UNKNOWN
    FILESUBTYPE     VFT2_UNKNOWN
    FILEFLAGSMASK   0
    FILEFLAGS       0
{
    BLOCK "StringFileInfo"
    {
        BLOCK "04090025"
        {
            VALUE "CompanyName", "CCI by Richard Lipkin"
            VALUE "FileDescription", "Vehicle Maint    "
            VALUE "FileVersion", "31.0 Prod"
            VALUE "LegalCopyright", "Custom Computers Inc "
        }
    }
    BLOCK "VarFileInfo"
    {
        VALUE "Translation", 0x0409, 0x0025
    }
}
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 07:58 AM
Rick,

Where do you get 0x0025 value from? It is not mentioned here:

https://msdn.microsoft.com/it-it/library/windows/desktop/aa381049(v=vs.85).aspx

I'm using 1200 instead.

EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 02:07 PM
Enrico

I do not know ... found this .rc on the internet somewhere ... it appears 0x0025 is Estonian ... think I will remove that translation

https://www.microsoft.com/resources/msd ... fault.mspx

Rick Lipkin

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 02:30 PM
Enrico

Interesting enough .. if I remove 0x0025 .. and recompile .. I get No language translation

Rick Lipkin


Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 03:14 PM

Can I see your changed VersionInfo?

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 03:38 PM
Rick Lipkin wrote:Enrico

Interesting enough .. if I remove 0x0025 .. and recompile .. I get No language translation

Rick Lipkin


Rick, if you change this ( example for spanish )


BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0C0A, 0x0409



You have change also (same values), not?


BLOCK "StringFileInfo"
{
BLOCK "0C0A0409"
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 06:18 PM
Rick Lipkin wrote:Hakan

In order to 'burn' your development and Version Information .. save this code to Version.Rc and add Version.rc to your link list. Use Noteapad to edit your specific information

Rick Lipkin

Code (fw): Select all Collapse
//
// Version Information resources
//
LANGUAGE 0, SUBLANG_NEUTRAL
1 VERSIONINFO
    FILEVERSION     31,0,0,0
    PRODUCTVERSION  31,0,0,0
    FILEOS          VOS__WINDOWS32
    FILETYPE        VFT_UNKNOWN
    FILESUBTYPE     VFT2_UNKNOWN
    FILEFLAGSMASK   0
    FILEFLAGS       0
{
    BLOCK "StringFileInfo"
    {
        BLOCK "04090025"
        {
            VALUE "CompanyName", "CCI by Richard Lipkin"
            VALUE "FileDescription", "Vehicle Maint    "
            VALUE "FileVersion", "31.0 Prod"
            VALUE "LegalCopyright", "Custom Computers Inc "
        }
    }
    BLOCK "VarFileInfo"
    {
        VALUE "Translation", 0x0409, 0x0025
    }
}


Thank you very much.

I try to compile with microsoft rc.exe. I got some errors.

Code (fw): Select all Collapse
Version.rc(5) : error RC2147 : SUBLANGUAGE ID not a number

Version.rc(9) : error RC2104 : undefined keyword or key name: VOS__WINDOWS32

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.exe"' : D?n?? kodu '0x2'
Stop.


Is there any solution?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Manifest for Windows 10
Posted: Sat Aug 26, 2017 07:04 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Manifest for Windows 10
Posted: Sun Aug 27, 2017 07:37 PM
Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion