View Single Post
Old 15th October 2015, 16:13   #6
meoit
Senior Member
 
Join Date: Oct 2014
Location: $DESKTOP
Posts: 100
Using SetRegView

SetRegView 32
ReadRegStr $0 HKLM Software\Microsoft\Windows\CurrentVersion ProgramFilesDir
DetailPrint $0 # prints C:\Program Files (x86)

SetRegView 64
ReadRegStr $0 HKLM Software\Microsoft\Windows\CurrentVersion ProgramFilesDir
DetailPrint $0 # prints C:\Program Files

meoit is offline   Reply With Quote