Method used to determine: Common AppData location - Advanced Installer Community
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Method used to determine: Common AppData location

Hi,
In reading this article (The long and sad story of the Shell Folders key) I have learned that our old (soon to be abandoned) installer should not be making direct registry queries to find the path to folders such as Common Documents, Common AppData etc. The article recommends that instead of querying the registry directly we should make a call to the SHGetSpecialFolderLocation API. With our old (Wise) installer I don't know that we have an alternative but to make direct queries of the registry.

So, that raises the question about how does AI go about determining the paths to these folders? Does it query the registry directly? Or does it do something more like with the recommendation sited in the article, such as use the SHGetSpecialFolderLocation API?

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Method used to determine: Common AppData location

Hello,

Please note that Advanced Installer is not using registry queries, instead we are using Windows Api.

If you have other questions regarding Advanced Installer, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”