How to check if a program is installed on system using coldfusion - coldfusion

Is there a way to access the windows registry system using coldfusion. Something like this How to check if a program is installed on Windows system

It seems like you are looking for cfregistry
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c6f.html

Related

Using spawn_posix to launch pkg (Writing Autoupdater for audio plugin)

I'm writing an auto-updater for my audio plugin which is working fine on Windows, and I feel I'm close on MAC but need some help understanding how to programmatically launch the installer on mac. The algorithm is pretty simple:
Plugin checks in S3 to see if there's a newer version
If YES then plugin downloads the installer for the new version
Once downloaded the plugin should launch the installer and prompt the user to close the DAW (audio workstation)
This is working fine, I can download the installer on both platforms, and on windows launch it by using CreateProcess, but I can't find the right way to do it on mac. The closest equivalent I can find is "posix_spawn" in order to launch a process and then run "/user/sbin/installer -pkg /path/to/pkg /target", and although this is returning 0 indicating success I don't see any installer popping up on the screen. Ideally the user would see the UI of the installer as there are some options included.
How can I accomplish the goal of opening a PKG file visually for the user on mac using C++? OR, is there an alternative solution to accomplish the algorithm described above? Many thanks!

From where WMI getting the installed software list in windows? (either from registry or any other location)

I'm trying to get installed software list from my windows machine. I've found out WMI is the best way to get the same.I'm using a c++ application to get the details of installed application but I need to know from where WMI is getting all this details.
NOTE: Even if I changed the registries , it affect only in ADD/Remove programs(control panel) but my application getting the exact values. I have changed the registry values under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
for my 32-bit machine.
Could anyone, please let me know how it works?
If you want the list of installed windows programs from WMI try
Win32_InstalledWin32Program
I don't know C++ but here's the cmd line
wmic path Win32_InstalledWin32Program get name

Qt C++ application: self autostart installation in Linux

I'm porting some Qt Windows/VC++ code to Linux/GCC. The application can add it's own shortcut to the Windows Autostart folder so the application starts after login.
I want to do the same in Linux. I'm using Kubuntu 15.10 but the solution should work for virtually all (or at least most) Linux variants out there. And it should work without super user rights (or it should request the rights automatically).
I searched the web and found two solutions:
Add a desktop entry file to $HOME/.config/autostart
Add a symbolic link to /etc/init.d/
Will they both work in all Linux distributions? What are the differences? Which is to be preferred?
Also I would like to know if I should do that by programmatically running a shell command or if there is some native API I could use in C/C++ (including easy error detection).
I have put project in GitHub for managing auto-start feature in different OS. It's written in Qt.
Please check it and let me know if you have any problem using it:
https://github.com/b00f/qautostart
You can add application in various ways.
Via linux init system. For newest linux OS systemd is a standard. In this case your need to create systemd unit for your application
Via desktop manager, such as gnome, kde and possible others. In this case you need also create specification for autostarting your app.
Via bash files
I think, prefered way via systemd unit, because now this is standard way for starting process at boot time and for special user, if need.

How to use wmi in Ubuntu with C++

I want to get information from my Client's that running Windows through Linux.
I have several clients that running Windows, and I'm running Ubuntu. I want to make a C++ code, and get information like CPU usage, disk space, etc from my client's.
Is there any way to do that?
I know I can use WMIC (WMI Client) and execute query (WQL) from terminal, but I want to use some libraries in C++ (I use Qt Creator).
First Create an application using the following library
http://msdn.microsoft.com/en-us/library/aa390423(v=vs.85).aspx
and send this information back to the ubuntu either using sockets or any other ports or simply save it into a txt file and access that file using ftp.
http://msdn.microsoft.com/en-us/library/aa394558(v=vs.85).aspx
Is there any C++ library to work with WMI?

C++ MySQL error in libmysql.dll

I've made an app in C++ that uses mysql to connect to a server, but when I send it to my friends to test it, this is what they get:
libmysql.dll is either not designed to run on Windows or it contains an error.
It works completely fine on my pc, I even tried sending another libmysql.dll, same error persists. How can I fix this?
Most likely, libmysql.dll is either 64-bit and he is using a 32-bit operating system, or it is depending on other DLLs that aren't installed on his system.
There is a tool called dependency walker that will help you track down that kind of problem, but it is designed for advanced users and in short you should probably install the mysql client using a mysql installer instead.