Access Denied when using broadFileSystemAccess and runFullTrust

Park, Jaeyul 1 Reputation point
2022-08-03T03:17:59.297+00:00

I want to use broadFileSystemAccess and runFullTrust.

"broadFileSystemAccess" is required because access every folder.
and
"runFullTrust" is required because execute win32 exe.

but,
using both of them, my app does not listed in [Settings -> Privacy -> File System -> "Choose which apps can access your file system"]

So, I cannot turn on my app to allow to access file system.

When I remove "runFullTrust" then my app is listed there.

Using these settings same time is impossible?

Or something to solve this problem is available?

Please help me.

Developer technologies Universal Windows Platform (UWP)
{count} votes

2 answers

Sort by: Most helpful
  1. Park, Jaeyul 1 Reputation point
    2022-08-03T07:53:11.547+00:00

    @Nico Zhu (Shanghai Wicresoft Co,.Ltd.) Thank you reply.
    here is my code.

    <?xml version="1.0" encoding="utf-8"?>

    <Package
    xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
    xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
    xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
    xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    IgnorableNamespaces="uap mp rescap">

    <Identity
    Name="fkl.xcosmos.ui.uwp.sample"
    Publisher="CN=FKL, O=Fujitsu Korea Limited, C=KR"
    Version="1.0.14.0" />

    <mp:PhoneIdentity PhoneProductId="04560d98-dfec-4aac-80e7-703c8379f3dc" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

    <Properties>
    <DisplayName>FKL.XCOSMOS.Main.UWP</DisplayName>
    <PublisherDisplayName>jaeyul.park</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
    </Properties>

    <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
    </Dependencies>

    <Resources>
    <Resource Language="x-generate"/>
    </Resources>

    <Applications>
    <Application Id="App"
    Executable="$targetnametoken$.exe"
    EntryPoint="FKL.XCOSMOS.Main.UWP.App">
    <uap:VisualElements
    DisplayName="FKL.XCOSMOS.Main.UWP"
    Square150x150Logo="Assets\Square150x150Logo.png"
    Square44x44Logo="Assets\Square44x44Logo.png"
    Description="FKL.XCOSMOS.Main.UWP"
    BackgroundColor="transparent">
    <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
    <uap:SplashScreen Image="Assets\SplashScreen.png" />
    </uap:VisualElements>
    <Extensions>
    <desktop:Extension
    xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
    Category="windows.fullTrustProcess"
    Executable="exe\DomainLiveChecker.exe" />
    </Extensions>
    </Application>
    </Applications>

    <Capabilities>
    <rescap:Capability Name="broadFileSystemAccess"/>
    <rescap:Capability Name="runFullTrust"/>
    <uap:Capability Name="documentsLibrary" />
    <Capability Name="internetClient" />
    <uap:Capability Name="removableStorage"/>
    <DeviceCapability Name="microphone"/>
    </Capabilities>
    </Package>

    0 comments No comments

  2. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,866 Reputation points
    2022-08-03T08:13:47.213+00:00

    If you have added runFullTrust and broadFileSystemAccess capability at same, and the broadFileSystemAccess is enable by default for the app, and you have no need to enable it in the setting page.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.