views:

765

answers:

1

Dear all

i want my application to check (before start installion) for Nokia_PC_Suite_rel_7_0_8_2 my steps are :

1) i added Registry Search and it's properties are

Property = PCSUITERUNTIMEEXISTS, RegKey = HKEY_LOCAL_MACHINE\SOFTWARE\PCSuite\Product, Root= vsdrrHKLM, Value = Nokia Pc Suite

NOTE: i got the value of "Value" property from the registry editor were i double-clicked on PCSiute then i found Product when i clicked on it i found a dialog with 2 texts 1) Value name and 2) Value data

2) i added new Launch condition called "PCSuite Runtime installed, if not prompt user" and its properties are : condition = PCSUITERUNTIMEEXISTS //(it's a drop down list so i selected the condition i created in "Registry Search"), Messege = [ProductName] requires Nokia_PC_Suite_rel_7_0_8_2 runtime. Please run setup.exe to install the prerequisites for this application.

Now in setup.exe i added Nokia_PC_Suite_rel_7_0_8_2.exe as a pre-requisites so when the user double-clicked on setup.exe he will ask him to install Nokia_PC_Suite_rel_7_0_8_2 if he canclled the whole installation will stop.

what really happens is that when i click on .msi file is always displays the message ("[ProductName] requires Nokia_PC_Suite_rel_7_0_8_2 runtime. Please run setup.exe to install the prerequisites for this application.") althought there is PCSuite Version installed on my PC.

so what to do , i want him to continue the installation if he found PCSuite if not dispaly the message so the user will go to setup.exe. Also when i uninstalled PCSuite and clicked onsetup.exe it started intalling PCSuite and when he finished he displayed the previouse message and quit from the installation.

A: 

A quick test revealed that you need to omit the HKEY_LOCAL_MACHINE\ from the RegKey. So your search Registry Key would look like:

Property: PCSUITERUNTIMEEXISTS
RegKey: SOFTWARE\PCSuite\Product
Root: vsdrrHKLM
Value:  Nokia Pc Suite

Nokia Pc Suite needs to be a value (not a Key) that has data. I noticed in my testing just having a Value in the Registry Key that has no data the check will still fail.

If you are just trying to check for the existence of a KEY leave the value blank.

Jack B Nimble