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?
You can do it with the help of the Door library (program is attached)
B4X:
Sub App_Start
obj.New1(False)
obj.CreateNew("System.Environment" & obj.System_Mscorlib)
Msgbox(obj.RunMethod2("GetFolderPath", "ProgramFiles", "System.Environment+SpecialFolder"))
End Sub