Run an .exe file that lives in user's Local App Data
I am in the process of attempting to deploy the 1Password Windows app to ~200 or so desktops. They evidently do not have an msi or an .exe that supports silent parameters. In their support forums they recommend the following deployment workaround:
-
Install 1Password on a testing machine, but do not sign in.
-
Xcopy the %LOCALAPPDATA%\1Password\app\ directory via your chosen deployment method to everyone's %LOCALAPPDATA%\1Password\app\ directory.
-
Run the
setupcommand line parameter on the 1Password.exe file:%LOCALAPPDATA%\1Password\app\7\1Password.exe setup
I am able to accomplish 1&2 by adjusting the powershell steps detailed on this page:
https://www.pdq.com/blog/copying-files-to-all-user-profiles/
Any thoughts on how one could use something similar to that powershell command in order to accomplish their listed step 3 - run the .exe file that now lives in each user's localappdata folder with the setup parameter?
Comments
Something like this:
ForEach ( $User in (Get-ChildItem "$env:SystemDrive\Users" -Directory) ) {
CD "$($User.FullName)\AppData\Local\1Password\app\7"
& .\1Password.exe setup
}