I am using nsis and lazarus to create a gui ejector and appkiller script depending upon the ini file that the lazarus form spits out. I am as far as the "kill all" and the "eject" option, but I have hit a snag in the road. I need to have a list of all the installed applications. How can this be done through nsis. I was thinking something along the lines of:
ReadINIStr $0 "..\..\..\*Portable\App\AppInfo\AppInfo.ini" "Details" "AppId" StrCpy $0 $0 + ".exe" WriteINIStr "$EXEDIR\Data\Eject.ini" "AppsToKill$R0" "1" "$0" ${StrReplaceV4} $1 "portable.exe" ".exe" $0 WriteINIStr "$EXEDIR\Data\Eject.ini" "AppsToKill$R0" "2" "$1"
or I could have and INI file that contains all of the Apps available for download, check if they exist in the processes, try to terminate the process, eject the drive, but this would take up quite a bit more space, and takes a little longer for it to go through because it would have to parse through the ini file, and just arrange them into the eject.ini file. Is there an easier way to do this through nsis or lazarus that would be less difficult than the second way, and actually work?
-thank you for your time