danomatika / joyosc

(maintained) hid device to osc event daemon used in the robotcowboy project
http://robotcowboy.com
GNU General Public License v3.0
44 stars 3 forks source link

running without admin privileges #5

Open fdch opened 4 years ago

fdch commented 4 years ago

Hi Dan,

So, I tried packaging the binary+libs to run from another machine and it appears that I must have admin privileges to bypass the antivirus. It was the only Windows computer I had access to, so I could not test the build.

I will see from the students' computers and see if everything worked out correctly.

I just don't know how to compile and have a binary that is not from an unidentified dev so that it does not raise that kind of warning that prevents me from running joyosc.

danomatika commented 4 years ago

It probably needs to tell Windows what privileges it needs:

https://stackoverflow.com/questions/8139480/c-console-application-prompt-run-as-admin-to-run-as-administrator https://stackoverflow.com/questions/8139480/c-console-application-prompt-run-as-admin-to-run-as-administrator

It looks like there needs to be a manifest file for each exe, ie. joyosc.exe.manifest and lsjs.exe.manifest

More info:

https://www.samlogic.net/articles/manifest.htm https://www.samlogic.net/articles/manifest.htm

https://docs.microsoft.com/en-us/windows/win32/sbscs/application-manifests https://docs.microsoft.com/en-us/windows/win32/sbscs/application-manifests

On Feb 3, 2020, at 4:48 AM, Fede Camara Halac notifications@github.com wrote:

Hi Dan,

So, I tried packaging the binary+libs to run from another machine and it appears that I must have admin privileges to bypass the antivirus. It was the only Windows computer I had access to, so I could not test the build.

I will see from the students' computers and see if everything worked out correctly.

I just don't know how to compile and have a binary that is not from an unidentified dev so that it does not raise that kind of warning that prevents me from running joyosc.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danomatika/joyosc/issues/5?email_source=notifications&email_token=AADVK7MEPESVU27KZD4QHKDRA6HXDA5CNFSM4KO6MYQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKO64XA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADVK7JTNHNTES3XOYP63Q3RA6HXDANCNFSM4KO6MYQA.


Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/

fdch commented 4 years ago

thanks,

I checked those links and came up with the attached manifests. I still cannot bypass the antivirus.

The situation is as follows:

I must have done something wrong when packaging... I used a a dependency walker as you suggested but there must be something missing. Here's the link if helpful.

manifests.zip