Show
Ignore:
Timestamp:
04/07/09 20:17:39 (8 months ago)
Author:
ashot
Message:

in the right place now..

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/uploadr/win_installer/build_dev.nsi

    r534 r602  
    3939        LangString "${NAME}" "${LANG_${LANG}}" "${VALUE}" 
    4040!macroend 
     41 
     42Function WriteToFile 
     43 Exch $0 ;file to write to 
     44 Exch 
     45 Exch $1 ;text to write 
     46  
     47  FileOpen $0 $0 w #open file 
     48   #FileSeek $0 0 END #go to end 
     49   FileWrite $0 $1 #write to file 
     50  FileClose $0 
     51  
     52 Pop $1 
     53 Pop $0 
     54FunctionEnd 
     55  
     56!macro WriteToFile String File 
     57 Push "${String}" 
     58 Push "${File}" 
     59  Call WriteToFile 
     60!macroend 
     61 
     62!define WriteToFile "!insertmacro WriteToFile" 
    4163 
    4264!include "strings.nsh" 
     
    86108        ; Chrome 
    87109        File /r "Flickr Uploadr\chrome" 
     110         
    88111 
    89112        ; XPCOM components 
     
    127150        WriteRegStr HKCR "SystemFileAssociations\video\shell\edit.FlickrUploadr" "" "$(send)" 
    128151        WriteRegStr HKCR "SystemFileAssociations\video\shell\edit.FlickrUploadr\command" "" '"$INSTDIR\Flickr Uploadr.exe" "%1"' 
     152        ${WriteToFile} "$INSTDIR" "$APPDATA\Macromedia\Flash Player\#Security\FlashPlayerTrust\flickruploadr.cfg" 
    129153 
    130154SectionEnd