Page 1 of 1

How to use the findRegisteredApplication function on Windows?

Posted: Tue Oct 09, 2012 9:21 am
by etrinh
Hi,



I am wondering how to correctly use the findRegisteredApplication function on Windows?

I have the location information path stored by my setup app in the registry, but, I don't know how to make switch retrieving it...



Does anyone have an idea?

Thank you,

Eric

How to use the findRegisteredApplication function on Windows?

Posted: Tue Oct 09, 2012 9:27 am
by etrinh
Ok just found it:

the key must contains anti-slash:



e.findRegisteredApplication("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall{1234567890}InstallLocation")

How to use the findRegisteredApplication function on Windows?

Posted: Wed Oct 10, 2012 5:47 pm
by dkelly
Make sure you add the special ApplicationPath property also. This is where Switch stores the value returned by findApplicationPath().