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)

altef_4 14-02-2014 10:42

Quote:

Originally Posted by Logrim (Post 429084)
One question.. i try to execute directx in ssPostInstall.. my code for this is:



but return invalid numbers of parameters error.. i'm lost,, what is wrong? thanks.
end;

Code:

if (CurStep=ssPostInstall) then begin
  if (DirectXCB.Checked = True) then begin
    FileStatusLabel.Caption := ExpandConstant('{cm:Installing} ') + ExpandConstant('{#Redist1}') + ExpandConstant(', {cm:Wait}');
    Exec(ExpandConstant('{src}\_CommonRedist\DirectX\DXSETUP.exe'),'/Silent',ExpandConstant('{src}'),1,ewWaitUntilIdle,ResCode);
  end;
end;

original Exec function looks like:
Code:

function Exec(const Filename, Params, WorkingDir: String; const ShowCmd: Integer; const Wait: TExecWait; var ResultCode: Integer): Boolean;
p.s. add in var section
ResCode: integer;

Logrim 15-02-2014 00:28

Edit: All Problem Solved. Thanks for your answers Altef. Only one more dude. I try to install silently the nvidia physx msi packaje, mi code is this:

Quote:

if (NvidiaPhysxCB.Checked = True) then begin
FileStatusLabel.Caption := ExpandConstant('{cm:Installing} ') + ExpandConstant('{#Redist3}') + ExpandConstant(', {cm:Wait}');
Exec(ExpandConstant('{sys}\msiexec.exe {src}\_CommonRedist\PhysX\PhysX-9.13.0604-SystemSoftware.msi'),'/qn /i',ExpandConstant('{src}'),1,ewWaitUntilIdle,ResCo de);
but dont install,, no errors, nothing,, dont install.. what are i doing wrong?

pakrat2k2 15-02-2014 08:39

check version number/msi extension. PhysX-9.13.0604-SystemSoftware.msi

sometime new files are exe not msi.

check this thread for component values ( redists )
http://fileforums.com/showthread.php?t=95092

Logrim 15-02-2014 10:00

all syntax is correct pakrat2k2.. Only problem is the {sys}\msiexec.exe.. i dont know where allocate it, lol.. :D.

P.D. And the progressbar blink while install and i dont know why..

GloverK1911 16-02-2014 04:57

I get error while installing
i use Conversion Quick Archive Packer of Razor
script inno i use: http://fileforums.com/showpost.php?p...&postcount=295
http://i.minus.com/ibb68niSdB5lB9.png

Razor12911 16-02-2014 06:36

set up arc.ini

GloverK1911 16-02-2014 07:32

Quote:

Originally Posted by Razor12911 (Post 429130)
set up arc.ini

I already

GloverK1911 17-02-2014 05:05

I'm Try use BlacBoxScript and it's works fine
But with my Setup it's not working

danswano 17-02-2014 06:21

Hello,
How to execute a command line using ISExec?
for example i want to execute
Quote:

program.exe file.ext
This is the stock code from ISDone.iss
Quote:

if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\Arc.exe'), ExpandConstant('x -o+ "{src}\001.arc" "{app}\"'), ExpandConstant('{tmp}'), '...',false) then break;
can you modify it for me?

Logrim 17-02-2014 07:06

Anyone, can tell me how to establish priority in install?

altef_4 17-02-2014 07:31

Quote:

Originally Posted by Logrim (Post 429162)
Anyone, can tell me how to establish priority in install?

Code:

[Setup]
AppName=MyApp
AppVername=MyApp
DefaultDirName={pf}\MyApp
 
[code]
 
const
  NORMAL_PRIORITY_CLASS          = $00000020;
  IDLE_PRIORITY_CLASS            = $00000040;
  HIGH_PRIORITY_CLASS            = $00000080;
  REALTIME_PRIORITY_CLASS        = $00000100;
  ABOVE_NORMAL_PRIORITY_CLASS    = $00004000;
  BELOW_NORMAL_PRIORITY_CLASS    = $00008000;
 
function SetPriorityClass(hProcess: THandle; dwPriorityClass: DWORD): BOOL;
  external 'SetPriorityClass@kernel32';
 
function GetCurrentProcess: THandle;
  external 'GetCurrentProcess@kernel32';
 
procedure InitializeWizard();
begin
  SetPriorityClass(GetCurrentProcess, IDLE_PRIORITY_CLASS);    //set setup priority
end;

taken from here

altef_4 17-02-2014 07:42

Quote:

Originally Posted by danswano (Post 429161)
Hello,
How to execute a command line using ISExec?
for example i want to execute

This is the stock code from ISDone.iss

can you modify it for me?

Code:

if not ISExec ( 0, 0, 0, 'program.exe', 'file.ext', '', '',false) then break;

danswano 17-02-2014 07:47

Thanks altef_4
I want to run that command in multiple sub directories.
for example {app}\dir\program.exe

how the code will look like?

y_thelastknight 17-02-2014 07:50

Quote:

Originally Posted by GloverK1911 (Post 429157)
I'm Try use BlacBoxScript and it's works fine
But with my Setup it's not working

If you use quick archive packer then copy file from support dir in quick archive packer and paste it in your setup include dir..

Sorry for my bad english

altef_4 17-02-2014 08:10

Quote:

Originally Posted by danswano (Post 429165)
Thanks altef_4
I want to run that command in multiple sub directories.
for example {app}\dir\program.exe

how the code will look like?

Code:

if not ISExec ( 0, 0, 0,ExpandConstant('{app}\dir\program.exe'), 'file.ext', '', '',false) then break;


All times are GMT -7. The time now is 12:27.

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