locked
Pdf shortcut gives error "There was an error opening the document. This File cannot be found.". Need a solution to make the App-V 4 app work with both Adobe Reader 9 and X RRS feed

  • Question

  • I have sequenced an App-v package which has a shortcut to pdf. Adobre Reader 9 is locally installed on the machine. If the shortcut is launched without any pdf launched on local, the shortcut launches file. However if a pdf is launched on the local, the shortcut fails to launch with error "There was an error opening the document. This File cannot be found."

    Hence i made some changes to the OSD. Contents of Codebase after making changes:

    <CODEBASE HREF="FILE://\InfoSphere Change Data Capture Management Console v6.5.0.1.sft" GUID="2F0989E6-A2EB-4DBA-8361-9339A8C68311" PARAMETERS="/N &quot;%SFT_MNT%\InfoSphere Change Data Capture Management Console v6.5.0.1\documentation\AdminGuide.pdf&quot;" FILENAME="%CSIDL_PROGRAM_FILES%\Adobe\Reader 9.0\Reader\AcroRd32.exe" SYSGUARDFILE="InfoSphere Change Data Capture Management Console v6.5.0.1\osguard.cp" SIZE="273083063"/>

    After making the changes the shortcut launches fine irrespective of pdf launched on local or not.

    However the problem is the FILENAME is hardcoded for Adobe Reader 9 exe path, and the users might be having Adobe Reader 9 or Adobe Reader X installed on their machines(hence the above would fail on Adobe Reader X). Hence need  a generic solution for it.

    For testing purpose i have tried making the below changes to OSD, however it does not work.

    <CODEBASE HREF="FILE://\InfoSphere Change Data Capture Management Console v6.5.0.1.sft" GUID="2F0989E6-A2EB-4DBA-8361-9339A8C68311" PARAMETERS="/n " FILENAME="InfoSphere Change Data Capture Management Console v6.5.0.1\documentation\AdminGuide.pdf" SYSGUARDFILE="InfoSphere Change Data Capture Management Console v6.5.0.1\osguard.cp" SIZE="273083063"/>

    Any help on this will be greatly appreciated as this is causing a serious issue for us.

    Thanks for your help.


    Wednesday, May 15, 2013 4:22 AM

Answers

  • :(

    Have now written a script which checks the AppPath registry to find the exe path. Its resolved now.

    • Proposed as answer by znack Wednesday, May 15, 2013 8:52 AM
    • Marked as answer by David WoltersModerator Wednesday, May 15, 2013 2:47 PM
    Wednesday, May 15, 2013 8:32 AM

All replies

  • Hello,

    You can try to just specify acrord32.exe instead of the entire path


    Nicke Källén | The Knack| Twitter: @Znackattack

    Wednesday, May 15, 2013 5:51 AM
  • Hello

    As per suggestion i have changed the codebase as:

    <CODEBASE HREF="FILE://\InfoSphere Change Data Capture Management Console v6.5.0.1.sft" GUID="2F0989E6-A2EB-4DBA-8361-9339A8C68311" PARAMETERS="/N &quot;%SFT_MNT%\InfoSphere Change Data Capture Management Console v6.5.0.1\documentation\AdminGuide.pdf&quot;" FILENAME="AcroRd32.exe" SYSGUARDFILE="InfoSphere Change Data Capture Management Console v6.5.0.1\osguard.cp" SIZE="273083063"/>

    However the shortcut fails to launch with error "The system cannot find the file specified". Sftlog.txt suggests its trying to search AcroRd32.exe in V:\.

    [05/15/2013 12:09:02:385 SWAP VRB] {hap=40:app=Administration Guide 6.5.0.1:tid=2D70:usr=43505690}
    Will create process with...
    Command: '"C:\Program Files\Microsoft Application Virtualization Client\sftlp.exe"'
    Params: '/WorkingDir:"V:\InfoSphere Change Data Capture Management Console v6.5.0.1\documentation" "V:\AcroRd32.exe" /N "V:\InfoSphere Change Data Capture Management Console v6.5.0.1\documentation\AdminGuide.pdf"'
    Working Dir: ''

    thanks in advance

    Wednesday, May 15, 2013 6:51 AM
  • Hello,

    Write a script to detect wether the file exists in a different paths and then execute the right file. Start the script instead of the file directly...


    Nicke Källén | The Knack| Twitter: @Znackattack

    Wednesday, May 15, 2013 7:01 AM
  • :(

    Have now written a script which checks the AppPath registry to find the exe path. Its resolved now.

    • Proposed as answer by znack Wednesday, May 15, 2013 8:52 AM
    • Marked as answer by David WoltersModerator Wednesday, May 15, 2013 2:47 PM
    Wednesday, May 15, 2013 8:32 AM