Fermani Posted October 15, 2014 Share Posted October 15, 2014 Пишите в раздел заказов на форуме. Разбирайтесь сами и задавайте вопросы на форуме - вам обязательно помогут. Я бы не против,но! в питоне я вообще ноль. в inno setup более мение и то. @ Quote Link to comment Short link Share on other sites More sharing options...
Azbuka Posted October 15, 2014 Share Posted October 15, 2014 Я бы не против,но! в питоне я вообще ноль Я предложил два варианта решения проблемы: писать в раздел заказов, или разбираться самому. Если не можете разобраться, то пишите в раздел заказов. "На халяву" никто никому ничего не даст. @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted October 15, 2014 Share Posted October 15, 2014 так не дают на халяву А вам прямо всё на халяву? Выхода два: платите либо сами делайте. @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted October 15, 2014 Share Posted October 15, 2014 А вам прямо всё на халяву? Выхода два: платите либо сами делайте. оплата сколько? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted October 15, 2014 Share Posted October 15, 2014 оплата сколько? Я этим не занимаюсь. @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted October 15, 2014 Share Posted October 15, 2014 Я этим не занимаюсь. а разве у тебя нету этой фичи? 1 @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted October 15, 2014 Share Posted October 15, 2014 (edited) а разве у тебя нету этой фичи? У меня есть такое в инсталляторе. - Там да, могу такое сделать. Но речь идёт об оповещении доступного обновлении прямо в игре. - Тут уже реализация через Python (если делать всё по "последнему слову техники", то Python + AS). Edited October 15, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
woole Posted October 21, 2014 Share Posted October 21, 2014 Всем привет :) Есть кастомное окно, в котором TNewMemo. Как загрузить в этот самый TNewMemo rtf-файл? Или есть какие то другие способы загружать rtf файлы? Edit := TNewMemo.Create(Form); Edit.Top := 20; Edit.left := 20; Edit.Width := 100; Edit.Height := ScaleY(89); Edit.ScrollBars := ssVertical; Edit.Text := 'ssss'; Edit.Parent := Form; Edit.ReadOnly:=true; @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted October 21, 2014 Share Posted October 21, 2014 Как загрузить в этот самый TNewMemo rtf-файл? Никак.Нужно создать элемент типа TRichEditViewer. Выглядеть должно как-то так: [Files] Source: "file.rtf"; DestDir: "{tmp}"; [Code] Var RTF: TRichEditViewer; Procedure PROCEDURA(); begin LoadStringFromFile(ExpandConstant('{tmp}\file.rtf'), RTF); RTF := TRichEditViewer.Create(WizardForm, например); with RTF do begin Parent := WizardForm; ScrollBars := ssVertical; ReadOnly := True; Left := WizardForm.Left; Top := WizardForm.Top; Width := WizardForm.Width; Height := WizardForm.Height; RTFText := RTF; end; @ Quote Link to comment Short link Share on other sites More sharing options...
leeuniverse Posted October 21, 2014 Share Posted October 21, 2014 (edited) Hey all, I need help fixing two things ..... 1. Trying to figure out how I can add more 'text "to the bottom check box option as shown in the image .. The text width is getting cut off on the end, and I Would like the text to go to A Second line.Would Also I like the text to be A Particular Other color than black? ----- 2. During Uninstall, files that were installed manually to res_mods after the installer has been run are left-over within res_mods. In other words, Uninstall does not clean out res_mods and just leave the 0.9.3 folder. Would I like the res_mods Folder to be cleaned out on uninstall.I HAD found the: UninstallDelete] Type: filesandordirs; Name: "{app} \ res_mods" command. HOWEVER, as it's formatted currently it can not be used now that I have a "Addon Install" option. We do not want everything in res_mods cleaned in That Case. The addon install option simply needs to clean out what it installs as is, it's uninstalling procedure should not change. As well, this does not install the 0.9.3 Directory Which Also we want to be in res_mods. Can anyone help me make the "Clean Install", and the "Clean Install W / Backup" to clean the res_mods Folder upon uninstalling, and of course a 0.9.3 directory added to the clean install version only, and the backup version the cleaning needs to occur BEFORE the backup files are put back into res_mods. Thus, the backup option of course doesn't "remain" empty, res_mods is only emptied before the backup files are put back.. The 3rd option, the Addon option should continue to work as it currently does. My script attached.... without the button_3.zip Edited October 21, 2014 by leeuniverse @ Quote Link to comment Short link Share on other sites More sharing options...
woole Posted October 21, 2014 Share Posted October 21, 2014 (edited) Нужно создать элемент типа TRichEditViewer.Теперь ошибка Показывает ошибку на LoadStringFromFile(ExpandConstant('{tmp}\faq.rtf'), RTF); Нужно создать элемент типа TRichEditViewer. Спасибо за наводку и скрипт, все работает :) Вот код: var Edit: TRichEditViewer; RTF: AnsiString; ExtractTemporaryFile('faq.rtf'); LoadStringFromFile(ExpandConstant('{tmp}\faq.rtf'), RTF); Edit := TRichEditViewer.Create(Form); with Edit do begin Parent := Form; ScrollBars := ssVertical; ReadOnly := True; Left := 20; Top := 20; Width := 490; Height := 297; RTFText := RTF; end; Edited October 21, 2014 by woole @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted October 21, 2014 Share Posted October 21, 2014 (edited) RTF: AnsiString; Точняк, забыл про это. Код наваял сходу, без проверки, так что сори :) 1. Trying to figure out how I can add more 'text "to the bottom check box option as shown in the image .. The text width is getting cut off on the end, and I Would like the text to go to A Second line. Would Also I like the text to be A Particular Other color than black? function ClearCacheCreate(): Boolean; begin ClearCache:=TCheckBox.Create(WizardForm); ClearCache.SetBounds(0, 340, WizardForm.Width, 80) ClearCache.Height:=20; ClearCache.Checked:=False; ClearCache.Caption:='Delete WorldOfTanks Settings and Cache Directory'#13'For fixing some corruptions with game. Requires configuring game settings again.'; ClearCache.WordWrap := True; ClearCache.Color := clWhite; ClearCache.Parent:=BackupPage.Surface; end; The 3rd option, the Addon option should continue to work as it currently does.3rd option should not do anything.All files that have been installed by setup will be deleted by uninstalling. The files, which have been in the "res_mods" before installation will remain after uninstalling. Edited October 21, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
leeuniverse Posted October 21, 2014 Share Posted October 21, 2014 (edited) 3rd option should not do anything.All files that have been installed by setup will be deleted by uninstalling. The files, which have been in the "res_mods" before installation will remain after uninstalling. 1. Thanks for helping me fix the first part. 2. Sorry, you misunderstood. I want the #1 & #2 options to delete ALL files within res_mods on uninstall, they do not do this if people have added files "after" install. Uninstall will only delete the files installed. Like I said, I found the "UninstallDelete" code, but it will do it for ALL uninstalling done, but I don't want it to do it on the #3 option. Further, that particular uninstalldelete code will not restore the 0.9.3 folder into res_mods. Also, the deleting of the content of res_mods needs to for the #2 option to occur "before" the BACKUP folder is restored to res_mods. In other words, I want on Uninstall the #1 & #2 option to delete all the contents of res_mods, and for a 0.9.3 folder to be created.. #2 should do it before the backup folder is restored. #3 shouldn't be touched, but work as is. Does that make sense what I'm asking? I also got this error now.... I'm using ANSI InnoSetup. Edited October 21, 2014 by leeuniverse @ Quote Link to comment Short link Share on other sites More sharing options...
AtotIK Posted October 21, 2014 Share Posted October 21, 2014 leeuniverse, WizardForm.TasksList. Inno Help? No, i don't know what is it! @ Quote Link to comment Short link Share on other sites More sharing options...
leeuniverse Posted October 21, 2014 Share Posted October 21, 2014 Okay thanks.... I'm getting an error now on "Wordwrap".....? @ Quote Link to comment Short link Share on other sites More sharing options...
AtotIK Posted October 21, 2014 Share Posted October 21, 2014 leeuniverse, Help ---> Support Classes Reference TLabel = class(TCustomLabel) property Alignment: TAlignment; read write; property AutoSize: Boolean; read write; property Caption: String; read write; property Color: TColor; read write; property FocusControl: TWinControl; read write; property Font: TFont; read write; property WordWrap: Boolean; read write; property OnClick: TNotifyEvent; read write; property OnDblClick: TNotifyEvent; read write; end; @ Quote Link to comment Short link Share on other sites More sharing options...
leeuniverse Posted October 21, 2014 Share Posted October 21, 2014 AtotIK That doesn't actually help me..... You seem to have a bad habit in this thread of telling people of how stupid they are and what they should know, instead of simply helping them fix the problem as asked. I'm NOT a coder.... YOu are speaking greek to me. @ Quote Link to comment Short link Share on other sites More sharing options...
AtotIK Posted October 21, 2014 Share Posted October 21, 2014 leeuniverse, send screenshot of this error. @ Quote Link to comment Short link Share on other sites More sharing options...
leeuniverse Posted October 21, 2014 Share Posted October 21, 2014 (edited) san4o helped me fix the issue by creating a TLabel out of the code. I do still need help with my other issue. If you look at my screenshot, you'll see the options I have. What I need is for: When removing mods, Uninstalling, for options #1 and #2, I want all files to be deleted from res_mods, not only those installed by the installer.The 0.9.3 folder should be added also to res_mods.. The #2 option after all files have been deleted should still Restore the Backup folder files. #3 Addons should only delete files installed, leave other mods etc. alone. This is how it currently works, for it and the other options. I need it to work the same, but options #1 & #2 to delete all files instead. Edited October 21, 2014 by leeuniverse @ Quote Link to comment Short link Share on other sites More sharing options...
Yusha Posted October 21, 2014 Share Posted October 21, 2014 (если делать всё по "последнему слову техники", то Python + AS). Зачем AS? Что он даст? @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.