FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   **New Installer (https://fileforums.com/showthread.php?t=97259)

rinaldo 21-11-2015 08:13

Quote:

Newbie
yes ... copy codex installer, it was made a request on the forum and I did the script

=>

ShadowEagle 21-11-2015 09:49

JRD!:

Yes, but doesn`t work. Don`t know why. The messages

Quote:

MemoExecute:='Scanning files...' + #13#10 +
'Rolling back changes...' + #13#10 +
won`t be displayed.

I want this:

If isdonerror will happen, there should be shown "Error!" in the Memolist and no roleback shout be done.

JRD! 21-11-2015 11:00

Quote:

Originally Posted by ShadowEagle (Post 444762)
JRD!:

Yes, but doesn`t work. Don`t know why. The messages



won`t be displayed.

I want this:

If isdonerror will happen, there should be shown "Error!" in the Memolist and no roleback shout be done.

1) Edit the text in the UltraArc module:

Code:

procedure CurStepChanged(CurStep: TSetupStep);
begin
  if (CurStep = ssInstall) and FileExists(ExpandConstant('{src}\records.ini')) then
    UltraARC_Process;

  if (CurStep=ssPostInstall) and ISDoneError then begin
      MemoIsdoneList.clear;
          MemoIsdoneList.Lines.Add('An error has occurred!');
        UnBtn.Enabled:=False;
//        Exec2(ExpandConstant('{uninstallexe}'), '/VERYSILENT', false);
//      DelTree(ExpandConstant('{app}'), True, True, True);

  end;
end;

2) Change the code of the main file as shown below:

Code:

if (CurPageID = wpFinished) then
begin

IconDesktop.Enabled:=False;
StartMenu.Enabled:=False;
Soft.Enabled:=False;
DrivesComboBox.Enabled:=False;
//MemoExecute:=+ #13#10 +'Finished Installation...' + #13#10 +
//'Done!';
//MemoIsdoneList.Lines.Add(MemoExecute);

UnBtn.Show;
WizardForm.GroupEdit.Enabled:=False;
WizardForm.GroupBrowseButton.Enabled:=False;
WizardForm.DirEdit.Enabled:=False;
WizardForm.DirBrowseButton.Enabled:=false;
if ISDoneError = False then begin
WizardForm.ClientHeight:=604;
FInstallationLbl.Caption := 'Installation Successfully';
FInstallationLbl.Left:=105;
FInstallationLbl.Font.Color := $0032CD32;
end else begin
FInstallationLbl.Caption := 'Installation Failed';
FInstallationLbl.Font.Color := $000000FF;
WizardForm.ClientHeight:=604;
end;
end;

3) I would tend to this:

UltraArc module:

Code:

procedure CurStepChanged(CurStep: TSetupStep);
begin
  if (CurStep = ssInstall) and FileExists(ExpandConstant('{src}\records.ini')) then
    UltraARC_Process;

  if (CurStep=ssPostInstall) and ISDoneError then begin
//      MemoIsdoneList.clear;
//          MemoIsdoneList.Lines.Add('An error has occurred!');

        UnBtn.Enabled:=False;
//        Exec2(ExpandConstant('{uninstallexe}'), '/VERYSILENT', false);
//      DelTree(ExpandConstant('{app}'), True, True, True);

  end;
end;

Main file:

Code:

if (CurPageID = wpFinished) then
begin

IconDesktop.Enabled:=False;
StartMenu.Enabled:=False;
Soft.Enabled:=False;
DrivesComboBox.Enabled:=False;

UnBtn.Show;
WizardForm.GroupEdit.Enabled:=False;
WizardForm.GroupBrowseButton.Enabled:=False;
WizardForm.DirEdit.Enabled:=False;
WizardForm.DirBrowseButton.Enabled:=false;
if ISDoneError = False then begin
WizardForm.ClientHeight:=604;

MemoIsdoneList.clear;
MemoIsdoneList.Lines.Add('Finished Installation...' + #13#10 + 'Done!');


FInstallationLbl.Caption := 'Installation Successfully';
FInstallationLbl.Left:=105;
FInstallationLbl.Font.Color := $0032CD32;
end else begin

MemoIsdoneList.clear;
MemoIsdoneList.Lines.Add('An error has occurred!');


FInstallationLbl.Caption := 'Installation Failed';
FInstallationLbl.Font.Color := $000000FF;
WizardForm.ClientHeight:=604;
end;
end;

http://img15.hostingpics.net/pics/182833fsfs.jpg

http://img15.hostingpics.net/pics/633222dsfs.jpg

That answer your question?

JRD! 21-11-2015 11:07

Quote:

Originally Posted by rinaldo (Post 443824)
New Installer by Inno Setup EE Type Skin (.cjstyles and VCL) First Version 1.0

Change log v 1.2
Group folder (stored in the directory is correct)
Dir Folder (elongated and moved + added a call for combobox)
Layered Transparency (Code moved .... the closure was faulty)
Desktop and MenuStart icon (Moved)



please .. posted only questions of malfunction or any improvements, but do not post questions about personal changes that not have time to waste for wishes

please .. posted only questions of malfunction or any improvements, but do not post questions about personal changes that not have time to waste for wishes

Because

- VclStylesInno.dll modified

- Add Windows10Dark.vsf

I delete no problem, just want to help make it closer to the original, clear?

rinaldo 21-11-2015 12:06

Quote:

JRD!

o no no no
message nor for you is for me, i can not edit my scripts always .. you can post what you want and I thank you for this friend


Windows10Dark.vsf is Good http://fileforums.com/images/icons/icon14.gif

Thanks fo you support :)

rinaldo 21-11-2015 13:28

1 Attachment(s)
Quote:

ShadowEagle
1) insert codeline to [Setup]
Code:

SetupLogging=yes
2) open %temp% and send me logfile

bat for move logfile:

@echo off
xcopy %temp%\Setup*.txt %USERPROFILE%\Desktop\LOG\

runtime error is error in bytecode

JRD! 25-11-2015 03:07

Quote:

Originally Posted by rinaldo (Post 444767)
o no no no
message nor for you is for me, i can not edit my scripts always .. you can post what you want and I thank you for this friend


Windows10Dark.vsf is Good http://fileforums.com/images/icons/icon14.gif

Thanks fo you support :)

Ok sorry I misunderstood :o

ShadowEagle 13-12-2015 07:54

What line i`ve to add into script for using password protected FreeARC archives? Greetz








Lucas65 13-12-2015 12:21

Hello Rinaldo. Thank you so much for the script: a simple, yet elegant. Really nice!
I would have a problem though with the decompression of files created with the method reflate in the compressor created by Felice.
I followed these steps: added the string in arc.ini "unpackcmd = reflate -restore123 $$arcpackedfile$$.tmp $$arcdatafile$$.tmp"; added in the script "UltraArc.iss" files precomp.exe, reflate.exe, raw2hif.exe, rawdet.exe and rawrest.exe but installation me two errors:

http://i.imgur.com/5FbkQX9.png

http://i.imgur.com/3JP6223.png

Any idea to solve the problem?


Ciao Rinaldo. Grazie mille per lo script: semplice e allo stesso tempo elegante. Veramente bello!
Avrei un problema però con la decompressione di file creati con il metodo reflate presente nel compressore creato da Felice.
Io ho seguito questi passaggi: aggiunto la stringa in arc.ini "unpackcmd = reflate -restore123 $$arcpackedfile$$.tmp $$arcdatafile$$.tmp"; aggiunto nello script "UltraArc.iss" i file precomp.exe, reflate.exe, raw2hif.exe, rawdet.exe e rawrest.exe ma l'installazione mi da quei due errori in successione
Hai qualche idea per risolvere il problema? Io ci sto provando ma non capisco l'inghippo.

taporocrufeljan 08-02-2016 23:03

1 Attachment(s)
hi Guys! I'm having error when i'm compiling it.
i dunno what to do.
thanks in advance.
please help.:):)

rinaldo 08-02-2016 23:56

Quote:

Originally Posted by taporocrufeljan (Post 446949)
hi Guys! I'm having error when i'm compiling it.
i dunno what to do.
thanks in advance.
please help.:):)

use this version:
DL

SAM2712 12-02-2016 05:29

Please help some..!
 
Firstly, thanks for this amazing script. I always want some short version installer like this without wallpaper or any things.
Now,
1) Mainly, what should I do in script to work with your Compressor 'Workbench' ?
2) what should I do in script to work with Ultraarc & record.ini because setup gives error in ISarc.dll ?
3) If I compress files with 'Workbench' then what should I do to work those bin files to work with Ultraarc supported setups :(

rinaldo 28-02-2016 08:43

I do not know the codex script, post the setup in order to understand

rinaldo 28-02-2016 12:20

exit in full page
Code:

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
Confirm:=False;
end;


exit to selectdir
Code:

Procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
Begin
if CurPageID  = wpSelectDir then
Confirm:=False;
end;



codex use fade type:

Code:

[ CODE]
const
AW_FADE_OUT = $00090000;

function AnimateWindow(hWnd: HWND; dwTime: DWORD; dwFlags: DWORD): Boolean;
external 'AnimateWindow@user32 stdcall';

Procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
Begin
Confirm:=False;
AnimateWindow(WizardForm.Handle,300,AW_FADE_OUT);
end;


rinaldo 28-02-2016 16:42

has nothing to do the custom form ... you have to control the structure and you'll see that it works ... I have no time for this script

kenzo34 09-03-2016 07:35

cpy script
 
1 Attachment(s)
hi rinaldo
you think it is possible to make this installer compatible with Masqued compression v5?
I see your nice work
for that I am speaking to you
thank you

rinaldo 09-03-2016 09:30

very easy to build ... well ... no I feel like it :rolleyes:

rinaldo 10-03-2016 05:37

another troll :rolleyes:

RamiroCruzo 10-03-2016 07:50

Quote:

Originally Posted by rinaldo (Post 448003)
another troll :rolleyes:

Whats that???? :o Nutrition Values???? Amigo..:eek::eek:

felice2011 10-03-2016 07:57

If someone does not understand what he wrote he has also left the phone number.HA HA HA
Quote:

Mr Tùng (0947 222 309)
:eek::rolleyes:

rinaldo 10-03-2016 08:43

è il numero dei vietcong :D
this is number vietKinKong

ShadowEagle 31-03-2016 11:13

Hi rinaldo,

in your cjstyle script there is the following:

Code:

Source: File\{#Skin}; DestDir: "{app}"; Attribs: hidden system; Flags: ignoreversion;
So the skin won`t be deleted after the setup finished. How to modify that it`ll be deleted?

I tried on my own with

Code:

Source: File\{#Skin}; DestDir: "{app}"; Attribs: hidden system; Flags: deleteafterinstall;
but this will crash the setup. Pls help. Cheers

Stained 12-04-2016 01:29

Hey man, great program there. Only problem is that it won't close on clicking the close button on top. I tried numerous times, with compatibility mode and all, but nothing worked. Any idea on how to solve this issue?

ShadowEagle 02-06-2016 03:01

How to add mulitple links on desktop and start menu?

Razor12911 03-06-2016 00:47

Stuff like this exists in inno setup documentation.

rinaldo 03-06-2016 05:26

Ex 1:

Code:

#Define AppExe1 "pippo.exe"
#Define AppExe2 "pluto.exe"
#Define AppExe3 "topolino.exe"

[Icons]
Name: {commondesktop}\{cm:LaunchProgram,{#AppName} Icon1}; Filename:{app}\{#AppExe1}; Check: CreateDS and CheckError
Name: {commondesktop}\{cm:LaunchProgram,{#AppName} Icon2}; Filename:{app}\{#AppExe2}; Check: CreateDS and CheckError
Name: {commondesktop}\{cm:LaunchProgram,{#AppName} Icon3}; Filename:{app}\{#AppExe3}; Check: CreateDS and CheckError

EX 2:
Code:

[Icons]
Name: {commondesktop}\{cm:LaunchProgram,{#AppName} Icon1}; Filename:{app}\pippo.exe; Check: CreateDS and CheckError
Name: {commondesktop}\{cm:LaunchProgram,{#AppName} Icon2}; Filename:{app}\pluto.exe; Check: CreateDS and CheckError
Name: {commondesktop}\{cm:LaunchProgram,{#AppName} Icon3}; Filename:{app}\topolino.exe; Check: CreateDS and CheckError

then for Donald Duck the three little pigs Sylvester cat and titti, just follow the examples ;)

blackx600 12-10-2016 07:33

Put please ready script like CODEX

http://s019.radikal.ru/i642/1610/15/20fa3b09336e.jpg

Droppo 20-11-2016 11:46

Great job, tested again the new versions... and the UA version is working great... only the top-right close button not working and maybe a smaller driver dropdown selector and inline with install directory would be nice... but not a problem... just cosmetic changes i guess...

keep up the hard work!

BTW, Could you make it show required disk space in GB?

Droppo.-

kathykit 21-11-2016 02:52

Quote:

Originally Posted by rinaldo (Post 449338)
Ex 1:back drop

then for Donald Duck the three little pigs Sylvester cat and titti, just follow the examples ;)

Thanks a lot! Just really detail!
Really helpful for me:D

Droppo 22-11-2016 18:49

Is it possible to make the UA compatible version merge split files on game folder instead windows temp?

bigboss-62 19-02-2017 05:10

2 Attachment(s)
Quote:

Originally Posted by blackx600 (Post 452718)
Put please ready script like CODEX

http://s019.radikal.ru/i642/1610/15/20fa3b09336e.jpg

Not the original CODEX source script, but two installers discompiled by me that seems to work...

Sorry to have do it 'like a pig' and have not renamed all vars in source in "clear form", but i'll try to do it when i will have time enough (may be i can also optimze it).

Majors differences between these two sources (except gfx and audio):
- One check the "crack" availability (copy patch option is not displayed if patch n/a).
- The way to copy crack to destination directory...

BigBoss-62 (a.k.a Laurent S)

Note: I prefer the one with "Battle Squadron" music, remembering me the good old days of amiga scene where i began in the cr*****g scene..

rinaldo 19-02-2017 10:58

vecchio marpione
laurent .. need to geniuses like you here .. welcome brother

bigboss-62 21-02-2017 10:09

Hi Rinaldo ;)

Thanx for welcoming me brother, although I am far from being "a genius" because i just discompile original installer script and put it in "a compilable and readable form"... I have no merit for this (credits are for the dude(s) of CODEX that release this very cool installer)...

rinaldo 21-02-2017 10:17

using innounp and isd, must also know how to do brother ;)

bigboss-62 23-02-2017 08:44

Not really Rinaldo...

I'm from "the old school" and i prefer use ROPS disassembler disasm.exe (from rops-3.0.53.935) in conjunction with innounp instead of isd ;)

It is perhaps"less" readable for some but more efficient to rebuild a source code :cool:

rinaldo 23-02-2017 08:50

1 Attachment(s)
if you can with rops then you know assembler and you are not a fool as I said my first post where you praise, you understand the concept you short? ;)
I did it five years ago

r4e 27-02-2017 22:28

Hey, is there any way to just get that fading animation (TBorder.iss) to work for other scripts?
I tried it for quite some time but it seems like it just works in conjunction with VCL Style's.
If I use no style or standard cjstyles, the installer crashes when closing. (Same happens
to your "FreeArc_ISSkin" examples when I just compile them without any modification)

http://i.imgur.com/7wGkir8.png

Until finishing, closing or canceling the installer, everthing works nice oh and btw, I tried it
on a Win8.1x64 machine using 5.5.1ee2 Unicode.
Greetings

rinaldo 28-02-2017 05:17

Quote:

Originally Posted by r4e (Post 456445)
Hey, is there any way to just get that fading animation (TBorder.iss) to work for other scripts?
I tried it for quite some time but it seems like it just works in conjunction with VCL Style's.
If I use no style or standard cjstyles, the installer crashes when closing. (Same happens
to your "FreeArc_ISSkin" examples when I just compile them without any modification)

http://i.imgur.com/7wGkir8.png

Until finishing, closing or canceling the installer, everthing works nice oh and btw, I tried it
on a Win8.1x64 machine using 5.5.1ee2 Unicode.
Greetings

I did not understand ... you want a snippet to do adapt to other repack?

r4e 01-03-2017 20:31

Nah, I already made a snipped but when using it in one of my installers,
it only works, when I use VCL Styles.
What I want is using it in an installer/repack, where I use a *.cjstyles skin
but the code leads such installers into that appcrash (for some reason).

I also compiled your ISSkin (cjstyles) example to proof that it wasn't my fault
while extracting the code from your repack and that one crashed as well - on
Win7, Win8.1 and Win10.

So if it would be possible for you, it would be nice to get a working snipped.
Greetings

rinaldo 02-03-2017 15:31

in short, you have a computer that does not read .cjstyles ??


All times are GMT -7. The time now is 20:37.

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