Lazarus

Programming => Operating Systems => Windows => Topic started by: AL on July 03, 2020, 12:53:29 am

Title: Difficulty to run my program on some Windows 10 systems
Post by: AL 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
Title: Re: Difficulty to run my program on some Windows 10 systems
Post by: marcov 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.
Title: Re: Difficulty to run my program on some Windows 10 systems
Post by: AL 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?
Title: Re: Difficulty to run my program on some Windows 10 systems
Post by: marcov 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.
Title: Re: Difficulty to run my program on some Windows 10 systems
Post by: avra 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.
Title: Re: Difficulty to run my program on some Windows 10 systems
Post by: AL on July 06, 2020, 02:40:18 am
Thank you all for the suggestions.
TinyPortal © 2005-2018