Recent

Author Topic: Difficulty to run my program on some Windows 10 systems  (Read 2150 times)

AL

  • Sr. Member
  • ****
  • Posts: 256
Difficulty to run my program on some Windows 10 systems
« on: July 03, 2020, 12:53:29 am »
I made a program with Lazarus and started to distribute it several months ago in a package made with Nullsoft 3.04
It is compiled for Win32.
It goes well most of the time.  Occasionnally I have a user which complain that the install program completed but he cannot run the installed exe file.
Sometimes running as administrator will start the program.
I am unable to reproduce on my system.
I think this is related to Smartscreen settings ( or other win10 security settings) that prevent apps that are not from Microsoft store to be executed. Not sure.
Does anyone had a similar experience?  What is a possible cure?

Any hints welcome,
Thanks
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: Difficulty to run my program on some Windows 10 systems
« Reply #1 on: July 03, 2020, 10:45:30 am »
Most likely the problem is overzealous security software (possibly with non standard policies/settings). They often affect minority software more than big-box software because they contain exceptions for them.

- Avoid shipping debug information
- try to sign your binaries.
- try to use up to date installer technology that explicitely supports windows 10.

AL

  • Sr. Member
  • ****
  • Posts: 256
Re: Difficulty to run my program on some Windows 10 systems
« Reply #2 on: July 03, 2020, 01:50:40 pm »

- try to sign your binaries.
- try to use up to date installer technology that explicitely supports windows 10.
Could you suggest any link for these?
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: Difficulty to run my program on some Windows 10 systems
« Reply #3 on: July 03, 2020, 02:55:40 pm »
No, they are just hints of things to look into. Your google is as good as mine.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Difficulty to run my program on some Windows 10 systems
« Reply #4 on: July 03, 2020, 03:07:03 pm »
Occasionnally I have a user which complain that the install program completed but he cannot run the installed exe file.
Try again with antivirus off to determine if antivirus is to blame.

Sometimes running as administrator will start the program.
It may be the case that one user installed the software, and another one is trying to use it. To check that tell the other user to open install directory by hand and try to copy executable to other location. If they can't do that - you have found the reason.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

AL

  • Sr. Member
  • ****
  • Posts: 256
Re: Difficulty to run my program on some Windows 10 systems
« Reply #5 on: July 06, 2020, 02:40:18 am »
Thank you all for the suggestions.
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

 

TinyPortal © 2005-2018