Gittyup icon indicating copy to clipboard operation
Gittyup copied to clipboard

Installer admin on widnows

Open moolight-seashell opened this issue 3 years ago • 2 comments

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 )

moolight-seashell avatar Feb 02 '23 13:02 moolight-seashell

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

cssatkmd avatar Aug 15 '24 06:08 cssatkmd

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)

moolight-seashell avatar Aug 23 '24 19:08 moolight-seashell