Jump to content
Korean Random
EvilAlex

Создание инсталляторов для модпаков на базе Inno Setup

Recommended Posts

Пишите в раздел заказов на форуме.

 

 

Разбирайтесь сами и задавайте вопросы на форуме - вам обязательно помогут.

Я бы не против,но! в питоне я вообще ноль. в inno setup более мение и то.

Share this post


Link to post

Short link
Share on other sites

 

 

Я бы не против,но! в питоне я вообще ноль

Я предложил два варианта решения проблемы: писать в раздел заказов, или разбираться самому.

Если не можете разобраться, то пишите в раздел заказов. "На халяву" никто никому ничего не даст.

Share this post


Link to post

Short link
Share on other sites

так не дают на халяву 

А вам прямо всё на халяву?

Выхода два: платите либо сами делайте.

Share this post


Link to post

Short link
Share on other sites

А вам прямо всё на халяву?

Выхода два: платите либо сами делайте.

оплата сколько?

Share this post


Link to post

Short link
Share on other sites

Я этим не занимаюсь.

а разве у тебя нету этой фичи?

  • Downvote 1

Share this post


Link to post

Short link
Share on other sites

а разве у тебя нету этой фичи?

У меня есть такое в инсталляторе. - Там да, могу такое сделать.

Но речь идёт об оповещении доступного обновлении прямо в игре. - Тут уже реализация через Python (если делать всё по "последнему слову техники", то Python + AS).

Edited by Kotyarko_O

Share this post


Link to post

Short link
Share on other sites

Всем привет :)

Есть кастомное окно, в котором 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;

Share this post


Link to post

Short link
Share on other sites

 

 

Как загрузить в этот самый 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;

Share this post


Link to post

Short link
Share on other sites

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?

 

hL9JvHY.png

 

-----

 

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 by leeuniverse

Share this post


Link to post

Short link
Share on other sites

Нужно создать элемент типа TRichEditViewer.

Теперь ошибка

37f1635652097fba92762926fd9d5689.png

 

Показывает ошибку на

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 by woole

Share this post


Link to post

Short link
Share on other sites

 

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 by Kotyarko_O

Share this post


Link to post

Short link
Share on other sites

 

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.

 

2HIF6wL.png

Edited by leeuniverse

Share this post


Link to post

Short link
Share on other sites

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;

post-12922-0-55354800-1413906598_thumb.png
 

Share this post


Link to post

Short link
Share on other sites

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.

Share this post


Link to post

Short link
Share on other sites

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 by leeuniverse

Share this post


Link to post

Short link
Share on other sites

(если делать всё по "последнему слову техники", то Python + AS).

Зачем AS? Что он даст?

Share this post


Link to post

Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...