Issue with CorrectFilePath shim RRS feed

  • Question

  • I'm trying to apply a CorrectFilePath-shim to a legacy app. But it doesn't have the desired effect.

    Our app has issues writing to a log file in %programfiles(x86)%.

    Using ProcMon while opening the applications shows ACCESS DENIED on "c:\program files (x86)\EMF Workstation 2011\Emfm.log".

    So far so good :)

    I created a new Application Fix, with the CorrectFilePath shim. With parameter:

    "%PROGRAMFILES(x86)%\EPRI\EMF Workstation 2011\Emfm.log;C:\Logfiles\Emfm.log"

    (The folder "C:\Logfiles" exists on all client computers)

    After saving and installing the shim using ACT Compatibility Administrator (or sdbinst.exe), the application still has issues writing to the same logfile on the same location (c:\program files (x86)). Further investigation with ProcMon shows access in C:\ProgramData to a .tmp file, while I'm redirected to C:\Logfiles with the shim.

    The two first ProcMon records are from the first launch (without shim installed). Starting from the third record, the shim was installed.

    I'm I missing something here?


    Monday, January 16, 2012 2:28 PM


  • Hi,

    try use no relative path in shim. Simple:

    C:\Program Files (x86)\...

    also try add the paht into "" like this:

    ""C:\Program .......log";C:\Logfiles"

    This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Microsoft Student Partner 2010 / 2011 / 2012
    Microsoft Certified Professional | Connected Home Integrator | Consumer Sales Specialist
    Microsoft Certified IT Professional: Consumer Support Technician on Windows Vista
    Microsoft Certified IT Professional: Enterprise Support Technician on Windows Vista
    Microsoft Certified IT Professional: Server Administrator on Windows Server 2008
    Microsoft Certified Technology Specialist:
    Windows 7, Configuration | Microsoft Windows Vista, Configuration
    Pre-Installing Windows 7 for OEMs | Windows 7 and Office 2010, Deployment | Windows Vista and Server Operating Systems, Preinstallation
    Windows Server 2008 Active Directory, Conf | Windows Server 2008 Network Infrastructure, Conf | Windows Server 2008 Applications Infrastructure, Conf
    Windows Server 2008 R2, Server Virtualization | Windows Server Virtualization, Configuration | Microsoft Lync Server 2010, Configuring
    Windows SBS 2011, Configuring | Windows EBS 2008, Configuration | Windows SBS 2008, Configuration
    Windows HPC Server 2008, Development | Windows Internals | MDOP, Configuration | SharePoint 2010, Configuration
    Microsoft SCOM, Configuration | Microsoft SCDPM 2007, Configuration | Microsoft SCVMM 2008, Configuration

    • Marked as answer by Cloud_TS Thursday, February 2, 2012 12:57 AM
    Tuesday, January 31, 2012 2:10 PM