[wpkg-users] Win10 20H2+ and WPKG slowness...

Kris Lou klou at themusiclink.net
Fri Jul 1 01:30:00 CEST 2022


Perhaps this?

https://github.com/wpkg/wpkg-js/blob/36adca693497e5ea17a0ccbc75af71b6d4449a66/wpkg.js#L10639

<snip>
function scanUninstallKeys(nameSearched) {
var uninstallPath = new Array();
var scanKeys = new Array();
scanKeys.push("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall");
if (is64bit()) {
// scan redirected path as well (assures that 32-bit applications are
// found)
scanKeys.push("SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall");
}

// try regular expression matching
var regularExpression = true;
for (var i=0; i < scanKeys.length; i++) {
var regPath = scanKeys[i];
/*
* recursive registry reading is very slow with WSH. Therefore supporting
Sub-keys in uninstall entries slows
* down uninstall key scanning dramatically. So I leave it off for the
moment. Please use registry key checks if
* you need to check an uninstall key defined within a sub-key of the
uninstall registry location
*/
</snip>

Change your check to see if processing times improve.

Kris Lou
klou at themusiclink.net


On Thu, Jun 30, 2022 at 2:40 PM Marco Gaiarin <gaio at lilliput.linux.it>
wrote:

> Mandi! Andreas Habel
>   In chel di` si favelave...
>
> > I experienced something similar -- simply scanning the WPKG packages
> suddenly took about an hour instead of 1-2 minutes.
> > I found out that I had to whitelist cscript.exe in my anti-virus
> scanner. Since then things have been normal again.
>
> I've thinked about the AV solution mee too, but why impact Win10 and not
> Win7? Anyway, i've setup an exclusion rules for cscript, but nothing
> changed.
>
> Anyway, in some days i'll have to change the AV solution, so more info will
> come...
>
> --
>   Il Re di Spagna fece vela, verso l'isola incantata
>   pero` quell'isola non c'era,
>   e mai nessuno l'ha trovata                            (F. Guccini)
>
>
> ---------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20220630/e221565a/attachment.html>


More information about the wpkg-users mailing list