locked
Populating InstallLocation in a VS Setup Project RRS feed

  • Question

  • I'm going for a windows logo certification...  one of the requirements is that the HKLM\Software\MS\Windows\CurVer\Uninstall\<PID>\InstallLocation be populated...  This isn't happening automatically even though the other uninstall lkeys are being populated by the setup app.  How do I get the InstallLocation key populated?

    Thanks.

    J
    http://digitalcamel.blogspot.com - .Net, ILM, SQL and Anything Else That Falls Out Of My Brain
    Thursday, July 2, 2009 1:17 PM

Answers

  • You need a custom action to do this, not code but a type 51 custom action, add with Orca. Define in the CustomAction table:

    Name = SetInstallLoc Type = 51  Source = ARPINSTALLLOCATION Target = [TARGETDIR]


    Then add a call to it in the InstallExecuteSequence somewhere like immediately after RegisterUser.

    VS setup projects really should add this automatically.
    Phil Wilson
    • Marked as answer by Jerry Camel Friday, July 3, 2009 2:35 AM
    Thursday, July 2, 2009 10:27 PM
  • Yep...  Found this shortly after posting.  http://blogs.msdn.com/amitava/archive/2007/07/17/certified-for-windows-vista-logo-test-case-faq-test-case-19.aspx

    Works perfectly.

    Thanks.

    J
    http://digitalcamel.blogspot.com - .Net, ILM, SQL and Anything Else That Falls Out Of My Brain
    • Marked as answer by Jerry Camel Friday, July 3, 2009 2:36 AM
    Friday, July 3, 2009 2:35 AM

All replies

  • You need a custom action to do this, not code but a type 51 custom action, add with Orca. Define in the CustomAction table:

    Name = SetInstallLoc Type = 51  Source = ARPINSTALLLOCATION Target = [TARGETDIR]


    Then add a call to it in the InstallExecuteSequence somewhere like immediately after RegisterUser.

    VS setup projects really should add this automatically.
    Phil Wilson
    • Marked as answer by Jerry Camel Friday, July 3, 2009 2:35 AM
    Thursday, July 2, 2009 10:27 PM
  • Yep...  Found this shortly after posting.  http://blogs.msdn.com/amitava/archive/2007/07/17/certified-for-windows-vista-logo-test-case-faq-test-case-19.aspx

    Works perfectly.

    Thanks.

    J
    http://digitalcamel.blogspot.com - .Net, ILM, SQL and Anything Else That Falls Out Of My Brain
    • Marked as answer by Jerry Camel Friday, July 3, 2009 2:36 AM
    Friday, July 3, 2009 2:35 AM