newtofoxpro
Programmer
In winxp I go start>setting>control Panel>Add or remove programs. And and got Currently installed programs. Is it possible to get this currently installed programs list in VFP8 ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
loWMIService = GetObject("winmgmts:\\.\root\cimv2")
loSoftwareCollection = loWMIService.ExecQuery("SELECT * FROM Win32_Product")
For Each loSoftware In loSoftwareCollection
? loSoftware.Caption
? loSoftware.Name
? loSoftware.Vendor
? loSoftware.Version
? loSoftware.InstallLocation
? loSoftware.InstallState
Next
I do not think Inno uses Windows Installer, but it populates the registry below. I was able to get a list by looping through all these keys and getting the Display Name.The Win32_ProductWMI class represents products as they are installed by Windows Installer. A product generally correlates to one installation package.
*!* Find the Font folder location...
objShell = CREATEOBJECT("WScript.Shell")
lcFontsFolder = objShell.SpecialFolders.Item("Fonts")
*!* Create a Windows Shell object to install Fonts with...
objShell = CREATEOBJECT("Shell.Application")
objFolder = objShell.Namespace(lcFontsFolder)
*!* Get a list of fonts to check for...
=ADIR(laFonts, lcHomeFolder + 'Updates\fonts\*.*')
*!* Loop through the list of fonts to check for...
FOR I = 1 TO ALEN(laFonts, 1)
STORE ADDBS(lcFontsFolder) + laFonts[I, 1] TO lcFontFile
*!* If not found, install it...
IF !FILE(lcFontFile)
objFolder.CopyHere(lcHomeFolder + 'Updates\fonts\' + laFonts[I, 1], 1024) &&& + 16 + 4
ENDIF &&& !FILE(lcFontFile)
ENDFOR &&& I = 1 TO ALEN(laFonts, 1)
STORE .NULL. TO objShell, objFolder
I do not think Inno uses Windows Installer, but it populates the registry below