Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cargo-c] 32bit cargo-cinstall.exe requires admin rights #6718

Closed
lazka opened this issue Jul 25, 2020 · 6 comments
Closed

[cargo-c] 32bit cargo-cinstall.exe requires admin rights #6718

lazka opened this issue Jul 25, 2020 · 6 comments

Comments

@lazka
Copy link
Member

lazka commented Jul 25, 2020

For some reason the i686 cargo-cinstall.exe triggers a UAC dialog and can't be executed from bash. Does anyone know why this could be? The 64bit version works fine.

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-cargo-c/PKGBUILD

@lazka
Copy link
Member Author

lazka commented Jul 26, 2020

We need to use the new capi command provided by cargo-c to work around that (apparently Windows doesn't like that the exe contains the word "install")

@Alexpux
Copy link
Member

Alexpux commented Jul 26, 2020

@lazka or provide manifest file for 32 bit

@lazka
Copy link
Member Author

lazka commented Jul 26, 2020

thanks, good to know. I found this rust-lang/rfcs#721 so likely not possible yet

the capi thing works though, so it's fine :)

@lazka lazka closed this as completed in c744292 Jul 26, 2020
@Biswa96
Copy link
Member

Biswa96 commented Jul 26, 2020

Maybe some kind of black magic can be done. For example, create a rc file, add the manifest to it, compile the rc file with windmc and link it with exe.

@Alexpux
Copy link
Member

Alexpux commented Jul 26, 2020

@lazka no need to embedding manifest, you can place it near files. Look at /mingw32/bin folder for manifest files

@mati865
Copy link
Collaborator

mati865 commented Jul 26, 2020

There is https://github.com/nabijaczleweli/rust-embed-resource
You can also embed manifest using windres+ar tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants