inno setup - Needing to raise and lower privileges as necessary in order to access network share, edit registry, then copy shortcuts on network share -
i need access network share during install process, , need edit registry keys. , finally, i'd add shortcuts program on network share.
to edit registry keys, run installer elevated privileges. however, if that, won't able see network share created without admin privileges.
there way kill installer , restart admin privileges, , fine copying necessary files, in order create shortcuts point network share, need downgrade privileges again, in middle of inno setup step copies file, step can't in middle of.
any other options workaround? 1 found this, requires registry edit (fine) , restart (not fine).
you can create shortcut using command , run [run]
section runasoriginaluser
flag.
see how create shortcut via command-line in windows?
or not kill unelevated installer. run copy files. , continue unelevated installer.
also note can create shortcut pointing nonexisting file.
Comments
Post a Comment