I know I can use the Hardware Lib to get the Program Files DIR of a Device with something like this:
But my question is; how can I get the Program Files DIR of the Desktop? I'm programming an app that checks if a third party app is installed in the Program Files DIR but I know that in the real world not all Windows installations are installed in the C: DIR so I want to check for this somehow. Is there any way to check for the DIR on the Desktop?
B4X:
DDir = Hardware1.GetSpecialFolder(Hardware1.sfProgramFiles)
But my question is; how can I get the Program Files DIR of the Desktop? I'm programming an app that checks if a third party app is installed in the Program Files DIR but I know that in the real world not all Windows installations are installed in the C: DIR so I want to check for this somehow. Is there any way to check for the DIR on the Desktop?