Recent

Author Topic: [SOLVED] problem using FPCUPDELUXE  (Read 2293 times)

440bx

  • Hero Member
  • *****
  • Posts: 4483
[SOLVED] problem using FPCUPDELUXE
« on: January 24, 2024, 06:04:41 am »
Hello,

I was attempting to install the trunk versions of FPC and Lazarus using the latest version of FPCUPDELUXE (v2.4.0c) and got "Permission denied" and "Error 2" (please see attached screenshot for more details.)

FPCUPDELUXE was running as administrator and the install directory specified did not exist, IOW, it's a brand new directory created by FPCUPDELUXE.

Solutions and/or suggestions greatly appreciated,

Thank you.

ETA:

Windows 7 SP1
« Last Edit: January 26, 2024, 05:23:31 am by 440bx »
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1756
Re: problem using FPCUPDELUXE
« Reply #1 on: January 24, 2024, 11:45:14 am »
I am unable to reproduce. It might be that a virus-scanner is busy scanning the ppcx64 executable while the FPC make tries to move it.
Sidenote. Do NOT run fpcupdeluxe as administrator. It is meant to install a single, non-root user FPC and Lazarus.

440bx

  • Hero Member
  • *****
  • Posts: 4483
Re: problem using FPCUPDELUXE
« Reply #2 on: January 24, 2024, 05:16:46 pm »
Hello DonAlfredo,

Thank you for the reply.  There is no virus scanner of any kind in that installation.

Initially I wasn't running fpcupdeluxe as administrator but, since I was getting the _exact_ same problem, I figured I'd try running it as administrator to ensure it had access to everything.

Any other ideas ?

Thank you.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1756
Re: problem using FPCUPDELUXE
« Reply #3 on: January 24, 2024, 06:51:51 pm »
I do not have a clue.
However. Few things you can do or try.
1.
Try to install FPC stable first. In the same manner, but in a different directory. As a normal user.
It might be that trunk itself causes this problem.
2.
Just to be sure, exclude the install directory from any (even Windows) virus scanner.
I myself put all FPC and Lazarus combo's in a special directory (c:\myfpcinstalls) on my main disk that is excluded from scanners.

440bx

  • Hero Member
  • *****
  • Posts: 4483
Re: problem using FPCUPDELUXE
« Reply #4 on: January 24, 2024, 11:46:33 pm »
1.
Try to install FPC stable first. In the same manner, but in a different directory. As a normal user.
It might be that trunk itself causes this problem.
I tried installing, FPC only, "stable", "fixes", "3.3.1" and a few others.  The result was always the same: the _exact_ same error I showed in the attachment to the first post.

2.
Just to be sure, exclude the install directory from any (even Windows) virus scanner.
I myself put all FPC and Lazarus combo's in a special directory (c:\myfpcinstalls) on my main disk that is excluded from scanners.
There is _no_ virus scanner active in the machine.  No antivirus is installed and the Windows defender service is disabled.  To be absolutely certain no "antivirus stuff" could possibly be getting in the way, I used Process Hacker (in addition to the windows services applet) to visually inspect every running service one by one to ensure it is _not_ an "antivirus" associated service.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

ccrause

  • Hero Member
  • *****
  • Posts: 933
Re: problem using FPCUPDELUXE
« Reply #5 on: January 25, 2024, 08:34:35 am »
Is your computer part of a managed Windows domain?  This week I started seeing "Access denied" issues on old FPC executables that used to run fine a week ago.  My user ID has local admin rights, but that doesn't help at all.  My suspicion is that this is a domain policy.  A virus scan shows no thread detected.

Thaddy

  • Hero Member
  • *****
  • Posts: 15526
  • Censorship about opinions does not belong here.
Re: problem using FPCUPDELUXE
« Reply #6 on: January 25, 2024, 09:17:19 am »
As far as I can tell you can simply add a manifest resource that sets HighestAvailable. At least on Windows 11 that will solve this? Let me know if you already added a manifest to those failing applications. I have some research time...A lot more than people who are still pursuing a career. :D

Note that I experienced the same problems with old apps and solved it like above.
A few exceptions were some apps (well, two) that *required* code signing on Win11.
1. that needed direct hardware access
2. that needed low-level access to network resources

You can still sign that with your MSDN subscription provided signing, during development but it fails when you distribute it. Then you need to sign with a payed certificate.
« Last Edit: January 25, 2024, 09:29:01 am by Thaddy »
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

Josh

  • Hero Member
  • *****
  • Posts: 1321
Re: problem using FPCUPDELUXE
« Reply #7 on: January 25, 2024, 10:13:56 am »
@440bx

just installed win7 64 in VM

fpcupdeluxe would not complete, different error to you though.

installed opensll 1.1.1w from shinning Light

https://slproweb.com/download/Win64OpenSSL_Light-1_1_1w.exe

and copy the installed libcrypto libssl dlls from this install into fpcupdeluxe folder, also needed installed
https://aka.ms/vs/15/release/vc_redist.x64.exe

fpc trunk then installed ok
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

440bx

  • Hero Member
  • *****
  • Posts: 4483
Re: problem using FPCUPDELUXE
« Reply #8 on: January 26, 2024, 05:23:08 am »
Before anything I want to mention that the problem is solved.  I wish I could take or give credit for solving it but, it seems to have gone away by itself. 

The only thing I can think of that _may_ have made a difference is that I rebooted the host machine (the real hardware machine.)  At least in theory, that should not have affected the VM where Lazarus and FPC were being installed but, a problem in the host can affect a guest.  Maybe there was some invisible thing causing a problem in the guest.




Is your computer part of a managed Windows domain? 
No, my development machine is a standalone VM.  The host (hardware machine) is also standalone (just a plain desktop PC.)

Thank you, that could have definitely been a reason for the problem.




@Thaddy,

Thank you for the offer to help.




@Josh

Yours was the next thing I was going to try.  Fortunately it became unnecessary. 

Thank you for the help.




@DonAlfredo,

Your Fpcupdeluxe is the cat's meow!  Thank you for the help you offered and, of course, the app.



(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1756
Re: [SOLVED] problem using FPCUPDELUXE
« Reply #9 on: January 26, 2024, 07:37:47 am »
Good !

Quote
installed opensll 1.1.1w from shinning Light
https://slproweb.com/download/Win64OpenSSL_Light-1_1_1w.exe
and copy the installed libcrypto libssl dlls from this install into fpcupdeluxe folder, also needed installed
https://aka.ms/vs/15/release/vc_redist.x64.exe
Might be good to add this into the Wiki page !

 

TinyPortal © 2005-2018