Windows Blocking .DLL

Windows Blocking .DLL

My_Civil_3D
Advocate Advocate
3,529 Views
7 Replies
Message 1 of 8

Windows Blocking .DLL

My_Civil_3D
Advocate
Advocate

Hi Guys i am busy deploying some tools to team memebers, for some reason their Pc's keep blocking the .dll files. i have to them maubualy cconnect to their pc's go into the properties of the dll and unblock it. why is this hapening, anything i can do in my code to stop this?

Civil 3D Certified Professional
0 Likes
3,530 Views
7 Replies
Replies (7)
Message 2 of 8

matt.worland
Advisor
Advisor

I don't know of a way to prevent that with code. Windows has security measures that prevent unwanted changes to users computers and it will put a block on a file it thinks could pose a threat; DLLs, EXEs, PDFs... If the file is coming from an unsafe place (network or internet) it will put a block on the file.

 

As you found, you can manually unblock it through the properties. You can also adjust the Group Policies to prevent the blocking. Below is a link explaining some potential solutions, but always proceed with caution when disabling safety measures and ensure it complies with company policy.

 

Windows Blocking Downloaded Files...

 

If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"
0 Likes
Message 3 of 8

Ed__Jobe
Mentor
Mentor

Where are you storing the files? It shouldn't block them if you store them on the local network. But it will block them if you download from the internet, like OneDrive, Dropbox. You may also have security too tight on your local network. This is from Microsoft Copilot.

If you’re experiencing issues with Windows blocking files downloaded from a local network, there are a few steps you can take to address this:

    Configure Attachment Manager:
        You can manually configure the Attachment Manager to prevent downloaded files from being blocked. Here’s how:
            Local Group Policy Editor:
                Type gpedit.msc in the Start menu search bar and press Enter.
                Click on the Local Group Policy Editor icon in the search results.
                Under User Configuration, double-click on Administrative Templates to expand it.
                Navigate to Windows Components > Attachment Manager.
                Double-click on Do not preserve zone information in file attachments.
                Select Enabled and click Apply.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 4 of 8

Ed__Jobe
Mentor
Mentor

@matt.worland Your link requires logging into the website.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 8

matt.worland
Advisor
Advisor

Thanks @Ed__Jobe 

Attached is a PDF incase you are unable to view the website.

If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"
0 Likes
Message 6 of 8

My_Civil_3D
Advocate
Advocate

let me explain a bit more on our office processes. we are currently busy with moving away from servers and going full time to everything being in the cloud. for us to be able to use the desktop connector for the cloud we have to zip the .dll files because the deskop connector does not accept .dll files. and it seems the issue comes in when unzipping that it gets blocked. i cannot make any changes to any windows settings as this is controlled by IT which wont allow it. is there any other way to try and unzip the files?

Civil 3D Certified Professional
0 Likes
Message 7 of 8

daniel_cadext
Advisor
Advisor

Probably won’t work, but what about renaming the extension, say from .dll to .arx?

Can you deploy using an installer like .msi?

Also you can zip/unzip files with .NET, or choose another compression method

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes
Message 8 of 8

My_Civil_3D
Advocate
Advocate

i have managed to solve this by writing a small program to unzip the files and also check if its locked or not and unlock it. this seems to work well. thanks for all the input

Civil 3D Certified Professional