Reply to Thread

Post a reply to the thread: SB2022 and Known Folders

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 03-17-2022, 09:51 AM
    MarkRiffey

    Re: SB2022 and Known Folders

    Awesome, Friedrich. Thank you

    Mark
  • 03-17-2022, 08:28 AM
    linder

    Re: SB2022 and Known Folders

    Mark,

    good point. Yes, SHGetFolderPath is deprecated. Unfortunately, for backwards compatibility, CSIDL is the only mechanism that can be used to power installs from pre-Vista up to Server 2022.

    I have added a new "Get KnownFolder Path..." script function to SetupBuilder 2022 to support KNOWNFOLDERID values.

    Thank you for your suggestion !!!

    Friedrich
  • 03-16-2022, 12:27 PM
    MarkRiffey

    SB2022 and Known Folders

    Friedrich,

    CSIDL was deprecated as of Windows Vista (reference below) but thankfully still works.

    Will SB2022 support KnownFolderID? Not sure it will ever matter, but these are the kinds of things one doesn't enjoy learning the hard way

    Mark


    From https://docs.microsoft.com/en-us/win...32/shell/csidl

    As of Windows Vista, these values have been replaced by KNOWNFOLDERID values. See that topic for a list of the new constants and their corresponding CSIDL values. For convenience, corresponding KNOWNFOLDERID values are also noted here for each CSIDL value.

    The CSIDL system is supported under Windows Vista for compatibility reasons. However, new development should use KNOWNFOLDERID values rather than CSIDL values.

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •