Rinzwind wrote:@J. Baker
You mean like how OS X also leaves configuration files and caches laying around
I use App Cleaner on OS X but yes, Apple could include an official uninstaller in their OS.
BarryG wrote:
As I said (twice now), access to the Registry is for reading and applying system settings that can't be done any other way.
Reading the registry is one thing but I prefer for the registry to be unaltered if possible. Some developers do use it for data only and then never clear it. That's highly annoying.
It's not going to advance the debate, but whether you like it or not, the Registry is at the core of Windows and many other applications.
For me, there is no doubt, it is a lack in PB and it should be integrated natively to simplify developer's life. Cross platform compatibility is a bad excuse for not having it.
I often use the registry to develop some Windows tools, so +1 for me
Jac de Lad wrote:However, some programming languages implemented a dedicated solution for non windows platforms, storing that information in a file with similar structure. This won't port the information you can get via registry on windows to other is, but is suitable for storing information intended by the developer.
Also however, being limited to windows doesn't seem like a valid excuse to me. Thinking of SendMessage right now...
We learn by doing. Build your own. Ask if you need help. The people here will be glad to help you.
That's not the point. I know how to do it via API, but I just think it would be a logical addition. I can understand that PureBasic is meant to be platform independent. XProfan is creating a file as pseudo registry on non windows systems. Seems like a good solution to me.
Most of us dislike the registry. We use it because it is a necessity when building a service. But most of the Window's Issues I have run into were because of registry problems.
I think this would be a useful function in PB. Here is an example why: I discovered some of my adventuresome users have associated the database files with Adobe PDF reader or something else. This happened because they tried to open the database directly from File Explorer, saw the dialog asking which app to use and then chose one without knowing what was actually going on. The database then gets associated with the wrong program, which can sometimes cause weird problems. There is no easy way to remove an association in Windows. It requires a registry hack or some other software like Types. Hacking the registry is not a good idea, and I shudder when I have to do it, but i have too many times, especially for this problem. I would like to add a password-protected pushbutton in the support area of my program that would remove the association. Easy, simple, controlled. This is just one example. So a +1 from me, too.
I am not sure assoc works for all file associations. I have associated the extension .bmd with Notepad. The Types program, shows this association. Assoc does not include this in its list. The command Assoc .bmd returns "File association not found for extension .bmd. Trying to disassociate it returns access denied.
DeanH wrote:I am not sure assoc works for all file associations. I have associated the extension .bmd with Notepad. The Types program, shows this association. Assoc does not include this in its list. The command Assoc .bmd returns "File association not found for extension .bmd. Trying to disassociate it returns access denied.
Hi,
1. In all case, you need to do it in a shell (CMD) in admin mode
2. 'assoc' associate extension with file type not file name
3. If file type does not exist, you first need to create it (use ftype)
Open CMD with admin rights
Win + R > Run > Ctrl+Shift+Enter
Go in directory where you can write (ie: temp)
CD %temp%
Create a test file
C:\[...]> echo Hello World > hi.bmd
Create a NEW file type
C:\[...]> ftype bmdfile=%systemroot%\System32\notepad.exe %1
Verify
C:\[...]> ftype bmdfile
bmdfile=C:\WINDOWS\System32\notepad.exe %1
Associate extension to new file type
C:\[...]> assoc .bmd=bmdfile
Verify association
C:\[...]> assoc .bmd
.bmd=bmdfile
Test
C:\[...]> hi.bmd
Yes, type filename with extension
Notepad is launch with the file :-)
To remove
C:\[...]> assoc .bmd=
C:\[...]> ftype bmdfile=