Writing files when application installed with installer

Just starting out? Need help? Post your questions and find answers here.
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Writing files when application installed with installer

Post 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
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Writing files when application installed with installer

Post by coco2 »

I think you can disregard this. The settings are configured in the installer software.
User avatar
mk-soft
Always Here
Always Here
Posts: 6252
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Writing files when application installed with installer

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply