Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows UAC Prompt #3

Open
AnchyDev opened this issue Jul 29, 2024 · 4 comments
Open

Windows UAC Prompt #3

AnchyDev opened this issue Jul 29, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@AnchyDev
Copy link

AnchyDev commented Jul 29, 2024

When patching the file the binary now require administrator privileges to run.

The reason for this is because Windows will automatically ask for admin privileges for any files that contains the words patch, update, installer, etc.. (I'm not joking).

It might be a good idea to just come up with a different name for simplicity for inexperience and ignorant users.

@stoneharry
Copy link
Owner

This is good to know, thank you. I will change it.

@stoneharry stoneharry self-assigned this Jul 29, 2024
@stoneharry stoneharry added the enhancement New feature or request label Jul 29, 2024
stoneharry added a commit that referenced this issue Jul 29, 2024
@stoneharry
Copy link
Owner

stoneharry commented Jul 29, 2024

Published v1.2.

Though I now realise .NET 4.x is what comes with most Windows versions. Ah well.

@AnchyDev
Copy link
Author

Published v1.2.

Though I now realise .NET 4.x is what comes with most Windows versions. Ah well.

Since it is a pretty basic console app, you can write it in .NET 8 and publish it with the AOT compiler by adding this setting to your project file:
<PublishAot>true</PublishAot>

You can then publish for different environments using the publish command:
dotnet publish -r win-x84

This would allow the program to run on any computers without the .NET or .NET Framework runtime installed.
More information about this can be read here.

@stoneharry
Copy link
Owner

Thank you -- really useful info. C# is my go-to language for hacking together quick scripts at home, but not what I code in professionally and it seems I am vastly lacking knowledge here.

@stoneharry stoneharry reopened this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants