What is this startup program?

Help with the Windows installer (lastpass.exe)

Moderators: admin, anatoly_LP, chantieLP, robyn, JoeSiegrist

What is this startup program?

Postby Shane » Tue Nov 12, 2019 5:27 pm


There is an item called "Update UWP App.lnk" in the startup folder:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

The shortcut link runs the following command:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -NoLogo -NonInteractive -InputFormat None -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Program Files (x86)\LastPass\AppxUpgrade.ps1' -PackagePath 'C:\Program Files (x86)\LastP

AppxUpgrade.ps1 appears to be a PowerShell script, which looks like this:
Code: Select All Code

$currentPackageVersion = Get-AppxPackage | ? Name -eq $PackageName  | Select Version -First 1
$expectedPackageVersion = Get-Content $ExpectedVersionFilePath -First 1;

if ($expectedPackageVersion -ne $currentPackageVersion)
  Get-AppxPackage | ? {$_.Name -eq $PackageName} | ForEach-Object { Remove-AppxPackage -Package $_}
  Add-AppxPackage -Path $PackagePath | Out-File -FilePath $($env:TEMP + "\" + $PackageName + "Install.log")

How can I find out what this script does? I found out about it because there is always a window that appears briefly during startup.

Posts: 90
Joined: Wed Jul 17, 2013 5:02 am
Location: Canada

Re: What is this startup program?

Postby FlyingHawk » Wed Nov 13, 2019 1:03 pm

It updates the app package.
Posts: 827
Joined: Wed Mar 18, 2015 12:04 pm

Re: What is this startup program?

Postby favo » Tue Dec 03, 2019 9:13 pm

[Edit:] The shortcut target is being cut off at 260 characters in the Explorer properties dialog, but the target is actually OK in the .LNK file.

However, the powershell windows are not hidden in my testing (Windows 10 v1909). Instead they are visible when people log on. This is despite the "-WindowStyle Hidden" argument.
Posts: 14
Joined: Mon Oct 13, 2014 3:11 pm

Return to Windows Installer Questions

Who is online

Users browsing this forum: No registered users and 4 guests