FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   INNO TROUBLESHOOT - Questions Here (https://fileforums.com/showthread.php?t=93193)

artag 29-04-2017 12:48

Hi: Isdone question:

My isdone script is overwriting my arc.ini and changing the srep line with -mem4096b

i tried adding this

Code:

if ISDoneInit(ExpandConstant(''),$F777, 0,0,0, MainForm.Handle, 512, @ProgressCallback) then begin
repeat

        ChangeLanguage('Spanish');
        if not SrepInit('',512,0) then break;
        ;that line

and then it changes the line with 512b (NOT 512m)

So is using 512 bytes instead of 512m for srep.
What i need to change?
Thanks

Viper645 29-04-2017 18:50

What's the difference between CI & CIU?
I mean which is easy to use?

pakrat2k2 30-04-2017 07:52

CI were the early versions of the script, CIU has had tremendous update made to the original work that yener90 released. Read the sticky topics for files needed if you plan on making own conversions.

Viper645 01-05-2017 09:02

I want to know the difference between packjpg_dll 9kb, 137kb and 934kb

artag 01-05-2017 09:30

Update:
I just confirmed that isdone puts a "b" after the memory size for srep on the
arc.ini:

Code:

unpackcmd = srep -mem4096b -d - -  <stdin> <stdout>

but it does correctly on the cls.ini file:

Code:

[Srep]
Memory=4096

Im using isdone0.6final
It's a bug or i'm doing something wrong?

Thanks

Bulat 02-05-2017 02:22

can't you just use larger constant, i.e. 512000000 or so?

ATL4NTYS 03-05-2017 09:04

Help.. :(
 
I donť know why but someone when open installer see only just this..

http://img.centerofwarez.cz/subdom/i...ge.php?di=1BL2

but me never happend...

i always see all good..

http://img.centerofwarez.cz/subdom/i...ge.php?di=EXBZ

please help.. any ideas.?? why.? where is the problem.. they try many of compatabilites modes, run as admin, change the dpi.. (size of frames,windows)
i dont know why.. problem is on win7 + :( please help..

script:
https://hastebin.com/pilacuzoca.php

pakrat2k2 03-05-2017 14:34

Try the entire package, instead of just script. ( edit your post & add it )

ATL4NTYS 05-05-2017 05:31

SOLVED... :) thx

pakrat2k2 05-05-2017 08:32

Quote:

Originally Posted by ATL4NTYS (Post 458621)
SOLVED... :) thx

for others, here's the post that solved his issue

http://www.fileforums.com/showpost.p...4&postcount=13

Viper645 07-05-2017 10:39

Is there any way to use CallBackCtrl.dll instead of InnoCallBack.dll? I always ger an error saying cannot import file.

ATL4NTYS 08-05-2017 05:28

Protect from decompile
 
Any method to protect my setup.exe from decompile by inno unpackers/decompilers ? :) thx in advance..

78372 08-05-2017 07:11

Quote:

Originally Posted by ATL4NTYS (Post 458656)
Any method to protect my setup.exe from decompile by inno unpackers/decompilers ? :) thx in advance..

http://fileforums.com/showpost.php?p...8&postcount=10

It's probably a good solution, but not the best solution though :)

ATL4NTYS 10-05-2017 03:23

Any better way.? simpliest..?

78372 10-05-2017 04:10

This is a strong way. There are no more better way than this to use with inno setup ee2

Danziel123 14-05-2017 23:38

Excuse me.
I want to ask.
I make simple installer a game with inno setup 5.5.9.
The installation work perfect.
But the problem is i want install another game, but i cant't change the installation folder.
Installation folder will follow first game installation.

What's worng with my scrip?
Or version of inno setup?

First before i change my hardware from intel to amd i can choose the installation folder.
Now at amd i can't change the installation folder.

Sorry for my bad english :)

Thank you before :)

78372 15-05-2017 01:47

Add this line to your [Setup] section

Usepreviousappdir=no

Gupta 19-05-2017 06:32

Quote:

Originally Posted by Viper645 (Post 458652)
Is there any way to use CallBackCtrl.dll instead of InnoCallBack.dll? I always ger an error saying cannot import file.

Make surre you have extracted Callbackctrl.dll before initialising the wizard

Cesar82 26-05-2017 06:48

Help with the code...
 
Advanced users, I need help ...
I need help with with an adaptation of the code below to work inside the inno setup.

Code:

function ConvertLanguageName(Const Value: String): String;
var
  L: Integer;
  WideCharCode: Word;
  C: Char;
begin
  Result := '';
  L := 1;
  while L <= Length(Value) do
  begin
    if Value[L] = '<' then
    begin
      //WideCharCode := Ord( StrToInt('$' + Copy(Value, L + 1, 4)));
      WideCharCode :=  StrToInt('$' + Copy(Value, L + 1, 4));
      L := L + 6;
    end else begin
      WideCharCode := Ord(Value[L]);
      L := L + 1;
    end;
    C := Chr(WideCharCode);
    SetLength(Result, Length(Result) + 1);
    Result[Length(Result)] := C;
  end;
end;

function InitializeSetup(): Boolean;
begin
  MsgBox(ConvertLanguageName2('<0420><0443><0441><0441><043a><0438><0439>'), mbInformation, MB_OK); //Pусский
end;

This code compiled in Dephi 2009 Lite works perfectly, but if compiled in delphi 7 does not work. So far I've noticed that the Chr or Char function does not work correctly for unicode characters if compiled in Inno Setup or in Delphi 7. Compiling in Delphi 2009 works fine.
http://i.imgur.com/RZ1y0dV.jpg
Delphi code to compare
https://mega.nz/#!sZYGWTJJ!WnaRzdNsz...c9XM9AqdwF60aA

Is there a way that works?
Thanks!

Viper645 29-05-2017 07:07

Anyone can give me the download links of all of the old versions of ISDone.dll with scripts?

nizcoz 02-06-2017 14:24

Is it possible to change the position (top) of one of the status messages of the installation? (only one)

Code:

; *** Installation status messages
StatusClosingApplications=Closing applications...
StatusCreateDirs=Creating directories...
StatusExtractFiles=Completing the installation...
StatusCreateIcons=Creating shortcuts...
StatusCreateIniEntries=Creating INI entries...
StatusCreateRegistryEntries=Creating registry entries...
StatusRegisterFiles=Registering files...
StatusSavingUninstall=Saving uninstall information...
StatusRunProgram=Finishing installation...
StatusRestartingApplications=Restarting applications...
StatusRollback=Rolling back changes...


nizcoz 10-06-2017 06:54

How to use facompress?

Bulat 10-06-2017 08:06

run fazip w/o parameters - it will show cmdline syntax :)

nizcoz 10-06-2017 11:13

Quote:

Originally Posted by Bulat (Post 459635)
run fazip w/o parameters - it will show cmdline syntax :)

Could you explain me better how to use facompress? I do not understand this. Thanks!!!

pakrat2k2 10-06-2017 11:32

Quote:

Originally Posted by nizcoz (Post 459646)
Could you explain me better how to use facompress? I do not understand this. Thanks!!!

run cmd.exe , navigate to where fazip is & type in fazip.exe name, should give list of commands.

nizcoz 11-06-2017 15:22

@pakrat2k2 or @Bulat Can you give me an example of use of facompress.dll and fazip.exe? (ISDone). Please, thanks.

johnnyusa 12-06-2017 13:34

Luis, Delphi 9 is fully compatible with unicode, that's why your script is working properly, you can try to compile Inno Unicode with Delphi 2009, worked for me. Also you can dll your functions in Delphi 2009 and should work fine in Inno.

Now a question, is there a way to get Inno Setup Extended Edition sorce code? I'd like to compile my own Inno with a different DiskID.

Danziel123 22-07-2017 04:28

How to make 2 or more icon in inno setup?

pakrat2k2 23-07-2017 08:16

Quote:

Originally Posted by Danziel123 (Post 460946)
How to make 2 or more icon in inno setup?

try:

[Icons]
Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"; Components: main; Tasks: startmenu
Name: "{group}\My Program Help"; Filename: "{app}\MyProg.chm"; Components: help; Tasks: startmenu
Name: "{commondesktop}\My Program"; Filename: "{app}\MyProg.exe"; Components

or in INNO > HELP > documentation, search for icon, for more info.

seventhorama 24-07-2017 02:57

i need some help in modifying xml using innosetup

Code:

<?xml version="1.0"?>
<Settings>
  <Setting type="10" key="DownloadInPlaceDir" value="D:\Games\My Games"/>
  <Setting type="10" key="LastUsernameToLoginProd" value="fb2076434038419fa915a7c07bc4768f2b847bd600b9482d440f1ced341a48c64654c4fdec3f57a7b1b35d4913675d33d8c7793691b0ff84caaf6815ee873f91964e2fe64cbf4683"/>
  <Setting type="10" key="RememberMeProd" value="1b07700a38e33470"/>
  <Setting type="10" key="RememberMeUserIdProd" value="1b07700a38e33470"/>
  <Setting type="10" key="TFAIdProd" value="1b07700a38e33470"/>
</Settings>

can i modify D:\Games\My Games into parent dir (not app dir)?

i have tried this script but no luck yet...

Code:

procedure CurStepChanged(CurStep: TSetupStep);
var
  UnicodeStr: string;
  ANSIStr: AnsiString;
begin
  if (CurStep = ssPostInstall) then
  begin
  LoadStringFromFile(ExpandConstant('{src}\apps.xml'), ANSIStr)
  UnicodeStr := String(ANSIStr);
  StringChangeEx(UnicodeStr, 'DownloadInPlaceDir', ExpandConstant('{src}'), False)
  SaveStringToFile(ExpandConstant('{src}\apps.xml'), AnsiString(UnicodeStr), False);
  end;
end;


KaktoR 11-08-2017 22:24

Need some help.

Code:

function InitializeSetup(): Boolean;
begin
    if FileExists(ExpandConstant('{tmp}\Setup.cjstyles')) then begin
      LoadSkin(ExpandConstant('{tmp}\Setup.cjstyles'), '');
      Result := True;
    end;
    if FileExists(ExpandConstant('{tmp}\Setup.vsf')) then begin
      LoadVCLStyle(ExpandConstant('{tmp}\Setup.vsf'));
      Result := True;
    end;
end;


procedure DeinitializeSetup();
begin
  if FileExists(ExpandConstant('{tmp}\Setup.cjstyles')) then begin
    UnloadSkin();
  end;
  if FileExists(ExpandConstant('{tmp}\Setup.vsf')) then begin
    UnLoadVCLStyles;
  end;
end;

Setup.exe don't start, it just closes.

Maybe i am blind and don't see the mistake :confused:

Edit: Ok after a cup of coffee i just found my mistake.

Result := True was missing in InitializeSetup

-NORO- 21-08-2017 09:11

fixed !

Chayan Manna 21-08-2017 10:17

Quote:

Originally Posted by -NORO- (Post 461865)
Hello
Am trying to add a customform. To make short once you click on System Tile
that page opens.
I suceeded to make it but once open it just freezes and not moving.
https://extraimage.net/images/2017/0...63bc42fe3e.png
https://extraimage.net/images/2017/0...b53b04dcc7.png

Here the code

You must write a code of "mousedown" for the custom form.

-NORO- 21-08-2017 10:25

Quote:

Originally Posted by Chayan Manna (Post 461868)
You must write a code of "mousedown" for the custom form.

Nevermind , fixed
Thank you JRD! :)

Gupta 21-08-2017 10:36

Quote:

Originally Posted by Chayan Manna (Post 461868)
You must write a code of "mousedown" for the custom form.

Quote:

-NORO-
he is asking for form's mouse drag functionality. This is what happens when you copy the code, doesn't know what is really the purpose behind, conjectures is all you got and foul perceptions

Chayan Manna 21-08-2017 21:09

Quote:

Originally Posted by PrinceGupta2000 (Post 461871)
he is asking for form's mouse drag functionality. This is what happens when you copy the code, doesn't know what is really the purpose behind, conjectures is all you got and foul perceptions

That's the thing I have said him. I made the reply from my phone so, that's why I have not wrote the full code. I know all the purpose of the code.
The procedure "onmousedown" is a fixed property of a label in a custom form in which one have to add the mouse drag procedure. like this,
OnMouseDown:=@INFOMouseDown;
And the "INFOMouseDown" procedure is the mouse drag procedure which can be like this,
procedure INFOMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(InfoForm.Handle,$0112,$F012,0);
end;

And one thing, you have cracked my mod, so You can see there is more things than coping a code. No one can make such type of mod by just only coping the codes.

-NORO- 22-08-2017 02:32

Quote:

Originally Posted by Chayan Manna (Post 461875)
That's the thing I have said him. I made the reply from my phone so, that's why I have not wrote the full code. I know all the purpose of the code.
The procedure "onmousedown" is a fixed property of a label in a custom form in which one have to add the mouse drag procedure. like this,
OnMouseDown:=@INFOMouseDown;
And the "INFOMouseDown" procedure is the mouse drag procedure which can be like this,
procedure INFOMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(InfoForm.Handle,$0112,$F012,0);
end;

And one thing, you have cracked my mod, so You can see there is more things than coping a code. No one can make such type of mod by just only coping the codes.

That wasnt the problem

Chayan Manna 22-08-2017 04:41

Quote:

Originally Posted by -NORO- (Post 461879)
That wasnt the problem

So, What's the problem? :)

-NORO- 22-08-2017 12:18

Quote:

Originally Posted by Chayan Manna (Post 461880)
So, What's the problem? :)

The
procedure CreateSystemPage();
i placed under InitializeWizard; but it should be placed under InitializeSetup

Again all credit goes to JRD! :)

KaktoR 22-08-2017 12:43

Anyone knows how to draw shadow on text TLabel?

Google comes up with nothing.


All times are GMT -7. The time now is 05:36.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com