Page 1 of 1
Writing files when application installed with installer
Posted: Mon Mar 03, 2025 3:53 am
by coco2
I made an installer for my application and then installed it for all users. Apparently this means the application cannot write to the hard disk because the application only has read access to the folder it was installed in. How do I set this up so the application can write to the folder? Windows 11 Home
Re: Writing files when application installed with installer
Posted: Mon Mar 03, 2025 4:39 am
by coco2
I think you can disregard this. The settings are configured in the installer software.
Re: Writing files when application installed with installer
Posted: Mon Mar 03, 2025 9:17 am
by mk-soft
It is normal that you should no longer write to the programme folder.
The authorisations are restricted here under Windows.
There are extra folders for this task.
You must then create a unique folder for your application under this folder.
Code: Select all
Debug "Common Files: " + GetUserDirectory(#PB_Directory_AllUserData)
Debug "User Files: " + GetUserDirectory(#PB_Directory_ProgramData)
I have an example of this here ...
Link:.
https://www.purebasic.fr/english/viewtopic.php?t=74233