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)

Razor12911 05-03-2014 10:17

multi is kinda tricky? do you want it to be like the one in Installer Creator or different?

Logrim 05-03-2014 10:26

something how IC, yup :D

Razor12911 05-03-2014 10:37

then it's easy. there are many ways of doing it.

1) Create 3 autorun.exe's.(Very Simple/Worst Idea)
2) Create one autorun.exe with 3 launchers(Moderate)
3) Create one exe with the ability of three exe's. (Not a walk in a park)

Logrim 05-03-2014 10:40

erm,., the 2 is my idea.. but.. how to do? :P. this is the question

Razor12911 05-03-2014 10:45

make three buttons.
the buttons must not be enabled if exe is not found and if installation is not found else if exe is found and installation is found then enable the buttons.

make the buttons onclicks to run exe from installation directory.

Done.

buttignol 05-03-2014 15:44

Help I am not able to use my installer to unpack files created with precomp043 + srep64 trying without success to two days someone could post a scrip isdone the sample thanks

danswano 07-03-2014 11:03

Hello,
Is it possible to extract a specific folder and/or file inside an arc archive using ISDone?
I have an archive that has many folders and i just want to unpack one of them.
Why i didn't create an archive for each folder?
Because i'm using delta compression to reduce the size for similar files in each folder.
Thanks.

Razor12911 07-03-2014 11:55

hmm, don't think it's possible to extract a certain file/folder using isdone, you could read the documentation. but check the latest isarcextract script, version 4.2 and later.

Razor12911 07-03-2014 11:57

Quote:

Originally Posted by buttignol (Post 429630)
Help I am not able to use my installer to unpack files created with precomp043 + srep64 trying without success to two days someone could post a scrip isdone the sample thanks

check out isdone documentation. full support for precomp038-precomp042.
hooking up precmp043 may be tough but the srep64 is not a problem, it's the same as the normal srep edition, just tweak the arc.ini a bit.

danswano 07-03-2014 14:03

Quote:

Originally Posted by Razor12911 (Post 429692)
hmm, don't think it's possible to extract a certain file/folder using isdone, you could read the documentation. but check the latest isarcextract script, version 4.2 and later.

I don't think ISDONE docu have something like this.
Where do i grab the latest version of the script?

altef_4 08-03-2014 00:07

Quote:

Originally Posted by danswano (Post 429698)
I don't think ISDONE docu have something like this.
Where do i grab the latest version of the script?

Code:

function ISArcExtract (CurComponent: Cardinal; PctOfTotal: double; InputFile, OutputPath, ExtractedPath: string; DeleteInFile: boolean; Password, CfgFile, WorkPath: string; ExtractPCF:boolean):boolean;

danswano 08-03-2014 00:48

altef_4, do you know if it's possible to extract a specific file/folder?

altef_4 08-03-2014 01:18

Quote:

Originally Posted by danswano (Post 429709)
altef_4, do you know if it's possible to extract a specific file/folder?

it's possible, look on red text in my pre post

example how to use:
ISArcExtract(0,0,ExpandConstant('{src}\Data.arc'), ExpandConstant('{app}'),'Some_Path_In_Your_Archive',False,'PASSWoRd',ExpandConstant('{tmp}\Arc.ini'), ExpandConstant('{app}'),False);

danswano 08-03-2014 01:20

Oh, i thought it's the destination, i will try it now :)

danswano 08-03-2014 01:26

Thanks altef_4, it's working but it's unpacking the whole thing instead of just one folder although it's not actually unpacked in the destination folder.

Logrim 08-03-2014 01:48

I have a little problem .. dont know if is the right place to expose my doubt, but .. It is going beyond the mask installer. In photoshop everything is perfect, no fault .. in the script, all the measures are well placed, everything looks in order, except for one thing .. stand out as ridges on the edges that should not be there .. someone can say that this is due?

Here is a picture:

http://i62.tinypic.com/99gcwn.png

altef_4 08-03-2014 02:50

2 Attachment(s)
Quote:

Originally Posted by Logrim (Post 429713)
I have a little problem .. dont know if is the right place to expose my doubt, but .. It is going beyond the mask installer. In photoshop everything is perfect, no fault .. in the script, all the measures are well placed, everything looks in order, except for one thing .. stand out as ridges on the edges that should not be there .. someone can say that this is due?

Here is a picture:...

you must create another form behind main form, then use
CreateFormFromImage(YourNewForm.Handle,ExpandConst ant('{tmp}\your_frame.png')); and move this form when main form is moved.
i create simple example for this, in archive are all nessesary files + two versions: one for Original IS UNICODE and one for Enhanced

UPD: changed mask +added screenshot

altef_4 08-03-2014 03:14

Quote:

Originally Posted by danswano (Post 429712)
Thanks altef_4, it's working but it's unpacking the whole thing instead of just one folder although it's not actually unpacked in the destination folder.

i already tested it and it works for me, can you give example how do you use it?
p.s. you can extract only some folder, not a file (my mistake :)).

Logrim 08-03-2014 03:26

Thanks,, it works,, but i think i dont know how to make the mask well.. can you explain me in little words altef? i'm not new to photoshop, but making mask yup :D..

Edit 1. i start the script by zero, and put your example in the fist place with my background and mask.. it work... but with the same edges bug.. its my mask, i know :d.. i dont know how to make it well.. When i make mask before for other works, i only set the visible space in black and the rest in white... here dont work that :D.

danswano 08-03-2014 03:31

First try to make the archive a little bit big so you can see the actual process.
create 2 folders that contains multiple big files
for example program1 program2 and program3 folders.
Now let's say we want to extract program 2.
You will notice that the installer displaying program1 folder and it's content and program 2 and 3 but it only extract program2 actually.
Extracting the whole archive takes as much as time to extract one folder.
It's like unpacking the whole archive on the fly but not letting the unwanted files to be copied to the destination folder.
Hope i clarified what i meant. :)

altef_4 08-03-2014 03:39

Quote:

Originally Posted by Logrim (Post 429719)
Thanks,, it works,, but i think i dont know how to make the mask well.. can toy explain in little words altef? i'm not new to photoshop, but making mask yup :D..

just open your image.png in paint and press "save as", then choose bmp and set it to monochrome.

altef_4 08-03-2014 03:44

Quote:

Originally Posted by danswano (Post 429720)
First try to make the archive a little bit big so you can see the actual process.
create 2 folders that contains multiple big files
for example program1 program2 and program3 folders.
Now let's say we want to extract program 2.
You will notice that the installer displaying program1 folder and it's content and program 2 and 3 but it only extract program2 actually.
Extracting the whole archive takes as much as time to extract one folder.
It's like unpacking the whole archive on the fly but not letting the unwanted files to be copied to the destination folder.
Hope i clarified what i meant. :)

then maybe this some bug in ISDone.dll, i tested on small archive ~100 mb, and saw what all files in archive are processed but extracts only choose folder.

altef_4 08-03-2014 03:48

Quote:

Originally Posted by Logrim (Post 429719)
Thanks,, it works,, but i think i dont know how to make the mask well.. can you explain me in little words altef? i'm not new to photoshop, but making mask yup :D..

Edit 1. i start the script by zero, and put your example in the fist place with my background and mask.. it work... but with the same edges bug.. its my mask, i know :d.. i dont know how to make it well.. When i make mask before for other works, i only set the visible space in black and the rest in white... here dont work that :D.

function CreateFormFromImage change size of form to full size of image, maybe problem in this. Try to change sizes of both forms to full size of png image

Razor12911 08-03-2014 03:53

Quote:

Originally Posted by Logrim (Post 429719)
Thanks,, it works,, but i think i dont know how to make the mask well.. can you explain me in little words altef? i'm not new to photoshop, but making mask yup :D..

Edit 1. i start the script by zero, and put your example in the fist place with my background and mask.. it work... but with the same edges bug.. its my mask, i know :d.. i dont know how to make it well.. When i make mask before for other works, i only set the visible space in black and the rest in white... here dont work that :D.

Use GIMP to enhance edges. Grow BMP black part by 1 pixel then you're good to go.

danswano 08-03-2014 04:00

Quote:

Originally Posted by altef_4 (Post 429725)
function CreateFormFromImage change size of form to full size of image, maybe problem in this. Try to change sizes of both forms to full size of png image

I see all files processed by ISDone as well and i know that it extracts only what i specified but it takes a long time to extract one folder of a big archive like if it's extracting all the files.

Logrim 08-03-2014 04:12

Thanks, razor and altef, work perfectly now,, the problem was the sizes.

Was extrange,, i'm graphic designer and this never happend to me in my work. :P.. I thought the mask in inno were being made differently. I'm trying to make a general installer for all my conversions, and i think I have already achieved. Minimalist and yet easy to locate.

Logrim 10-03-2014 11:15

i have a problem... before i setting the example of the mask of Altef, all work perfectly when unninstall.. Now, inno give me an error "cannot call "EXTRACTEMPORALYFILESIZE", funtion during uninstall. I never touch nothing in the unninstall section,, only add the mask functions and procedures..

altef_4 10-03-2014 11:43

Quote:

Originally Posted by Logrim (Post 429802)
i have a problem... before i setting the example of the mask of Altef, all work perfectly when unninstall.. Now, inno give me an error "cannot call "EXTRACTEMPORALYFILESIZE", funtion during uninstall. I never touch nothing in the unninstall section,, only add the mask functions and procedures..

this function works only in install process, it extracts file from setup.exe to memory, in uninstall process this file isn't present and thats why this error appears, to fix this you must copy all nessesary files (images libraries and other) from temporary folder (first extract it to this folder) to your installation folder in final stage of installation, then in a uninstall process, copy this files back into temp folder and use them from it, also in uninstaller you must use standart botva2.dll functions (load images from disk), i hope you understand me ;)

Logrim 10-03-2014 12:21

i understand you altef :D thwe problem is i think i have all in unninstall correctly, but dont work.. this is my uninnstall:

Quote:

///////////////////////////////////////////////////////////UNNINSTALL STAGE
procedure InitializeUninstallProgressForm;
var
UnsFileStatusLabel: Tlabel;
begin
FileCopy(ExpandConstant('{app}\UninstData.ini'),Ex pandConstant('{tmp}\Setup.ini'),False);
FileCopy(ExpandConstant('{app}\b2p.dll'), ExpandConstant('{tmp}\b2p.dll'), True);
FileCopy(ExpandConstant('{app}\botva2.dll'), ExpandConstant('{tmp}\botva2.dll'), True);
FileCopy(ExpandConstant('{app}\CallbackCtrl'), ExpandConstant('{tmp}\CallbackCtrl'), True);
FileCopy(ExpandConstant('{app}\Uninstall.png'), ExpandConstant('{tmp}\Uninstall.png'), True);

with UninstallProgressForm do begin
BorderStyle := bsNone;
ClientWidth := ScaleX(600);
ClientHeight := ScaleY(190);
Position:= poScreenCenter;
AutoScroll := False;
UninstallProgressForm.InnerNotebook.SetBounds(0,0, 600,190);
UninstallProgressForm.OuterNotebook.SetBounds(0,0, 600,190);

Bevel.Hide;
StatusLabel.Hide;
MainPanel.Hide;
WizardSmallBitmapImage.Hide;

ProgressBar.SetBounds(10,170,580,15);

UnsFileStatusLabel:= TLabel.Create(UninstallProgressForm.InstallingPage );
UnsFileStatusLabel.Parent:= UninstallProgressForm.InstallingPage;
UnsFileStatusLabel.SetBounds(40,10,500,15);
UnsFileStatusLabel.AutoSize:= False;
UnsFileStatusLabel.WordWrap:= True;
UnsFileStatusLabel.Transparent:= True;
UnsFileStatusLabel.Font.Name := 'Verdana';
UnsFileStatusLabel.Font.Style:= [fsBold];
UnsFileStatusLabel.Font.Size:= 8;
UnsFileStatusLabel.Font.Color:= clGray;
UnsFileStatusLabel.Caption:= ExpandConstant('{cm:UnsFileStatusLabel}');
end;
end;

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usUninstall then
begin
img:=ImgLoad(UninstallProgressForm.InstallingPage. Handle,ExpandConstant('{tmp}\Uninstall.png'),0,0,6 00,190,True,True);
ImgApplyChanges(UninstallProgressForm.InstallingPa ge.Handle);
DelTree(ExpandConstant('{app}'), True, True, True);
RegDeleteKeyIncludingSubkeys(HKLM, ExpandConstant('Software\{code:GamePublisher}\{cod e:GameName}'));
end;
end;
add this is the setup part

Quote:

///////////////////////////////////////////////////////////UNINSTALL SOURCE FILES
Source: dllfiles\botva2.dll; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;
Source: dllfiles\CallbackCtrl.dll; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;

Source: Setup\Uninstall.png; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;
Source: Setup\Setup.ico; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;
////////////////////////////////////////////////////////////////////////////////////////////////

altef_4 10-03-2014 12:49

Quote:

Originally Posted by Logrim (Post 429806)
i understand you altef :D thwe problem is i think i have all in unninstall correctly, but dont work.. this is my uninnstall:



add this is the setup part

add this functions
Code:

function ImgLoadU(Wnd :HWND; FileName :PAnsiChar; Left, Top, Width, Height :integer; Stretch, IsBkg :boolean) :Longint; external 'ImgLoad@{tmp}\botva2.dll stdcall delayload';

procedure ImgApplyChangesU(h:HWND); external 'ImgApplyChanges@{tmp}\botva2.dll stdcall delayload';

procedure gdipShutdownU; external 'gdipShutdown@{tmp}\botva2.dll stdcall delayload';


and remove b2p.dll(it's not work in uninstaller),
correct this
Code:

FileCopy(ExpandConstant('{app}\CallbackCtrl.dll'), ExpandConstant('{tmp}\CallbackCtrl.dll'), True);
chenge ImgLoad to ImgLoadU, ImgApplyChanges to ImgApplyChangesU
add to DeInitializeUninstall - gdipShutdownU;

try it, it's must work.

Logrim 10-03-2014 13:34

Thanks man, work perfectly now :D.. sorry for my questions, when i think the code is finish i discover something new...

Logrim 11-03-2014 01:43

One silly question.. why the image load before the rest of the things?. i mean.. the main background load.., the rest of the component load AFTER, and during two seconds the main screen is empty..

and.. how can i add a custom progress bar and a custom edit? i dont want to usee isskin.. thanks

altef_4 11-03-2014 02:03

Quote:

Originally Posted by Logrim (Post 429825)
One silly question.. why the image load before the rest of the things?. i mean.. the main background load.., the rest of the component load AFTER, and during two seconds the main screen is empty..

Maybe you use ImgApplyChanges more than one time? try to use it only in the end of procedure|function.
Quote:

Originally Posted by Logrim (Post 429825)
and.. how can i add a custom progress bar and a custom edit? i dont want to usee isskin.. thanks

to create custom progress bar just load two images one on another, and change width|visible part of top image. to create custom edit create img like edit and TLabel inside of this image.

Logrim 11-03-2014 02:17

altef i only have one ImgApplyChanges for wizardform,, only this at the start of "procedure InitializeWizard":

Quote:

ExtractTemporaryFile('Mask.bmp');
SetRgn(WizardForm.Handle,'Mask.bmp',657, 379);
img :=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}\ Background.png'),0,0,0,0,False,True);
ImgApplyChanges(WizardForm.Handle);
CreateFormFromImage(NewForm.Handle,ExpandConstant( '{tmp}\Background.png'));
OldMainProc:=SetWindowLong(WizardForm.Handle, -4, WrapFormCallback(@WizardFormProc,4));
NewForm.Show;
WizardForm.BringToFront;
and.. i dont understand well how to add progress bar and edit... for progress bar i add in setup part two png, and extract it in initialize setup. but how to apply them to the standard progress bar?

altef_4 11-03-2014 03:25

Quote:

Originally Posted by Logrim (Post 429830)
altef i only have one ImgApplyChanges for wizardform,, only this at the start of "procedure InitializeWizard":

maybe i don't understand you right, can you give more information?

Quote:

Originally Posted by Logrim (Post 429830)
and.. i dont understand well how to add progress bar and edit... for progress bar i add in setup part two png, and extract it in initialize setup. but how to apply them to the standard progress bar?

hide standart progress bar and calculate progress to width of your custom img.
e.g. standart progress=10% of maximum 100% then width of your img will be
progress:=CurProgress(10%)*100/MaxProgress(100%);
imgWidth=FullWidthOfImg(you set it when create img)*progress/100;

Logrim 11-03-2014 03:32

Altef, see m.p please.. i'm lost with that :D..

reiji777 12-03-2014 22:57

why inno sometimes shows need to restart page in the end of installation? although I've already put all the right parameters :(
is there any way to suppress no restart page at all cost?

justinbieber500 13-03-2014 13:14

hmm reiji Page finally pressing need.

dienszge 16-03-2014 20:17

Hallo everyone..
sorry i'm newbie. and i come from indonesia
i want to try conversion..
can you give me script (InstallerScript.iss and LangScript.iss) language indonesian
please.. thx bahasa
sorry my bad english..

Cesar82 17-03-2014 11:05

2 Attachment(s)
PS: Text translated with Google Translate.
Please. I need help.

In need of a code that satisfied the following properties of an executable:
Copyright, Company Name, File Description, File Version, Product Version, InternalName, Original Filename, Product Name.
I found a code on the internet and is not working with Unicode Inno Setup. Tested Inno Setup Version Ansi worked.
In unicode inno he cuts the information.

I have attached the script's code for those with more experience can analyze and give me some corrections.

Added one second scrip to compare the differences.
This second script detects only the description of the executable.
However this works in unicode version of Inno Setup.


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

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