Page 2 of 2

Re: Silent install

Posted: July 17th, 2021, 4:09 pm
by jsmorley
death.crafter wrote: July 17th, 2021, 4:04 pm If you just do

Code: Select all

explorer.exe "$($env:SYSTEMDRIVE)\Program Files\Rainmeter\Rainmeter.exe"
, wouldn't it start without elevation?
My fear is that any process you start in Powershell, from an elevated Powershell window, will also be started elevated.

Edit: Hmm... Maybe not...


2.jpg

1.jpg

Re: Silent install

Posted: July 17th, 2021, 4:18 pm
by jsmorley
If I don't have to fight "elevation" with this, that does make a batch file or .ps1 file a bit easier to deal with. Just run the batch or script elevated, and be done with it.

Re: Silent install

Posted: July 17th, 2021, 4:21 pm
by death.crafter
jsmorley wrote: July 17th, 2021, 4:18 pm If I don't have to fight "elevation" with this, that does make a batch file or .ps1 file a bit easier to deal with. Just run the batch or script elevated, and be done with it.
Exactly :great: