Here's some kix code to automatically determine the path:
 Code:
    ; 32b Program Files path
    ; Determine the 8.3 name of the appropriate 32-bit (x86) Program Files path
    ; Get the full path
    $_Rc = IIf(InStr('%PROCESSOR_ARCHITECTURE% %PROCESSOR_ARCHITEW6432%', 'AMD64'), '%ProgramFiles(x86)%', '%ProgramFiles%')
    ; now get the 8.3 name
    $_Value = Left($_Rc, 3)
    $_Rc = WshPipe('%COMSPEC% /c dir ' + $_Value + ' /X | %WINDIR%\System32\Find.exe /i "' + SubStr($_Rc, 4) + '"')
    $_Value = $_Value + Trim(SubStr($_Rc[0][0], 40, 12))
This relies on our modified version of WSHPipe, downloadable from our Kix library on our web site. This does the detection and assures that it is properly translated to the 8.3 name.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D