PDA

View Full Version : {HELP}-bat file integration in inno setup script


ffmla
13-09-2015, 04:29
Hello helping mind people,:)
i've some doubt about inno script installation.

[For Example]
For making compression i've
data1.arc
data2.arc files.
In data1.arc contain some files and iwd.bat file.

I need to extract the above files using inno script.
After extracting data1 &2.arc using inno script,then call the iwd.bat{Rebuild game data} along with installation.

I need progress for
data1.arc -33%
data2.arc -33% then
iwd.bat execution 34%{need silent install no popup}

INFO:
now i am using iwd.bat in Run section command in post installation section.

i've find the code in other source{i don't know how to implement}
if not ISExec (0, 0, 0, ExpandConstant ('{app} \ iwd.bat'), ExpandConstant (''), ExpandConstant ('{app} \'), '...', true) then break;

i am using BB script,if anyone understand please give the details

Razor12911
13-09-2015, 04:39
ISExec function executes win32 executable files, and a batch file is not an executable. Try using this example.
Cmd.exe /c mybatchfile.bat to make it work.

ffmla
13-09-2015, 05:11
ISExec function executes win32 executable files, and a batch file is not an executable. Try using this example.
Cmd.exe /c mybatchfile.bat to make it work.

Thanks for reply
I've convert my batch to exe no problem .is there a way to include the bat installation to inno progress.
Thanks in advance

vint56
13-09-2015, 05:41
ffmla
Use ISDone0.6final arc to unpack archives and wrapping iwi back
arc to unpack archives
if not ISArcExtract ( 0, 0, ExpandConstant('{src}\data-1.arc'), ExpandConstant('{app}\'), '', false, 'vint56', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
wrapping iwi back
if not ISPackZIP( 0, 0, ExpandConstant('{app}\Main\iw_00\*'), ExpandConstant('{app}\Main\iw_00.iwd'), 1, true ) then break;

ffmla
13-09-2015, 06:20
ffmla
Use ISDone0.6final arc to unpack archives and wrapping iwi back
arc to unpack archives
if not ISArcExtract ( 0, 0, ExpandConstant('{src}\data-1.arc'), ExpandConstant('{app}\'), '', false, 'vint56', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
wrapping iwi back
if not ISPackZIP( 0, 0, ExpandConstant('{app}\Main\iw_00\*'), ExpandConstant('{app}\Main\iw_00.iwd'), 1, true ) then break;

Thanks for reply.
Is it possible to get all iwd by packzip method?if not ISPackZIP( 0, 0, the number 0,0 for all is file re
spectively or not.
But my base question is how to call bat file along with installation of inno script.
Thanks.