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

On windows 64bit, install.bat can't be elevated when started by an 32-bit App #116

Open
Mark-Joy opened this issue Nov 23, 2022 · 8 comments

Comments

@Mark-Joy
Copy link

Here is a given example:
On windows 64bit, Inside Freecommand 32 bit, start install.bat resulted in Cannot elevate administrator privilege

@blackcrack
Copy link

open Explorer, right mouse, start as Administrator..
or open an Administrator cmd instance ,
go into the decompressed folder, start the install bat.

FreeCommander is not supported,
or it is anywhere described ?

@Mark-Joy
Copy link
Author

Mark-Joy commented Nov 23, 2022

Man... I know how to use explorer, I know how to make install.bat works. Do you think I don't know that when I specified that only 32bit File Manager can't be used to start install.bat on Windows 64bit?
And Freecommand 32 bit is just an example, OK?
If you can't make any helpful comment, then hold it into your deep guru knowlege!
What the point of your comment anyway, not useful, not helpful, then just shut it!

Just want to raise the issue here to let others know.

@Masamune3210
Copy link

No need to be a jerk. You can open the batch file and see exactly how its trying to get admin, it just writes a temporary vbs script to run ShellExecute and call UAC. As far as I know, this should not be affected by the bit-depth of the system. Third party file explorers are likely not in the scope of support for this, especially considering the already stressed amount of support the project gets.

@blackcrack
Copy link

blackcrack commented Nov 23, 2022

@Masamune3210 , 弓
look his Account and you know enough..

(damn, we failed to educate the youth in the BBS times.. but they also nerved ..
today is it to late.. :\
htp )
弓 & best

@Masamune3210
Copy link

I dont need to look at any account, and you don't have to call me dumb. The whole point of open source is you don't have to ask someone else to look at something, you can just look at it yourself
image

The batch file checks to see if it already is running as administrator, if not, it checks the error code to see if elevation is possible for the logged on user, if it isn't it prints a error asking to try elevating manually, if it is, it writes a quick vbs script containing two lines, one where it creates a shell.application object, and the other where it calls UAC.ShellExecute to attempt elevation to run runas, switch to the directory the batch file is in, and finally register the libraries with the system.

@blackcrack
Copy link

nice @Masamune3210 , thy :) (have directly saved)
@kkguo , would maybe not bad for including :) ( all well/fine with you?, how far is your re-coding*curious*)
弓 & best

@Mark-Joy
Copy link
Author

I have long forgot about this after my first post.. but hahaha you are trying so hard @blackcrack , you should look into yourself first before trying to mock others

@Masamune3210
Copy link

I know, right

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

3 participants