Page 1 of 1

read registry key if it does NOT exist then run an .exe file

Posted: Sun May 18, 2014 11:17 pm
by gregory
Need to read registry key:
DisplayName = "Microsoft Visual C++ 2010 x86 Redistributable" Notice there are two spaces between 2010 and x86(This was fun to track down)...

If registry key exists do NOTHING - OR - If registry key DOES NOT exist install 'something.exe'

Having to do it this way because the Prerequisites section for .NET 3.5 does not appear to work for me.
Have tried several ways to make Prerequisites work to no avail. Please help me with syntax of cmd.exe
for use in the Actual Install System Commands section.

I think the issue is my program must have the .NET 2010 3.5 SP1 Client version ONLY and your installer is seeing
that the standard issue of .NET 4.0 is already on Windows 7 ??? OK Thank You in advance.