PDA

View Full Version : Using custom action



Vincedav
10-14-2009, 09:52 AM
Hi,

I try to add a condition to my custom action. I want to check if a specific version of java is installed and, if not install java.
In custom action, I click on "After setup complete Success dialog" then "new EXE.
In the dialog box, I put the java exe file in File Name and try to had a condition.
I create a new requirement based on "registry entry" with these entries :
- Registry Root : HKEY_CLASSES_ROOT
- Registry Key : SOFTWARE\JavaSoft\Java Runtime Environment\1.6
- Registry Value : (I leave it empty)
I choose "not found"
After, I try the install setup and it always want to install java, instead I have the 1.6 version already installed.
Can someone help me ??

hidenori
10-16-2009, 01:33 PM
I think that you should be checking under HKEY_LOCAL_MACHINE, not HKEY_CLASSES_ROOT.