Recent

Author Topic: [SOLVED] Removing elevated privileges  (Read 3170 times)

calm_sea

  • New Member
  • *
  • Posts: 10
[SOLVED] Removing elevated privileges
« on: July 15, 2021, 09:35:05 am »
Hello everybody. I used Lazarus to write a quite large application on Linux (everything good). But now, going to recompile with Windows, the executable produces the UAC warning. I've done a lot of testing, but I can't identify which part of my code requires elevated privileges.  Is there a quick way to locate it?
« Last Edit: July 15, 2021, 01:41:10 pm by calm_sea »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 9606
  • FPC developer.
Re: Removing elevated privileges
« Reply #1 on: July 15, 2021, 09:38:08 am »
Sometimes it is only the file name. Programs with certain words in it, like setup and install, automatically get UAC.

calm_sea

  • New Member
  • *
  • Posts: 10
Re: Removing elevated privileges
« Reply #2 on: July 15, 2021, 01:40:24 pm »
Ok the problem was simple. I had the options project - run level - require administrator ! But the strange thing is that I don't beleave I've ever set it up  :o and also I have just verified that the default for a new project is asinvoker, both in windows and in linux. I don't understand ... however now it's ok

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Removing elevated privileges
« Reply #3 on: July 15, 2021, 02:35:06 pm »
But the strange thing is that I don't beleave I've ever set it up  :o

Probably sometime or other you went to change another option (DPI awareness?) and changed that one by mistake. It happens when you're in a hurry ...
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

calm_sea

  • New Member
  • *
  • Posts: 10
Re: [SOLVED] Removing elevated privileges
« Reply #4 on: July 15, 2021, 04:06:20 pm »
I did other tests, for example, create project from linux and reopen it from windows, change folder permissions, etc ... nothing ...I believe it is as you say ... hurry  :)

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: [SOLVED] Removing elevated privileges
« Reply #5 on: July 15, 2021, 08:33:28 pm »
Sorry, but it has to be said: now I've seen it all, even a "calm_sea" in "a hurry" :D ;D
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018