Cant initialize plugins directory windows 10

Most probably a permission problem, go to the AppFolder (you'll have to change the folder options to be able to see hidden folders) and search for anything related to steam, and verifiy in the properties of the folder, security tab, that permission are ok.

Your own account and SYSTEM account should both have Full Control privileges

If you use the portable (zip-file) version, it doesn’t register itself with Windows, so Windows doesn’t automatically list it for choosing with “Open With…” or similar. However, under most versions of Windows, you can select “browse” in the “Open With” dialog, and go find notepad++.exe yourself.

Or, if you are an advanced user, you can edit your association(s) in your registry. (For example, in mine, HKCR\.txt\ uses the (Default) string value with data txtfile, and HKCR\txtfile\Shell\open\command\ uses the (Default) string value of my full path for notepad++.exe. If you don’t understand any of those terms in these parentheses, you probably should be wary of editing your registry yourself.)

Cant initialize plugins directory windows 10
19th June 2019, 07:10
  #1

Member

 

Join Date: Feb 2009

Posts: 69

Can't initialize plugins directory windows 10/1903


Hi
After updating my system to Windows 10 1903 I got this message on installers created with NISIS:

Can't initialize plugins directory.Please try again later

also could be a problem generated by Avast antivirus
thanks


Last edited by mrjohn; 19th June 2019 at 08:39.

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
19th June 2019, 09:10
  #2

Moderator

 

 

Join Date: Jun 2002

Location: ${NSISDIR}

Posts: 5,528

What is the exact message? Press Ctrl+C in the dialog...


IntOp $PostCount $PostCount + 1

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
19th June 2019, 14:55
  #3

Member

 

Join Date: Feb 2009

Posts: 69

Hi,exact message:

---------------------------
Install NET SFE
---------------------------
Error! Can't initialize plug-ins directory. Please try again later.
---------------------------
OK
---------------------------

seems to me the Avast is the problem,disabling it seems to work

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
19th June 2019, 16:46
  #4

Moderator

 

 

Join Date: Jun 2002

Location: ${NSISDIR}

Posts: 5,528

This happens if CreateDirectory fails for "%Temp%\nsXYZ.tmp" which very much sounds like a security tool that is trying too hard.

You can work around it with something like this

PHP Code:

!include LogicLib.nsh
Function .onInit
CreateDirectory 
"$Temp\3b448375-b854-42b2-a42e-b4c74cac54b8"
${IfNot} ${Errors}
    
RMDir "$Temp\3b448375-b854-42b2-a42e-b4c74cac54b8"
${Else}
    ${ForEach} $
0 0 9999 1
        ClearErrors
        CreateDirectory 
"$LocalAppData\ns$0.tmp"
        
${IfNotThen} ${Errors} ${|} ${Break} ${|}
    ${
Next}
    
UnsafeStrCpy $PluginsDir "$LocalAppData\ns$0.tmp"
${EndIf}
InitPluginsDir
FunctionEnd 


IntOp $PostCount $PostCount + 1

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
20th June 2019, 09:48
  #5

Member

 

Join Date: Feb 2009

Posts: 69

Hi
tested your code but the same message/error
thanks

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
20th June 2019, 13:24
  #6

Moderator

 

 

Join Date: Jun 2002

Location: ${NSISDIR}

Posts: 5,528

And if you change $LocalAppData to $Desktop? Is the AV blocking all folders?


IntOp $PostCount $PostCount + 1

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
20th June 2019, 15:33
  #7

Member

 

Join Date: Feb 2009

Posts: 69

same problem with $Desktop
yes that seems to do

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Cant initialize plugins directory windows 10
3rd July 2019, 06:12
  #8

Member

 

Join Date: Feb 2009

Posts: 69

Hi
found the problem:disabling Avast Cybercapture option fix the problem,seems that it opens the installer twice:first,for one second in a 'sandbox'...

Cant initialize plugins directory windows 10
 
Cant initialize plugins directory windows 10

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.