'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion', ProgramFilesDir
returns correct directory for x64 programs installed
may you integrate this into madshell ?
Search found 9 matches
- Sun Feb 26, 2012 6:29 pm
- Forum: madShell
- Topic: sfProgramFiles or sfProgramFilesX86 returns always same
- Replies: 2
- Views: 12139
- Sun Feb 26, 2012 6:11 pm
- Forum: madShell
- Topic: sfProgramFiles or sfProgramFilesX86 returns always same
- Replies: 2
- Views: 12139
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...
- Sun Feb 26, 2012 5:28 pm
- Forum: madShell
- Topic: madshell.LoadShortCut returns wrong Path
- Replies: 2
- Views: 11955
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...
- Sun Feb 26, 2012 4:35 pm
- Forum: madShell
- Topic: madshell.LoadShortCut returns wrong Path
- Replies: 2
- Views: 11955
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...
- Thu Jan 26, 2012 8:35 pm
- Forum: madSecurity
- Topic: CurrentUser.IsAdmin ?
- Replies: 1
- Views: 9504
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.
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.
- Mon Jan 23, 2012 5:20 pm
- Forum: madSecurity
- Topic: a couple of questions
- Replies: 1
- Views: 9055
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...
- Sun Jan 08, 2012 1:09 pm
- Forum: madBasic
- Topic: FileVersionToStr and GetFileVersion doesnt working.
- Replies: 2
- Views: 12429
Re: FileVersionToStr and GetFileVersion doesnt working.
yes, working very well.It seems I used short char length that truncates string
- Sat Jan 07, 2012 7:53 pm
- Forum: madBasic
- Topic: FileVersionToStr and GetFileVersion doesnt working.
- Replies: 2
- Views: 12429
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
(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
- Sat Jan 07, 2012 5:56 pm
- Forum: madShell
- Topic: how to get an exe description ?
- Replies: 1
- Views: 9877
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.
how can I get version and description and other details ?
thank you so much.