texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.7k stars 344 forks source link

Windows 11: Smart App Control blocks the installation #3689

Open KHerzberg opened 1 month ago

KHerzberg commented 1 month ago

Environment

Expected behavior

The installation program is started by double-clicking on texstudio-4.8.1-win-qt6.exe.

Actual behavior

See Screenshot. SmartApp

How to reproduce

Activate Smart App Control. image

Smart App Control adds significant protection from new and emerging threats by blocking apps that are malicious or untrusted. https://support.microsoft.com/en-us/topic/what-is-smart-app-control-285ea03d-fa88-4d56-882e-6698afdb7003#bkmk_unknown

sunderme commented 1 month ago

this is rather unlikely as a certificate costs >$150 per year.

timhoffm commented 1 month ago

@sunderme I'm not active anymore with the project, so none of my business. But if you want to generate revenue for a certificate, probably the easiest way is to activate github sponsors. Of course it's administrative overhead and you also have to care for taxes. So it's a decision whether you are willing to do the extra effort.

KHerzberg commented 1 month ago

I just happened to come across a solution that may have to be downgraded to a workaround. The "Winget" tool was introduced as standard in Windows 11. The Linux pandent for this in Debian distributions is known as "sudo apt" or "sudo apt-get".

To install Textstudio, simply enter the command "winget install texstudio" in an admin powershell (not cmd). That's it. The latest version is downloaded from Git and installed. In my case, only an update is carried out, as I managed to install an older version of TexStudio. image

For updates, the command "winget upgrade texstudio" or, if you want to update all programs on the computer, the command "winget upgrade --all" is used. image

The big question is how long Microsoft will allow this solution/workaround. It is actually nothing more than the .exe provided.

thawaffle commented 1 month ago

@KHerzberg thank you so much for providing this solution. For me, the installer .exe does not do anything let alone open up a Smartscreen dialogue. I just had a gut feeling to look up the github project and open this issue first.