Welcome, Guest
Username: Password: Remember me
Share your code snippets, screen shots etc. here
  • Page:
  • 1

TOPIC:

Filename strangeness 07 Jun 2019 08:34 #9222

  • wriedmann
  • wriedmann's Avatar
  • Topic Author


  • Posts: 3366
  • Hello,

    I had problems debugging an application with XIDE.
    The strange thing is that the application requires elevated rights to run when the assembly file name contains the word "upda", but it does not require them, when the contained word is "upd" alone.
    For example: using the assembly file name "bnUpdTester" it works normally, with the filename "bnUpdaTester" it requires elevated rights.
    Wolfgang
    P.S. I'm using Windows 10 1809 and XIDE
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    Filename strangeness 07 Jun 2019 09:32 #9223

    • SHirsch
    • SHirsch's Avatar


  • Posts: 279
  • Hi Wolfgang,

    I remember that apps with update or setup in their name are automatically handled as updates that need elevated rights.
    In your app name is this the case 'bnUPDATEster'.

    Stefan

    Please Log in or Create an account to join the conversation.

    Filename strangeness 07 Jun 2019 09:40 #9224

    • SHirsch
    • SHirsch's Avatar


  • Posts: 279
  • Please Log in or Create an account to join the conversation.

    Filename strangeness 07 Jun 2019 09:47 #9225

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Stefan,

    thank you very much! Initially my application filename was bnUpdateTester... so I wondered why it requested elevated rights. I knew something like this with the word "setup" and "install", but didn't knew until today that also "update" triggered this detection.
    Anyway, I'm more happy than ever to have changed the update process of my applications to the download of a zip file from the internet and an internal extraction (all from inside of the application).
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    Filename strangeness 07 Jun 2019 11:29 #9226

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • This is the reason why XIDE install files are named for example XIDE_Set_up_1.17.exe and not XIDE_Setup_1.17.exe :)
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Filename strangeness 13 Jun 2019 16:19 #9309

    • ArneOrtlinghaus
    • ArneOrtlinghaus's Avatar


  • Posts: 348
  • I will ask Microsoft immediately that they should also include set_up as a keyword for higher rights :-) (I had also similar problems. I remember that for one program also the manifest contents triggered the higher rights)

    In the last years Windows became kinder with our programs whereas some antivirus programs got more aggressive deleting our exe files. And this because of behavior driven controls and not because of signatures. Create and delete many temporary files and immediately the antivirus program starts looking at you...

    Arne

    Please Log in or Create an account to join the conversation.

    Filename strangeness 13 Jun 2019 16:39 #9312

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • Yeah, to me it looks like that antiviruses have became the real viruses lately..

    About namings, can still use S_e_t_u_p, SE7up, Set-up etc, they will never win this battle! But I will stop giving you more names to report in advance :)
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Filename strangeness 01 Aug 2019 14:48 #10079

    • ArneOrtlinghaus
    • ArneOrtlinghaus's Avatar


  • Posts: 348
  • It is possible to switch off this strange behavior by including the following code into the manifest file of the exe:
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
    <requestedPrivileges>
    <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
    </requestedPrivileges>
    </security>
    </trustInfo>

    Please Log in or Create an account to join the conversation.

    Filename strangeness 02 Aug 2019 00:09 #10080

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • ArneOrtlinghaus wrote: It is possible to switch off this strange behavior by including the following code into the manifest file of the exe:
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
    <requestedPrivileges>
    <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
    </requestedPrivileges>
    </security>
    </trustInfo>


    Thanks for the info Arne!
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Filename strangeness 02 Aug 2019 05:48 #10081

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Arne,
    thank you very much! This is interesting.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1