Forum > Unix
Installing deb package from within Lazarus/Pascal application
(1/1)
MaxCuriosus:
Is it possible to install a deb package that requires superuser privilege from within Lazarus/Pascal application? Something that normally is done in the terminal or in a bash script in a way like
sudo dpkg -i abc.deb
lucamar:
Yes, using TProcess (or one of the function in the Process unit) to run a transitory shell and passing to it the command you want to run.
Similar questions have been already answered in the forum; look for: "running a command as admin" or similar.
Navigation
[0] Message Index