Murmele / Gittyup

Understand your Git history!
https://murmele.github.io/Gittyup
MIT License
1.48k stars 109 forks source link

Installer admin on widnows #456

Open moolight-seashell opened 1 year ago

moolight-seashell commented 1 year ago

Ask admin only if necessary,

if i try to install into for example downloads foler i d'ont need admin, and this works if i use this bat to launch the installer :

cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" %1"

it will be cool if the installer ask admin only when starting the install (at the end of the setup steps ) and only if it's required ( based on the destination path )

cssatkmd commented 1 month ago

Can you give an example of the entire bat file, in order for us below a certain paygrade to test it?

moolight-seashell commented 3 weeks ago

the all bat is here

cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" %1"

i create the bat file the drag an drop any exe on the bat file on the explorer to open the exe with the bat (this set "%1" as the path of the exe)