Search code examples
c#wpfwindowsnsis

Getting error "Program failed due to missing install location" by windows app Cert kit


I was created the installer file by NSIS tool then I tried to verify by windows app cert kit. It always returns error like "Program failed due to missing install location" but I mentioned installer location on NSIS settings.

Please give me good solution for this,

Thank you in advance Jey


Solution

  • If you take a look at the Windows® 7 Client Software Logo Technical Requirements & Program Eligibility document you will see a list of required uninstall registry values:

    • DisplayName
    • InstallLocation
    • Publisher
    • UninstallString
    • VersionMajor (or MajorVersion)
    • VersionMinor (or MinorVersion)

    You can probably just set InstallLocation to the value of $InstDir:

    WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YourAppnameOrGuid" "InstallLocation" "$InstDir"