Skip to content

require admin permissions not persisting between machines #4349

Open
@thebotsmith

Description

@thebotsmith

Description

I am building wails with my own manifest file in /build/windows for require admin

this works on the machine i compile on but as soon as i send that exe to someone else or copy and paste it, it is losing its admin requirement

i have switched to using a rsrc file but this results in too many .rsrc sections ERROR exit status 1

using wails cli 2.10.1 and the newest rsrc build on windows server 2022

To Reproduce

compile app
check it needs admin permissions
copy and paste to another server
check it needs admin permissions

Expected behaviour

wails build -windowsconsole -platform windows/amd64 -o wails-windows.exe with a manifest file in build/windows

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.10.1


# System
┌───────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows Server 2022 Datacenter                                         |
| Version      | 2009 (Build: 20348)                                                    |
| ID           | 21H2                                                                   |
| Go Version   | go1.24.3                                                               |
| Platform     | windows                                                                |
| Architecture | amd64                                                                  |
| CPU          | AMD EPYC 7B12                                                          |
| GPU          | Microsoft Remote Display Adapter (Microsoft) - Driver: 10.0.20348.3451 |
| Memory       | 32GB                                                                   |
└───────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 137.0.3296.68 |
| Nodejs     | N/A          | Installed | 22.16.0       |
| npm        | N/A          | Installed | 10.9.2        |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
|                                                       |
└─────────────── * - Optional Dependency ───────────────┘

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingWindowsawaiting feedbackMore information is required from the requestor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions