Have you tried to edit the res-file and rebuild the nbp by the reshack script?
Yes.
The download does not work for me.
Try it like this
http://polariton.rghost.ru/download/8X5 ... ertBox.zipHave you edit the NewPlugin.res file's header text to reflect the name change?
I create a new plugin, not from the template.
------------------------------
I'm doing the Assistant to create Neobook plugin.
All the data is done programmatically.
So I'm making changes to the res file.
- Code: Select all
SetVar "[Shablon_RC_File]" "LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL[#13][#10][#13][#10]MAINICON ICON [#34][ICON][#34][#13][#10][#13][#10][#13][#10]1 VERSIONINFO[#13][#10]FILEVERSION 1,5,0,0[#13][#10]PRODUCTVERSION 1,5,0,0[#13][#10]FILEOS 0x4[#13][#10]FILETYPE 0x2[#13][#10]{[#13][#10]BLOCK [#34]StringFileInfo[#34][#13][#10]{[#13][#10] BLOCK [#34]040904E4[#34][#13][#10] {[#13][#10] VALUE [#34]CompanyName[#34], [#34][CompanyName][#34][#13][#10] VALUE [#34]FileDescription[#34], [#34]Плагин NeoBook[#34][#13][#10] VALUE [#34]FileVersion[#34], [#34]1.5.0.0[#34][#13][#10] VALUE [#34]InternalName[#34], [#34][NamePlugin].nbp[#34][#13][#10] VALUE [#34]LegalCopyright[#34], [#34][CompanyName][#34][#13][#10] VALUE [#34]LegalTrademarks[#34], [#34][CompanyName][#34][#13][#10] VALUE [#34]OriginalFilename[#34], [#34][NamePlugin].nbp[#34][#13][#10] VALUE [#34]ProductName[#34], [#34][NamePlugin][#34][#13][#10] VALUE [#34]ProductVersion[#34], [#34][ProductVersion][#34][#13][#10] VALUE [#34]Comments[#34], [#34]Плагин для программы NeoBook[#34][#13][#10] }[#13][#10]}[#13][#10][#13][#10]BLOCK [#34]VarFileInfo[#34][#13][#10]{[#13][#10] VALUE [#34]Translation[#34], 0x0409 0x04E4 [#13][#10]}[#13][#10]}"
PopulateStr "[Shablon_RC_File]" "[RC_File]"
zmConvertString "AnsiToUtf8" "[RC_File]" "[RC_File]"
FileWrite "[PathFolderProject]\[NamePlugin].rc" "All" "[RC_File]"
Run "[ResHacker]" "-open [#34][PathFolderProject]\[NamePlugin].rc[#34] -save [#34][PathFolderProject]\[NamePlugin].res[#34] -action compile -log NUL" "Wait+LoadComplete+Minimized+Hidden" "" ""
So I collect a file. Etc.
- Code: Select all
Run "[ResHacker]" "-addoverwrite [#34][PathFolderProject]\[NamePlugin].tnbr[#34], [#34][PathFolderProject]\[NamePlugin].nbr[#34], [#34][PathFolderProject]\[NamePlugin].res[#34] , , ," "Wait+LoadComplete+Minimized" "" ""
Loop "1" "[ActionsCount]" "[i]"
hpwLine "[Actions]" "[i]" "[NameAction]"
Run "[ResHacker]" "-add [#34][PathFolderProject]\[NamePlugin].nbr[#34], [#34][PathFolderProject]\[NamePlugin].nbr[#34], [#34][PathFolderProject]\[NameAction].txt[#34], PluginCommands,[NameAction],0" "Wait+LoadComplete+Minimized" "" ""
EndLoop
Run "[ResHacker]" "-add [#34][PathFolderProject]\[NamePlugin].nbr[#34], [#34][PathFolderProject]\[NamePlugin].nbr[#34], [#34][PathFolderProject]\[NamePlugin].cfr[#34], PluginConfig,Config,0" "Wait+LoadComplete+Minimized" "" ""
Run "[ResHacker]" "-addoverwrite [#34][PathFolderProject]\[NamePlugin].tnbp[#34], [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NamePlugin].res[#34] , , ," "Wait+LoadComplete+Minimized" "" ""
Loop "1" "[ActionsCount]" "[i]"
hpwLine "[Actions]" "[i]" "[NameAction]"
Run "[ResHacker]" "-add [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NameAction].txt[#34], PluginCommands,[NameAction],0" "Wait+LoadComplete+Minimized" "" ""
EndLoop
Run "[ResHacker]" "-add [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NamePlugin].cfp[#34], PluginConfig,Config,0" "Wait+LoadComplete+Minimized" "" ""
Run "[ResHacker]" "-add [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NamePlugin].nbp[#34], [#34][PathFolderProject]\[NamePlugin].ini[#34], PluginConfig,Ini,0" "Wait+LoadComplete+Minimized" "" ""
Perhaps somewhere I err. Here I sit I understand and I can not understand in any way.
