locked
Script in OSD file RRS feed

  • Question

  • Hi everybody :-)

    I sequenced Notepad++ but the function "Edit with Notepad++" is not available when I do a right clic on a file. Then I want to add it by script in the OSD file.
    I want to make an action before the launch of this application. I added this to my OSD file :

    <SCRIPT TIMING="PRE" EVENT="LAUNCH" WAIT="TRUE" PROTECT="TRUE"> 
       <SCRIPTBODY> 
          reg ADD "HKEY_CLASSES_ROOT\*\shell" /f \n
          reg ADD "HKEY_CLASSES_ROOT\*\shell\Ouvrir avec Notepad++"  /f \n
          reg ADD "HKEY_CLASSES_ROOT\*\shell\Ouvrir avec Notepad++\command"  /f \n
          reg ADD "HKEY_CLASSES_ROOT\*\shell\Ouvrir avec Notepad++\command" /ve /d "C:\Program Files\Microsoft Application Virtualization Client\sfttray.exe /launch Notepad++ 5.1.1.0"  /f \n
       </SCRIPTBODY> 
    </SCRIPT>

    But it didn't work :-(
    The commands are ok, but nothing is add on the registry.

    Can you help me please....... !
    Thank you so much.

    Thursday, April 16, 2009 2:04 PM

Answers

  • Hello,

    Tips would be to post this in the Sequencing section.

    Now, since you set protection to true, this means that the value will be set in the virtual environment, thus not possible to effect the non-virtualized shell.

    /Znack
    • Proposed as answer by znack Friday, June 19, 2009 8:17 AM
    • Marked as answer by Aaron.ParkerModerator Saturday, November 17, 2012 3:39 PM
    Sunday, April 19, 2009 7:58 AM

All replies

  • Hello,

    Tips would be to post this in the Sequencing section.

    Now, since you set protection to true, this means that the value will be set in the virtual environment, thus not possible to effect the non-virtualized shell.

    /Znack
    • Proposed as answer by znack Friday, June 19, 2009 8:17 AM
    • Marked as answer by Aaron.ParkerModerator Saturday, November 17, 2012 3:39 PM
    Sunday, April 19, 2009 7:58 AM
  • Ok thank you so much. I posted a message in "Sequencing" :-)

    Have a nice day.
    Tuesday, April 21, 2009 8:23 AM