NO

Author Topic: PellesC with Windows 7  (Read 7531 times)

stefan

  • Guest
PellesC with Windows 7
« 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

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 771
Re: PellesC with Windows 7
« Reply #1 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

stefan

  • Guest
Re: PellesC with Windows 7
« Reply #2 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

stefan

  • Guest
Re: PellesC with Windows 7
« Reply #3 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

mr.dito

  • Guest
Re: PellesC with Windows 7
« Reply #4 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

Galapagos

  • Guest
Re: PellesC with Windows 7
« Reply #5 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

CommonTater

  • Guest
Re: PellesC with Windows 7
« Reply #6 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....








« Last Edit: June 29, 2010, 02:29:33 pm by CommonTater »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1965
Re: PellesC with Windows 7
« Reply #7 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>
May the source be with you

CommonTater

  • Guest
Re: PellesC with Windows 7
« Reply #8 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.






 
« Last Edit: June 29, 2010, 10:40:37 pm by CommonTater »