Registry Module (windows only)
Re: Registry Module (windows only)
Should there be some kind of warning if someone on Linux wants to use this?
Re: Registry Module (windows only)
Yes, a compiler error 

Re: Registry Module (windows only)
A compiler error may indicate an incorrectly written function.
What if the function is from PureLibraries?
Re: Registry Module (windows only)
I was joking but it's a good question for libraries that are not cross-platform
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Registry Module (windows only)
Probably not since the subject line clearly shows (windows only). which probably also excludes MAC as well.AZJIO wrote: Sat Dec 21, 2024 10:30 am Should there be some kind of warning if someone on Linux wants to use this?
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Registry Module (windows only)
Ooops.


- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Registry Module (windows only)
Even if (windows only) were not specified, everyone already knows that the registry exists only in Windows. When the library is compiled, it will not know which forum thread it was compiled from. To do this, the library must have some kind of flag to warn the user that this library is not intended for this OS.Randy Walker wrote: Sat Dec 21, 2024 6:28 pm Probably not since the subject line clearly shows (windows only). which probably also excludes MAC as well.
When compiled, all debugger messages will be removed, so embedding a debugger message will not work.
There are no people here who will try the registry functions in LinuxRandy Walker wrote: Sat Dec 21, 2024 6:33 pm Ooops.Looks like someone didn't read the subject line and tried it anyway. Subject lines can be so tricky that way.
![]()
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Registry Module (windows only)
I think this collects all installed programs using the native Windows "winget" command:olmak wrote: Thu Aug 11, 2016 4:37 am Hello at all
I'm trying to get a list of installed programs, with some parameters.
Can anyone help me?
Code: Select all
Exe = RunProgram("powershell.exe","winget list","",#PB_Program_Hide|#PB_Program_Open|#PB_Program_Read|#PB_Program_Error)
Debug "Please wait for info to be collected"
If Exe
While ProgramRunning(Exe)
If AvailableProgramOutput(Exe)
Output$=ReadProgramString(Exe)
name$ = StringField(Output$,1," ")
Debug Output$
;Debug name$
EndIf
Wend
EndIf
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.