Search code examples
c#.netwindowsregistrynsis

Win32 application not appearing in Start Menu search


I have built a Win32 application and that application is installed via a custom NSIS install script. The application installs and executes with no issue. However, when I go to search for the App or find the app in the programs list(in both Windows 10 and Windows 7), it is not listed. I am assuming I need a registry value added but am not certain. I've already added registry values at HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\[my app name] in order to see the app in Programs and Feature for uninstall.

I tried adding this registry key also but it doesn't appear to do anything HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\[my app executable]

Any help would be appreciated. Thanks!


Solution

  • Create a shortcut:

    CreateShortcut "$SMPROGRAMS\MyApp.lnk" "$INSTDIR\MyApp.exe"
    

    The App Paths key is used when the user types just a filename in the Run dialog (Win+R).