It is currently March 28th, 2024, 12:18 pm

Silent install

General topics related to Rainmeter.
User avatar
jsmorley
Developer
Posts: 22628
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
User avatar
jsmorley
Developer
Posts: 22628
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
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm
Contact:

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:
Post Reply