Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-12

Are you on Windows 10? Are you experiencing slow installs? Here's the deal...

12 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

Are you on Windows 10? I bet you are. The reason you're having issues is because Windows 10 is designed to be locked down, and by locked down I mean certain registry keys cannot be view or edited, programs like group policy editor have been removed for most users, and the Microsoft security scanning tool is always on and cannot be turned off or configured.

The security scanning tool is activated when you run programs named install.exe or setup.exe (or possible any other program downloaded from the Internet which writes files to your hard drive). When setup.exe create thousands of files (ppu, o, pas, lfm, executable tools) will consume an inordinate amount of time as it tries to examine each file and compare their signatures against a database or even a signature of possible viruses and other malware.

While this might be good for general users, helping to prevent them from compromising their machines by installing random stuff from the internet, for developer tools which install thousands of little files, it ends up being a real nightmare.

The solution is probably to stop naming install programs setup.exe or install.exe and also to purchase a code signing certificate from a legitimate vendor (one that Microsoft considers valid) and use that to sign the installer. The downside is renaming an installer might not fix the issue, and a code signing certificate costs money (do you want to send me $200) and only lasts for specific length of time (one year, maybe more depending on how much you pay), at which point you need to spend money on another certificate.

My solution to this mess is simple, albeit not too forward thinking: Don't use Windows 10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151202/39b4204c/attachment.html>

Reply by email

Anthony Walter
to Graeme Geldenhuys

Sorry Graeme, I was replying to someone on the Lazarus forums bemoaning the long install times when using an installer from getlazarus.org. I should have prefaced the first line with this information. The reason I posted it here was because I thought it would be useful if other users understood why sometimes things don't work as intended on Windows. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151202/3acc4d81/attachment.html>

Reply by email

Jy V
to Anthony Walter: Are you on Windows 10? I bet you are. The reason you're having issues is because Windows…
Anthony Walter wrote
Microsoft security scanning tool is always on and cannot be turned off or configured.

On Win10, to turn it off I am using this interactive sequence: Control Panel -> (View small icons) -> Windows Defender -> Settings -> RealTimeProtection=Off CloudBasedProtection=Off SampleSubmission=Off -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151202/bc646099/attachment.html>

Reply by email

Marco van de Voort
to Jy V
Jy V wrote 7 lines
> Microsoft security scanning tool is always on and cannot be turned off or > configured. > On Win10, to turn it off I am using this interactive sequence: Control Panel -> (View small icons) -> Windows Defender -> Settings -> RealTimeProtection=Off CloudBasedProtection=Off SampleSubmission=Off

Did you read the text next to realtimeprotection?

Reply by email

Jy V
to Marco van de Voort
Marco van de Voort wrote 12 lines
On Wed, Dec 02, 2015 at 12:20:14PM +0100, Jy V wrote: > > Microsoft security scanning tool is always on and cannot be turned off or > > configured. > > > > On Win10, to turn it off I am using this interactive sequence: > Control Panel -> (View small icons) -> Windows Defender -> Settings -> > RealTimeProtection=Off CloudBasedProtection=Off SampleSubmission=Off Did you read the text next to realtimeprotection?

For the purpose of installing a safe program (Lazarus) faster which is known to copy zillions of files,
I observed that the process is 10 times faster when turning off RealTimeProtection,

I guess the text you refer to is: "You can turn this off temporarily, but if it's off for a while we'll turn it back on automatically" I read this message as "for the purpose of boosting some setup, turning it off is recommended" :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151202/8511ed1e/attachment.html>

Reply by email

Jy V
to Marco van de Voort: Did you read the text next to realtimeprotection?
Marco van de Voort wrote 12 lines
On Wed, Dec 02, 2015 at 12:20:14PM +0100, Jy V wrote: > > Microsoft security scanning tool is always on and cannot be turned off or > > configured. > > > > On Win10, to turn it off I am using this interactive sequence: > Control Panel -> (View small icons) -> Windows Defender -> Settings -> > RealTimeProtection=Off CloudBasedProtection=Off SampleSubmission=Off Did you read the text next to realtimeprotection?

In my previous answer I forgot to provide permanent disabling Windows Defender
in a command run Regedit.exe
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender create a value reg_dword "DisableAntiSpyware" with value "1" reboot and Windows Defender will say that it has been disabled by group policy editor
*.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151202/d4780010/attachment.html>

Reply by email

Marco van de Voort
to Jy V: In my previous answer I forgot to provide permanent disabling Windows Defender in a…
Jy V wrote 9 lines
In my previous answer I forgot to provide permanent disabling Windows Defender in a command run Regedit.exe HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender create a value reg_dword "DisableAntiSpyware" with value "1" reboot and Windows Defender will say that it has been disabled by group policy editor *.*

(that's what I first tried too, and that disables changing the settings yes, but the next update will turn it on regardlessly, and then the option to disable the realtimeprotection is that grey, but you can see it is turned on. There are some more settings to make, search for "nodefender")

Reply by email

Richard Mace
to Anthony Walter: Are you on Windows 10? I bet you are. The reason you're having issues is because Windows…
Show quoted text 5 lines
My solution to this mess is simple, albeit not too forward thinking: Don't use Windows 10

?The trouble is, that's not an option as if your coding for Windows, that will be the majority platform at some point.

Richard?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151204/68c65bf1/attachment.html>

Reply by email