Search found 9 matches

by kgulol
Sun Feb 26, 2012 6:29 pm
Forum: madShell
Topic: sfProgramFiles or sfProgramFilesX86 returns always same
Replies: 2
Views: 6941

Re: sfProgramFiles or sfProgramFilesX86 returns always same

'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion', ProgramFilesDir
returns correct directory for x64 programs installed
may you integrate this into madshell ?
by kgulol
Sun Feb 26, 2012 6:11 pm
Forum: madShell
Topic: sfProgramFiles or sfProgramFilesX86 returns always same
Replies: 2
Views: 6941

sfProgramFiles or sfProgramFilesX86 returns always same

trying to get Program Files Directory always returns "C:\Program Files (86)\" but I want somethhing like that "C:\Program Files\" because this operating system have both directories. so I did a small function : function GetSpecialFolder2(AFolder: TSpecialFolder): string; var _ret...
by kgulol
Sun Feb 26, 2012 5:28 pm
Forum: madShell
Topic: madshell.LoadShortCut returns wrong Path
Replies: 2
Views: 6813

Re: madshell.LoadShortCut returns wrong Path

interestingly JvJVCLUtils.TargetFileName (from jedi) also returns: Program Files (x86)\.... instead of Program Files\... but shortcut targets me on "Program Files\..." directory.(install Virtualbox for x64.Check lnk file via right click properties. and ofsure nothing installed on x86 PRogr...
by kgulol
Sun Feb 26, 2012 4:35 pm
Forum: madShell
Topic: madshell.LoadShortCut returns wrong Path
Replies: 2
Views: 6813

madshell.LoadShortCut returns wrong Path

ie : try to load : lnkFileName:='C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle VM VirtualBox\Oracle VM VirtualBox.lnk'; ExeFileName:=madshell.LoadShortCut(lnkFileName).Path; returns "C:\Program Files (x86)\Oracle\VirtualBox\VirtualBox.exe" but correct place is (right click to...
by kgulol
Thu Jan 26, 2012 8:35 pm
Forum: madSecurity
Topic: CurrentUser.IsAdmin ?
Replies: 1
Views: 5111

CurrentUser.IsAdmin ?

hi,
looking for a function if current user is an administrator or a limited user
like this :
if madsecurity.CurrentUser.IsAdmin then

is it implemented ?am I missing ?

kind regards.
by kgulol
Mon Jan 23, 2012 5:20 pm
Forum: madSecurity
Topic: a couple of questions
Replies: 1
Views: 4603

a couple of questions

Got a couple of questions : 1 : is SetAttributes or GetAttributes for a file or directory included in madSecurity ? 2: How can I prevent access to my directory ?I want only my application can access read and write permissions. but prevent user to access My Application Installation Directory,using wi...
by kgulol
Sun Jan 08, 2012 1:09 pm
Forum: madBasic
Topic: FileVersionToStr and GetFileVersion doesnt working.
Replies: 2
Views: 7383

Re: FileVersionToStr and GetFileVersion doesnt working.

yes, working very well.It seems I used short char length that truncates string :)
by kgulol
Sat Jan 07, 2012 7:53 pm
Forum: madBasic
Topic: FileVersionToStr and GetFileVersion doesnt working.
Replies: 2
Views: 7383

FileVersionToStr and GetFileVersion doesnt working.

version_ := FileVersionToStr
(madtools.GetFileVersion('BDS.exe'); returns "15.0.3941."

my question is obviously simple:how can I get File Version Correctly ? something like "15.0.3941.35438"

thanks
by kgulol
Sat Jan 07, 2012 5:56 pm
Forum: madShell
Topic: how to get an exe description ?
Replies: 1
Views: 5322

how to get an exe description ?

when we right click to properties of an executable file we can see description and version
how can I get version and description and other details ?

thank you so much.