YehudaKremer / msix

Create Msix installer for flutter windows-build files.
https://pub.dev/packages/msix
MIT License
280 stars 70 forks source link

[FEATURE REQUEST] 'Run as Admin' Problem #40

Closed devon closed 3 years ago

devon commented 3 years ago

Got report when submitting to Windows Store,

Unfortunately, the product does not work when ran without elevated permissions

There are two options related to this problem when using Inno Setup to build the package, but don't know how to config with MSIX:

[Setup]
PrivilegesRequired=lowest
DefaultDirName={userpf}\{#MyAppName}

userpf will install app to {localappdata}

Any tips?

YehudaKremer commented 3 years ago

hello @devon, sorry for the late respone

this plugin give by default (as recomented) the "runFullTrust" capability, the "allowElevation" is not added by default and you can add it in the "capabilities" config field (scroll down to the last field)

please update if the addition of this capability to the config help? do you think it should be by default?

devon commented 3 years ago

I read the document here, https://docs.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations

The documents suggest use runFullTrust, and not allowElevation for the app which submits to Microsoft Store.

Not sure the funFullTrust related to the 'Run as Admin' problem or not.

Or they reject the submits with the wrong information.

Unfortunately, the product does not work when run without elevated permissions Run as Admin.

We should keep the runFullTrust default config now.

YehudaKremer commented 3 years ago

can we close this @devon ?

devon commented 3 years ago

can we close this @devon ?

I haven't taken the time to test the detail. We may close this ticket.