How to Add Any Program to Installed Apps List and Search Bar

Поделиться
HTML-код
  • Опубликовано: 24 апр 2024
  • C:\ProgramData\Microsoft\Windows\Start Menu
    C:\Users\(YOURUSERNAME)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
    Not working? Try the following:
    Run terminal as administrator.
    Replace the top line "C:\SHORTCUTFOLDER" with the preferred directory.
    Terminal Command (Feel free to edit as necessary. Please do not reupload this command unless it's been edited, and you credit this video.):
    $shortcutFolder = "C:\SHORTCUTFOLDER"
    foreach ($shortcut in Get-ChildItem -Path $shortcutFolder -Filter "*.lnk") {
    $shortcutName = $shortcut.BaseName
    $shell = New-Object -ComObject WScript.Shell
    $shortcutObject = $shell.CreateShortcut($shortcut.FullName)
    $shortcutPath = $shortcutObject.TargetPath
    $shortcutIcon = $shortcutObject.IconLocation
    $publisher = "Uninstall removes registry. Program is untouched."
    if ($shortcutIcon -ne ",0") {
    $icon = $shortcutIcon
    } else {
    $icon = $shortcutPath
    }
    $keyPath = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$shortcutName"
    if (-not (Test-Path $keyPath)) {
    New-Item -Path $keyPath -Force
    Set-ItemProperty -Path $keyPath -Name "DisplayName" -Value $shortcutName
    Set-ItemProperty -Path $keyPath -Name "Publisher" -Value $publisher
    $uninstallCommand = "REG DELETE `"HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$shortcutName`" /f"
    $uninstallString = "cmd.exe /c $uninstallCommand"
    Set-ItemProperty -Path $keyPath -Name "UninstallString" -Value $uninstallString
    Set-ItemProperty -Path $keyPath -Name "DisplayIcon" -Value $icon
    }
    }
  • ИгрыИгры

Комментарии • 1

  • @naufaltaufiqurrahman
    @naufaltaufiqurrahman 8 часов назад

    Using Windows 11, I tried adding a portable app (non-installed app), which is not searchable in the search bar. The first method worked for me, and I don't think I need to do the second one, but it's worth a try since it adds the app to installed apps.
    Thank you very much