Advertisement
GordCaswell

ListaryJSONCustomNSH

Mar 19th, 2013
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ${SegmentFile}
  2.  
  3. ${Segment.OnInit}
  4.     InitPluginsDir
  5.     File "/oname=$PLUGINSDIR\nsJSON.dll" $EXEDIR\App\AppInfo\Launcher\nsJSON.dll
  6. !macroend
  7.  
  8. Var CheckUpdates
  9.  
  10. ${SegmentPreExecPrimary}
  11.     nsJSON::Set /file "$PAL:AppDir\Listary\UserData\preferences.json"
  12.     nsJSON::Get `general` `check_updates` /end
  13.         Pop $CheckUpdates
  14.         If $CheckUpdates = true
  15.             nsJSON::Set `general` `check_updates` /value `"false"`
  16.         EndIf
  17.     nsJSON::Serialize /file  "$PAL:AppDir\Listary\UserData\preferences.json"
  18. !macroend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement