Describe the bug
As the title, I can't open any of .exe files in files UWP.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
I expect to see the .exe file opens up.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
This should be fixed in the next release
@duke7553 Tried the new version and still cannot open them
@Lolihunter1337 Did you give permission for Files UWP to access the file system from the privacy settings in Windows 10?
@yaichenbaum yes i did
What does it say is the version number in the about page in settings?
0.6.5.0
@duke7553 any idea why this is happening?
I tried with v0.6.5 and exe files open fine for me. I did notice that applications requiring UAC elevation do not work, and there's no proper error message for this.
@ashikns Do you have any ideas of a work around that will allow these applications to work?
Interactive elevation is not permitted in a uwp context, and iirc it's also not possible to run uwp app with admin privileges on launch. I did originally help write the exe launcher helper that files-uwp uses, I'll try and see if there's some way to acquire privileges from that helper.
Okay so short answer - yes it's possible. In the exe launcher project, you have to set StartInfo.Verb = "runas" and UseShellExecute to true. I verified that this does indeed launch the exe.
To do it properly you have to check whether the exe requires uac elevation and then elevate only if needed. I can work on this but it might take me a while (even though it's a relatively simple affair), feel free to take it up in the meantime.
This behavior should be corrected with commit https://github.com/duke7553/files-uwp/commit/f53a6e08d3a39154d631362ac38604a2643df0c9 to the v0.7-changes branch
Please reopen if this is still an issue
You can download v0.7.0 here.
Most helpful comment
Okay so short answer - yes it's possible. In the exe launcher project, you have to set StartInfo.Verb = "runas" and UseShellExecute to true. I verified that this does indeed launch the exe.
To do it properly you have to check whether the exe requires uac elevation and then elevate only if needed. I can work on this but it might take me a while (even though it's a relatively simple affair), feel free to take it up in the meantime.