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)

sentinelks 15-01-2014 13:59

http://iconverticons.com/online/

pakrat2k2 15-01-2014 15:54

Quote:

Originally Posted by Vatsal Singh (Post 428302)
I'm getting this error on merging setup.cab to setup.exe according to yener90's script v1.0.0.6 . Please help me. Thanks in advance. Sorry for my bad English.

Error:- Setup couldn't find necessary files.

in both ISS scripts you need
#define internal NOT ;#define internal

then your setup.cab needs to be extracted into its setup folder. ( same place as ISS scripts ). Then when you compile both scripts, it will merge the setup folder ( basically your setup.cab ) into the exe.

Make sure that if you used compress.bat to make your files that the setup folder has arc.ini in the root of the folder. Also that you've specified the
extract settings in setup.ini properly... IE:
Code:

[ExtractSettings]
FreeArcFile1=Data1.cab;DestDir:{app};Disk:1;
FreeArcFile2=Data2.cab;DestDir:{app};Disk:2;


y_thelastknight 15-01-2014 22:45

Quote:

Originally Posted by pakrat2k2 (Post 428316)
in both ISS scripts you need
#define internal NOT ;#define internal

then your setup.cab needs to be extracted into its setup folder. ( same place as ISS scripts ). Then when you compile both scripts, it will merge the setup folder ( basically your setup.cab ) into the exe.

i don't know about that. i have to try :D

pakrat2k2 16-01-2014 05:09

Quote:

Originally Posted by y_thelastknight (Post 428325)
i don't know about that. i have to try :D

all info is in REV0's topic here>
http://fileforums.com/showthread.php?t=93191

reiji777 19-01-2014 02:11

I would like to ask how to add bmp image to a button. please help

y_thelastknight 21-01-2014 02:39

how to create a quick install button for normal installer.

altef_4 21-01-2014 03:16

Quote:

Originally Posted by y_thelastknight (Post 428449)
how to create a quick install button for normal installer.

try this
function shouldskippage(pageid: integer):boolean;
begin
case pageid of
wplicense,wppassword: //add or remove skiped pages
result:=true;
else result:=false;
end;
end;

y_thelastknight 21-01-2014 03:40

thanks. used like this :)

Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked=true then
    case pageid of
    wpSelectDir,wpSelectProgramGroup,wpReady: //add or remove skiped pages
    result:=true;
    else
    result:=false;
  end;
end;


altef_4 21-01-2014 05:04

Quote:

Originally Posted by y_thelastknight (Post 428453)
thanks. used like this :)

Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked=true then
    case pageid of
    wpSelectDir,wpSelectProgramGroup,wpReady: //add or remove skiped pages
    result:=true;
    else
    result:=false;
  end;
end;


little edit
Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked then
    case pageid of
      wpSelectDir,wpSelectProgramGroup,wpReady: result:=true;
    else
      result:=false;
  else result:=false;
end;


y_thelastknight 21-01-2014 06:08

http://www.mediafire.com/convkey/c5f....jpg?size_id=8

altef_4 21-01-2014 06:36

uuups, sorry little error, i think you already fix it yourself, but if no - hare edited code
Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked then
    case pageid of
      wpSelectDir,wpSelectProgramGroup,wpReady: result:=true;
    else
      result:=false;
    end
  else result:=false;
end;

i dont check but must work ;)

y_thelastknight 21-01-2014 06:49

Quote:

Originally Posted by altef_4 (Post 428457)
uuups, sorry little error, i think you already fix it yourself, but if no - hare edited code
Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked then
    case pageid of
      wpSelectDir,wpSelectProgramGroup,wpReady: result:=true;
    else
      result:=false;
    end
  else result:=false;
end;

i dont check but must work ;)

hehe works now. i use my old code before :p
thank Bro..

Logrim 21-01-2014 07:35

y_thelastknight, i dont know if this method is valid to you, but in mine work :D.

my installer have only welcome screen.. All i do its create a config button like this:

Quote:

procedure ConfigBtnClick(h: HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0002);
img2:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}\Directorio.png'),0,0,600,375,True,True);
ImgApplyChanges(WizardForm.Handle);
WizardForm.DirEdit.Show;
WizardForm.DirBrowseButton.Show;
CoderLabel.Show;
TaskLabel.Show;
DirLabel.Show;
WizardForm.DirEdit.Show;
DiskSpaceLablel.Show;
WizardForm.NextButton.Show;
WizardForm.NextButton.Caption := 'Instalar';
WizardForm.DirBrowseButton.Show;
DiskSpaceLablel.Show;
ShortcutCB.Show;
CreateDLabel.Show;
DirectXCB.Visible:=ExpandConstant('{code:Redist1Na me}') <> '';
DirectXLabel.Visible:=ExpandConstant('{code:Redist 1Name}') <> '';
VisualCCB.Visible:=ExpandConstant('{code:Redist2Na me}') <> '';
VisualCLabel.Visible:=ExpandConstant('{code:Redist 2Name}') <> '';
NvidiaPhysxCB.Visible:=ExpandConstant('{code:Redis t3Name}') <> '';
NvidiaPhysxLabel.Visible:=ExpandConstant('{code:Re dist3Name}') <> '';
LiveCB.Visible:=ExpandConstant('{code:Redist4Name} ') <> '';
LiveLabel.Visible:=ExpandConstant('{code:Redist4Na me}') <> '';
CreateDLabel.Visible:=ExpandConstant('{code:GameEx e}') <> '';
ShortcutCB.Visible:=ExpandConstant('{code:GameExe} ') <> '';
ShortcutCB.Checked:= True;
GameNameLabel.Caption:='Directorio de instalación';
end;
Quote:

hConfigBtn:=BtnCreate(WizardForm.Handle,400,259,10 0,40,ExpandConstant('{tmp}\Button.png'),18,False);
BtnSetEvent(hConfigBtn,BtnClickEventID,WrapBtnCall back(@ConfigBtnClick,1));
BtnSetCursor(hConfigBtn,GetSysCursorHandle(32649)) ;
BtnSetText(hConfigBtn,'CONFIGURAR');
BtnSetFont(hConfigBtn,Font.Handle);
BtnSetFontColor(hConfigBtn,clGray,clSilver,clGray, clSilver);
And i have the quick install button wich is the next button, and custom config button :D

Without botva its the same, create config button and leave next how quick install..

i hope if its not valid to you, be valid for other..

y_thelastknight 21-01-2014 07:56

thanks logrim.

Logrim 21-01-2014 09:05

One question.. how can i call a custom form in a button?

y_thelastknight 21-01-2014 09:18

Quote:

Originally Posted by Logrim (Post 428463)
One question.. how can i call a custom form in a button?

can't understand it.

Logrim 21-01-2014 09:20

yup.. i try to explain :D. i create a custom form for task. i want to call it when I click "Task" button, created with botva. But i dont know how to call it.

y_thelastknight 21-01-2014 09:23

Quote:

Originally Posted by Logrim (Post 428465)
yup.. i try to explain :D. i create a custom form for task. i want to call it when I click "Task" button, created with botva. But i dont know how to call it.

did you add (formname).Showmodel; ???

Logrim 21-01-2014 09:28

mmm, no, i have another custom form for the search button, and i call it in initializeWizard with "CreateDirBrowseForm";

p.d. i forget to say.. i work with inno 5.5.4 not with innoultra

y_thelastknight 21-01-2014 09:44

Quote:

Originally Posted by Logrim (Post 428467)
mmm, no, i have another custom form for the search button, and i call it in initializeWizard with "CreateDirBrowseForm";

p.d. i forget to say.. i work with inno 5.5.4 not with innoultra


check your personal msg

reiji777 21-01-2014 09:52

guys what is botva, gdf, gdi etc? is it some kind plugin? & what are their functions? sorry i'm still noob :o

y_thelastknight 21-01-2014 09:59

Quote:

Originally Posted by reiji777 (Post 428469)
what is botva

we can add png jpg file to inno setup. can create wizardfom from image, or set masks for form.

i know thats all :p

Logrim 24-01-2014 06:26

I need to know if it posible to disable the unninstall confirmation, and the finished unninstall confirmation msgboxes in inno, and how.. i already disable it in cancel button, but no figure how to make it in unninstall form. thanks..

P.D. Problem solved.. i add the /silent parameter in unnins000.exe shorcut, and how i have the unninstall form created, it appears without msgboxes.. i leave the answer for anyone who need it.
P.D2. Its only work in unninstall shorcut.. someone knows the form of make silent in add/remove program? Thanks

P.D. All Problems solved, thanks, Razor and Altef.

Sorry for my poor vocabulary, i hope understand me.

Logrim 30-01-2014 04:53

I have a problem, i want a custom form that when click install button, detect if the game is already installed and ofers unninstall it. I have the custom form made and attached in install button, the form works but allways appears, when game is installed and when not..

my code in the install button is this:

Quote:

function NextButtonClick(CurPageID: Integer): Boolean;
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0002);
if RegQueryStringValue(HKLM, 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVer sion\Uninstall\Knights of the Old Republic_is1','UninstallString', Uninstall) then
DetectUnsLabel.Show;
DetectUninsForm.ShowModal;
Uninstall:=RemoveQuotes(Uninstall);
if RadioButton_1.Checked then
begin
if not RadioButton_1.Checked then
Result := True;
end;
end;
EDIT:Another question.. how to hide a custom form?

Thanks, and again sorry if my english is not god.

Vatsal Singh 01-02-2014 06:14

How to merge autorun.exe into setup.exe according to yener90 CIU v1.0.0.6.Thanks in advance.

altef_4 01-02-2014 07:20

Quote:

Originally Posted by Logrim (Post 428731)
I have a problem, i want a custom form that when click install button, detect if the game is already installed and ofers unninstall it. I have the custom form made and attached in install button, the form works but allways appears, when game is installed and when not..

my code in the install button is this:



EDIT:Another question.. how to hide a custom form?

Thanks, and again sorry if my english is not god.

i can't write working example baset on this data, but i can see few errors
Code:

function NextButtonClick(CurPageID: Integer): Boolean;
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0002);
if CurPageID = wpInstalling then begin
if IsWin64 then
if RegQueryStringValue(HKLM, 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVer sion\Uninstall\Knights of the Old Republic_is1','UninstallString', Uninstall) then begin
DetectUnsLabel.Show;
DetectUninsForm.ShowModal;
Uninstall:=RemoveQuotes(Uninstall);
end;
end else begin
if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVer sion\Uninstall\Knights of the Old Republic_is1','UninstallString', Uninstall) then begin
DetectUnsLabel.Show;
DetectUninsForm.ShowModal;
Uninstall:=RemoveQuotes(Uninstall);
end;
Result := not RadioButton_1.Checked;
end else Result := True;
end;

you not checked 64 bit version of windows, result of function can be null, and to write working example i need know what do radiobutton, unslabel,uninstall.

for hide customform use customform.hide, for delete use customform.free, customform := nil; if you use customform.showmodal then to close it use customform.modalresult := mrok; in ee version

Logrim 03-02-2014 08:40

Another question,, its posible to add a round mask with botva2 and how? thanks.

Razor12911 03-02-2014 14:52

it's possible and the how part, you need contact me via PM. :)

Logrim 11-02-2014 00:17

And another question... how can i call filenamelabel when the compression is external? i mean compressed with freearc.

altef_4 11-02-2014 02:49

Quote:

Originally Posted by Logrim (Post 429017)
And another question... how can i call filenamelabel when the compression is external? i mean compressed with freearc.

if you use ISDone, check this function
Code:

function ProgressCallback(OveralPct,CurrentPct: integer;CurrentFile,TimeStr1,TimeStr2,TimeStr3:PAnsiChar): longword;
CurrentFile is container with current extract file name

e.g.
Code:

LabelCurrFileName.Caption:='Current File Name:  '+MinimizePathName(CurrentFile, LabelCurrFileName.Font, LabelCurrFileName.Width-ScaleX(100));
this code was taken from original ISDone 0.6 example

Logrim 11-02-2014 05:48

Thanks altef_4, problem solved.. and the detect install and offer unninstall too. :d Thanks for your help, man.

P.D. if i #define x64.. its the same than iswin64?, i try to do this for x64 registry keys and for x86 with RegWriteStringValue, but i dont have any way to test in x86 system.. The script work like a charm in x64 :D

This is the way i do it:

#ifdef x64
RegWriteStringValue(HKLM,'SOFTWARE\Wow6432Node\Mic rosoft\Windows\CurrentVersion\Uninstall\' + GameName('') + '_is1','UninstallString','"'+ExpandConstant('{unin stallexe}')+'" /Silent');
#else
RegWriteStringValue(HKCU,'Software\Microsoft\Windo ws\CurrentVersion\Uninstall\' + GameName('') + '_is1','UninstallString','"'+ExpandConstant('{unin stallexe}')+'" /Silent');
#endif

Is this correct?

altef_4 12-02-2014 07:22

Quote:

Originally Posted by Logrim (Post 429029)
Thanks altef_4, problem solved.. and the detect install and offer unninstall too. :d Thanks for your help, man.

P.D. if i #define x64.. its the same than iswin64?....

no, its not, if you use any pre processor directive e.g. #define, #include and others, its only works in compilation stage.
example how to use iswin64 with registry:

if iswin64 then
RegWriteStringValue(HKLM,'SOFTWARE\Wow6432Node\Mic rosoft\Windows\CurrentVersion\Uninstall\' + GameName('') + '_is1','UninstallString','"'+ExpandConstant('{unin stallexe}')+'" /Silent')
else
RegWriteStringValue(HKCU,'Software\Microsoft\Windo ws\CurrentVersion\Uninstall\' + GameName('') + '_is1','UninstallString','"'+ExpandConstant('{unin stallexe}')+'" /Silent');

Andrey167 12-02-2014 13:20

can have someone else there is an example check md5

jamel2013 14-02-2014 03:22

FontExpert is the software you need to view and manage fonts
installed or uninstalled on your computer. Not only it can display
these policies but also edit their properties and in print
reports. For easy searching, it can assign keywords and
organize them into categories. Obviously, you can copy, move or
remove fonts and if necessary even perform a filter or sort
according to your own criteria. Furthermore, FontExpert is able to detect and
resolve errors in installed fonts and also create a file
GIF, JPG, PNG, TIFF, BMP or even a HTML page from fonts
selected.

https://www.zeta-uploader.com/116132814

Logrim 14-02-2014 09:49

One question.. i try to execute directx in ssPostInstall.. my code for this is:

Quote:

procedure CurStepChanged(CurStep: TSetupStep);
begin
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\D XSETUP.exe'),'/Silent',false);
but return invalid numbers of parameters error.. i'm lost,, what is wrong? thanks.
end;

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


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