Pelles C forum

Pelles C => General discussions => Topic started by: stefan on December 17, 2009, 08:15:14 PM

Title: PellesC with Windows 7
Post by: stefan on December 17, 2009, 08:15:14 PM
Hi all,

I just installed Pelles C 6 on windows 7. On every start of the IDE (poide.exe) the UAC comes up and ask me, if I really want to start this program. Is there any workround on this issue ?

Thanks for your help

Stefan
Title: Re: PellesC with Windows 7
Post by: Bitbeisser on December 20, 2009, 07:03:00 AM
Hi all,

I just installed Pelles C 6 on windows 7. On every start of the IDE (poide.exe) the UAC comes up and ask me, if I really want to start this program. Is there any workround on this issue ?

Thanks for your help

Stefan
Well, that's rather a Windows 7 question than a problem of Pelle's C. See http://technet.microsoft.com/en-us/library/cc709691%28WS.10%29.aspx#BKMK_S2 for details....

Ralf
Title: Re: PellesC with Windows 7
Post by: stefan on December 24, 2009, 02:27:00 AM
Quote
Well, that's rather a Windows 7 question than a problem of Pelle's C. See http://technet.microsoft.com/en-us/library/cc709691%28WS.10%29.aspx#BKMK_S2 for details....

Ralf

Yes, maybe, but PellesC 5 is working perfect, no UAC at all. So anything in the 6th version must have been changed that causes windows to ask.

Did nobody else notice this behavior ?

Thanks for the link, mybe it will solve my problem

Stefan
Title: Re: PellesC with Windows 7
Post by: stefan on January 12, 2010, 09:41:39 PM
Hi all,

nobody ? Am I the only one who has this problem ?  :'(

I tested it on 2 computers with the same result. Login in as administrator or run pelles c as administrator does not solve this problem. Also logged in as administrator the UAC ask me if I really want to execute this unknown program.

As pelles C 5 is working perfectly on the same computer, I think it must be a bug in Pelles C 6 if installed on windows 7.

Please can anyone check this.

kind regards
Stefan
Title: Re: PellesC with Windows 7
Post by: mr.dito on March 02, 2010, 03:54:20 PM
Hi All,
i got the same request when i try to start poide64.exe (6.0.4.0) on Windows 7 Professional 64 bit system.

I also think that may be a version 6 issue but I can't find a way to bypass UAC screen.

Btw, this issue also prevent to launch poide64.exe from inside VisualStudio (very important to me because working on an application ported to VS C++ but with the original RC file from Pelles IDE; VS can compile but can't open Pelles RC files correctly).

If I find a solution, I'll post here... in the mean any solution is welcome!

Thanks for you help
Silvio
Title: Re: PellesC with Windows 7
Post by: Galapagos on March 08, 2010, 04:20:08 PM
Hi All,

I also got the same message on Windows 7.
I also got it in Windows Vista.

Galapagos
Title: Re: PellesC with Windows 7
Post by: CommonTater on June 29, 2010, 02:27:47 PM
Hi all,

I just installed Pelles C 6 on windows 7. On every start of the IDE (poide.exe) the UAC comes up and ask me, if I really want to start this program. Is there any workround on this issue ?

Thanks for your help

Stefan

I believe this is about the manifest in the program's resource section.

Most Win7 programs have a manifest like this....


Code: [Select]
 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
       - <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
          <assemblyIdentity type="win32" name="AutoLogon" version="1.0.0.0" processorArchitecture="X86" />
          <description>Auto logon tool</description>
       - <dependency>
       - <dependentAssembly>
          <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
                processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" />
            </dependentAssembly>
          </dependency>
        - <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
             - <security>
             - <requestedPrivileges>
                 <requestedExecutionLevel level="asInvoker" uiAccess="false" />
               </requestedPrivileges>
  </security>
  </trustInfo>
  </assembly>

Basically there are two execution levels "AsInvoker" and "HighestAvailable" ... if a program is going to shell out to other programs such as poreg you need to use the "HighestAvaialble" to get the launcher to work.  

The easy solution is to turn off UAC if you are going to be entering and leaving POIDE frequently.  With it off everything runs without annoyance.  Of course you can turn it back on after....








Title: Re: PellesC with Windows 7
Post by: TimoVJL on June 29, 2010, 03:29:26 PM
From poide.exe
Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    type="win32"
    name="Pelles C IDE"
    version="6.0.0.0"
    processorArchitecture="x86"
    />
    <dependency>
    <dependentAssembly>
    <assemblyIdentity
        type="win32"
        name="Microsoft.Windows.Common-Controls"
        version="6.0.0.0"
        processorArchitecture="x86"
        publicKeyToken="6595b64144ccf1df"
        language="*"
    />
    </dependentAssembly>
    </dependency>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel
                    level="highestAvailable"
                    uiAccess="false"
                />
            </requestedPrivileges>
        </security>
    </trustInfo>
</assembly>
Title: Re: PellesC with Windows 7
Post by: CommonTater on June 29, 2010, 10:30:04 PM
From poide.exe

Exactly... Mine is "HighestAvailable" as well...
That's going to trigger the UAC every time, unless UAC is turned off.

I'm currently develping on Win7 and turning off UAC (Control Panel->Action Center->UAC) does stop the IDE from prompting.  Of course it has to be turned on sometimes for testing software but for the most part it's pure annoyance, one of Microsoft's worst ideas (and they've had some doozies). 

In my own code I almost always us the "AsInvoker" level.  This requires no elevation from an admin level account and does not trigger UAC when my programs launch.

BTW... Pelles C seems to work really well under Win7... but is in need of up to date library and header files.  It will compile successfully any level of windows api code up to XP-sp3 with it's current libraries, which is just fine considering that XP is still very much alive and well as the OS of choice for HTPC connaseurs.