It is currently October 26th, 2021, 6:10 pm

Silent install

General topics related to Rainmeter.
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Silent install

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Silent install

Post 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.
User avatar
death.crafter
Posts: 1070
Joined: April 24th, 2021, 8:13 pm

Re: Silent install

Post 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:
from the Realm of Death
My Current Desktop