specialFolderPath, Microsoft Window, and 64 bits

Bob Sneidar bobsneidar at iotecdigital.com
Tue Mar 31 12:26:04 EDT 2020


The Windows Registry uses HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths as the path to the installation folder for all installed applications. 

put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe\path")

seems to work. 

Bob S


> On Mar 31, 2020, at 9:07 AM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On 3/31/2020 8:37 AM, Paul Dupuis via use-livecode wrote:
>> Under LiveCode 9.x.x (up to 9.6.0dp3) I can see no way to obtain the 64bit application installation folder using SpecialFolderPath? Does anyone know if this is correct or am I missing something?
> 
> So answering my own question, as of LC9.6.0dp3 here are all the Windows paths for any given CSIDL number between 0 and 255). None return the 64-bit applications folder path. I will file an enhancement request.
> 
> specialFolderPath(0) = C:/Users/<user>/Desktop
> specialFolderPath(2) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Start Menu/Programs
> specialFolderPath(5) = C:/Users/<user>/Documents
> specialFolderPath(6) = C:/Users/<user>/Favorites
> specialFolderPath(7) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup
> specialFolderPath(8) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Recent
> specialFolderPath(9) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/SendTo
> specialFolderPath(11) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Start Menu
> specialFolderPath(13) = C:/Users/<user>/Music
> specialFolderPath(14) = C:/Users/<user>/Videos
> specialFolderPath(16) = C:/Users/<user>/Desktop
> specialFolderPath(19) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Network Shortcuts
> specialFolderPath(20) = C:/Windows/Fonts
> specialFolderPath(21) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Templates
> specialFolderPath(22) = C:/ProgramData/Microsoft/Windows/Start Menu
> specialFolderPath(23) = C:/ProgramData/Microsoft/Windows/Start Menu/Programs
> specialFolderPath(24) = C:/ProgramData/Microsoft/Windows/Start Menu/Programs/StartUp
> specialFolderPath(25) = C:/Users/Public/Desktop
> specialFolderPath(26) = C:/Users/<user>/AppData/Roaming
> specialFolderPath(27) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Printer Shortcuts
> specialFolderPath(28) = C:/Users/<user>/AppData/Local
> specialFolderPath(29) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup
> specialFolderPath(30) = C:/ProgramData/Microsoft/Windows/Start Menu/Programs/StartUp
> specialFolderPath(31) = C:/Users/<user>/Favorites
> specialFolderPath(32) = C:/Users/<user>/AppData/Local/Microsoft/Windows/INetCache
> specialFolderPath(33) = C:/Users/<user>/AppData/Local/Microsoft/Windows/INetCookies
> specialFolderPath(34) = C:/Users/<user>/AppData/Local/Microsoft/Windows/History
> specialFolderPath(35) = C:/ProgramData
> specialFolderPath(36) = C:/Windows
> specialFolderPath(37) = C:/Windows/System32
> specialFolderPath(38) = C:/Program Files (x86)
> specialFolderPath(39) = C:/Users/<user>/Pictures
> specialFolderPath(40) = C:/Users/<user>
> specialFolderPath(41) = C:/Windows/SysWOW64
> specialFolderPath(42) = C:/Program Files (x86)
> specialFolderPath(43) = C:/Program Files (x86)/Common Files
> specialFolderPath(44) = C:/Program Files (x86)/Common Files
> specialFolderPath(45) = C:/ProgramData/Microsoft/Windows/Templates
> specialFolderPath(46) = C:/Users/Public/Documents
> specialFolderPath(47) = C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Administrative Tools
> specialFolderPath(48) = C:/Users/<user>/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Administrative Tools
> specialFolderPath(53) = C:/Users/Public/Music
> specialFolderPath(54) = C:/Users/Public/Pictures
> specialFolderPath(55) = C:/Users/Public/Videos
> specialFolderPath(56) = C:/Windows/Resources
> specialFolderPath(59) = C:/Users/<user>/AppData/Local/Microsoft/Windows/Burn/Burn
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list