South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
So I was hoping you guys could provide some insight?
I'm about to release some software and why should I set it to install in C:\Program Files\MyDir, and not just C:\MyDir?
The only reason I can think of is that you need to be an Administrator to modify anything in Program Files but are there any other benefits\reasons?
I'm about to release some software and why should I set it to install in C:\Program Files\MyDir, and not just C:\MyDir?
Remember that program files is for programs, and the user data directories is for settings and data.
Also - don't assume it'll be Progra~1, it could be Progra~2 or Progra~3 as well.
Wasn't aware of that registry setting. I assume Windows applies all the "Program Files" restrictions to whichever folder is referenced in that registry key?
Don't even assume "X:\Program Files", use the correct API's to retrieve the program files folder. I for one, uninstall any application that does not adhere to the standard locations. I have known people to use C:\Apps and even D:\ as the program files directory. You can change it by editing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion and the key is "ProgramFilesDir".