I'm trying to read the install location of Internet Explorer from the Registry.
The key I've been using is:
HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\ open\command
- which returns a value such:
"C:\Program Files\Internet Explorer\iexplore.exe" %1
However, I want this without the "" and %1, i.e.:
C:\Program Files\Internet Explorer\iexplore.exe
..but I'm having a little trouble removing these bits! - can anyone offer any help?
I tried the following:
-- Read From Registry:
Read from Registry (%IEInstallPath% = HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\ open\command)
-- Get Length
Length of String (%IEPathLength = Length of String "%IEInstallPath%")
-- Remove 1st & last 4 chars:
Mid String (%IEInstallPath% = mid (%IEPathLength%-4) characters of "%IEInstallPath%" starting at 2)
PROBLEM: (%IEPathLength%-4) returns (52-4) and not (48)!
Can anyone help me out, or know of a simpler way to get the location of IE on a users system?
Cheers!
The key I've been using is:
HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\ open\command
- which returns a value such:
"C:\Program Files\Internet Explorer\iexplore.exe" %1
However, I want this without the "" and %1, i.e.:
C:\Program Files\Internet Explorer\iexplore.exe
..but I'm having a little trouble removing these bits! - can anyone offer any help?
I tried the following:
-- Read From Registry:
Read from Registry (%IEInstallPath% = HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\ open\command)
-- Get Length
Length of String (%IEPathLength = Length of String "%IEInstallPath%")
-- Remove 1st & last 4 chars:
Mid String (%IEInstallPath% = mid (%IEPathLength%-4) characters of "%IEInstallPath%" starting at 2)
PROBLEM: (%IEPathLength%-4) returns (52-4) and not (48)!
Can anyone help me out, or know of a simpler way to get the location of IE on a users system?
Cheers!
Comment