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)

Logrim 18-03-2014 10:15

One question.. how to put in a custom message, the name of a game set in an ini?, i mean,

"welcome to the installation of "name stored in external ini"

Razor12911 18-03-2014 10:21

[Code]

RazorLabel.Caption:=FmtMessage(ExpandConstant({cm:WelcomeMessage}), [GetIniString('Application', 'Name', '', ExpandConstant('{tmp}\Setup.ini')]);

[CustomMessages]
WelcomeMessage=Welcome to the %1 Setup Wizard

danswano 19-03-2014 14:50

Hello,
How to unpack arc archive has bcj2 compression using ISDone?

Razor12911 23-03-2014 23:55

most things are done under arc.ini

danswano 24-03-2014 04:06

Will that expose arc.ini in temp folder?

Darkangel5 05-04-2014 07:10

hello,

sorry to use google translation to translate.

I made an autorun (see screen).

http://img11.hostingpics.net/pics/344903Sanstitre.jpg

I would like to know how to make a zoom effect passage of the mouse has on the button readme, manual etc etc.

Razor12911 07-04-2014 12:06

Use a timer or sleep with repeat and until on the onmouseenter event and do the same with onmouseleave, during that period you can change the font size and etc.

Darkangel5 08-04-2014 05:40

Quote:

Originally Posted by Razor12911 (Post 430387)
Use a timer or sleep with repeat and until on the onmouseenter event and do the same with onmouseleave, during that period you can change the font size and etc.

thank you for your answer

are there any example scripts?

Logrim 11-04-2014 07:40

Hi, long time without ask nothing ... i need to know how to make a unninstall button with botva2 buttons.. thanks.. ( i still have problems managings some reg keys )

Razor12911 19-04-2014 03:20

@Logrim,

Same way you did with setup buttons, just that botva2.dll and innocallback.dll/callbackctrl.dll must exist in the temp directory when uninstalling.

Just find a way to copy the files to install directory when installing then when uninstalling, copy them to temp. :D, Problem solved.

Logrim 19-04-2014 14:38

Thanks Razor, but i explain it badly.. if game is installed, i need to detect it an offer unninstall, but the problem is solved days ago,, sorry for no reply.. i finally make a custom form, that detect install in the beggining, and offer unninstall and repair :D.

Logrim 23-04-2014 06:10

Edited.. Problem solved for my own..

Logrim 26-04-2014 02:27

Another rapid question.. i have a custom form made for disc change, but i dont know how to "activate" the form without isdone. With isdone is not problem but without isdone i dont know where to put the code for where change disc form appears..

P.D. sorry if my english is not good

P.D.2. Again problem solved... thanks for "your responses" :D

Snipunk 28-04-2014 13:30

I'm familIarizing myself with inni setup and I have repacked some games before (simple methods).
But I couldn't get a hint about what "yener CI" is, can any one tell me our post a link where I could get it or what it is, please?

Razor12911 29-04-2014 06:38

http://fileforums.com/showthread.php?t=95717

Logrim 05-05-2014 06:03

I have a little problem. I try to make a function to show text when mouse is over a button.. i need to put two diferent text in each button. My problem is that the first text work fine but with the second text i get an error "colon ( : ) expected".

This is the code of one of the button:

procedure MessageOnClick(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseover.wav') , $0001);
case hBtn of
NextBtn:
MessageTitleLabel.Caption:=ExpandConstant('{cm:Sta rtInstallTitle}');
MessageLabel.Caption:=ExpandConstant('{cm:StartIns tall}');
end;

Thanks for your help

altef_4 05-05-2014 06:18

Quote:

Originally Posted by Logrim (Post 430954)
I have a little problem. I try to make a function to show text when mouse is over a button.. i need to put two diferent text in each button. My problem is that the first text work fine but with the second text i get an error "colon ( : ) expected".

This is the code of one of the button:

procedure MessageOnClick(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseover.wav') , $0001);
case hBtn of
NextBtn:
MessageTitleLabel.Caption:=ExpandConstant('{cm:Sta rtInstallTitle}');
MessageLabel.Caption:=ExpandConstant('{cm:StartIns tall}');
end;

Thanks for your help

procedure MessageOnEnter(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseover.wav') , $0001);
case hBtn of
NextBtn: MessageTitleLabel.Caption:=ExpandConstant('{cm:Sta rtInstallTitle}');
end;
end;

procedure MessageOnLeave(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseleave.wav' ), $0001);
case hBtn of
NextBtn: MessageLabel.Caption:=ExpandConstant('{cm:StartIns tall}');
end;
end;
...
BtnSetEvent(NextBtn,BtnEnterEventID,CallbackAddr(' MessageOnEnter'));
BtnSetEvent(NextBtn,BtnLeaveEventID,CallbackAddr(' MessageOnLeave'));

Logrim 05-05-2014 07:46

Work fine,, but i need the two messages OnEnter. I need something similar to your new EI demo altef,, for example when mouse down on option button, display two text.. one with "options text title" and one with "options text description". ohh,, i forget,, and when not button on mouse down, i like the text dissapears.. sorry for the disturb :D

altef_4 05-05-2014 08:21

procedure MessageOnEnter(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseover.wav') , $0001);
case hBtn of

NextBtn:
begin
MessageTitleLabel.Caption:=ExpandConstant('{cm:Sta rtInstallTitle}');
MessageLabel.Caption:=ExpandConstant('{cm:StartIns tall}');
end;

end;
end;

procedure MessageOnLeave(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseleave.wav' ), $0001);
case hBtn of

NextBtn:
begin
MessageTitleLabel.Caption:='';
MessageLabel.Caption:='';
end;

end;
end;

Logrim 05-05-2014 08:52

Thanks man,, work perfectly.. i look newbie on this... BEGIN, END... ains.. thanks a lot again man.

Logrim 06-05-2014 02:40

Altef,, the MessageOnEnter procedure works fine, but how change the finish button caption? i mean when finish, the caption is the StartTittle but i need to change to FinishTittle..

Razor12911 06-05-2014 03:06

procedure MessageOnEnter(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\mouseover.wav') , $0001);
if WizardForm.CurPageID = wpFinished then
begin
case hBtn of
NextBtn:
begin
MessageTitleLabel.Caption:=ExpandConstant('Whateve r, blah, write here');
MessageLabel.Caption:=ExpandConstant('Whatever, blah, write here');
end;
end else begin
case hBtn of
NextBtn:
begin
MessageTitleLabel.Caption:=ExpandConstant('{cm:Sta rtInstallTitle}');
MessageLabel.Caption:=ExpandConstant('{cm:StartIns tall}');
end;
end;
end;
end;

Logrim 06-05-2014 03:17

Thanks razor,, work like a charm :d.. i forgot to include wizardform in curpageid... ains..

Another problem... i hope,, really i hope is the last.. when i cancel the installation (external compression) even in 1% or 2%, the correct message of rollingback appears, but the setup dont quit.. i dont know why.. this is my cancel procedure:

Quote:

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0001);
Confirm:=False;
if CurPageID=wpInstalling then SuspendProc;
if CurPageID=wpInstalling then
begin
ISDoneError:=True;
ISDoneCancel:=1;
CoderLabel.Hide;
PercentageLabel.Hide;
WizardForm.Progressgauge.Hide;
FileStatusLabel.Setbounds(350,325,500,15);
FileStatusLabel.Font.Color:=clRed;
FileStatusLabel.Caption:=ExpandConstant('{cm:Rolli ngFileStatusLabel}');
DelTree(ExpandConstant('{app}'), True, True, True);
end;
if CurPageID=wpInstalling then ResumeProc;
end;

Razor12911 06-05-2014 03:23

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0001);
Confirm:=False;
Cancel:=True;
if CurPageID=wpInstalling then SuspendProc;
if CurPageID=wpInstalling then
begin
ISDoneError:=True;
ISDoneCancel:=1;
CoderLabel.Hide;
PercentageLabel.Hide;
WizardForm.Progressgauge.Hide;
FileStatusLabel.Setbounds(350,325,500,15);
FileStatusLabel.Font.Color:=clRed;
FileStatusLabel.Caption:=ExpandConstant('{cm:Rolli ngFileStatusLabel}');
DelTree(ExpandConstant('{app}'), True, True, True);
end;
if CurPageID=wpInstalling then ResumeProc;
end;

Logrim 07-05-2014 08:58

i have a little problem.. i want the destock shorcut checked in the setup, but i dont find a way to work..

this is my shorcut procedures:

Quote:

procedure DesktopClick(hBtn:HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\Click.wav'), $0001);
if BtnGetChecked(hBtn) then CreateDLabel.Font.Color:=$20A5DA else CreateDLabel.Font.Color:=$008CFF;
end;

procedure DesktopLabelClick(Sender:TObject);
begin
BtnSetChecked(DesktopCheck, not BtnGetChecked(DesktopCheck));
DesktopClick(DesktopCheck);
end;
Thanks

P.D. Problem solved,, was easy... ains.. only adding " BtnSetChecked(DesktopCheck,True)" to wpwelcome in CurPageChanged..

Logrim 11-05-2014 14:19

i need to know how see the installer in the taskbar please :D thanks for your help.

lcatorio 15-05-2014 01:40

Quote:

Originally Posted by thilanka (Post 413480)
(Sorry for my English)



I want to Automatically detect and set MAC Address to Input Query when i run setup ( inno setup key generator).

Attachment 5554

Attachment 5555

Please send me the Script because i have no knowledge about this coding


This is very Important to me please help me


Thank you very much :)


This is inno script




[_ISTool]

EnableISX=true

Use7zip=false

[Files]

Source: sample2.iky; DestDir: {tmp}; Flags: ignoreversion

Source: ISID.dll; DestDir: {sys}\ISID; Flags: ignoreversion


[Setup]

AppName=Inno Key Generator2

AppVerName=Inno Key Generator 1.0.2.1 2

DefaultDirName={pf}\MJ Freelancing\IKG

DefaultGroupName=Inno Key Generator

OutputDir=output

AppCopyright=Copyright © Oct 2002 - 2006 MJ Freelancing

OutputBaseFilename=IKGSetup


[ThirdParty]

CompileLogMethod=append


[Code]


function ValidateSerialNumber(InnoKeyFile, User, Orgn, ProdCode, HDD, MAC, PrivateKey, Serial: AnsiString): Boolean;

external 'ValidateSerialNumber@files:ISID.dll stdcall';

function GetMACAddress(output: AnsiString): Boolean;

external 'GetMACAddress@files:ISID.dll stdcall';


var

UserPage: TInputQueryWizardPage;

UserValues: TArrayOfString;

I: Integer;

procedure InitializeWizard();

begin

{ create the custom page }

UserPage := CreateInputQueryPage(wpInfoBefore, //wpWelcome,

'Enter Registration Details', 'You need to be a registered user to be able to proceed',

'Enter your registration details exactly (case sensitive), then click Next.');

UserPage.Add('MAC Address:', False);
UserPage.Add('Unlock Code:', False);
UserPage.Add('Private Key:', False);

// here's how to assign texts to those edit boxes
UserPage.Edits[0].Text := 'Detect and set MAC Address';
UserPage.Edits[1].Text := '123456789_Unlock';
UserPage.Edits[2].Text := 'Pr1v4t3 k3y';

// iterate all edit boxes to set them ReadOnly mode and gray color in
// an easier way than writing the same three times for all edit boxes
for I := 0 to 2 do
begin
UserPage.Edits[I].ReadOnly := True;
UserPage.Edits[I].Color := clBtnFace;
end;

{ Set default values }

SetArrayLength(UserValues, 3);

end;

function ScriptDlgPages(CurPage: Integer; BackClicked: Boolean): Boolean;

var

ExpPath: String;

begin

Result := True;

if (CurPage = UserPage.ID) then

begin

ExtractTemporaryFile('sample2.iky'); { the public key file }

ExpPath := ExpandConstant('{tmp}\sample2.iky');

Result := False;

UserValues[0] := UserPage.Values[0];
UserValues[1] := UserPage.Values[1];
UserValues[2] := UserPage.Values[2];

if (UserValues[0] = '') or (UserValues[1] = '') or (UserValues[2] = '') then

MsgBox('No fields can be blank !', mbError, MB_OK)

else

begin



//UserPage.Values[0] := GetPreviousData('MAC', UserValues[0]);

//UserPage.Values[1] := GetPreviousData('Unlock', UserValues[1]);

//UserPage.Values[2] := GetPreviousData('Private', UserValues[2]);



//function ValidateSerialNumber(InnoKeyFile, User, Orgn, PCe,HDD,MAC,PrivateKey, Serial: AnsiString): Boolean;

Result := ValidateSerialNumber( ExpPath,'','','','',UserValues[0],UserValues[2],UserValues[1] );

if (not Result) then

MsgBox('Invalid Entry !', mbError, MB_OK);

end
end

end;


function NextButtonClick(CurPage: Integer): Boolean;

begin

Result := ScriptDlgPages(CurPage, False);

end;

function BackButtonClick(CurPage: Integer): Boolean;

begin

Result := True;//ScriptDlgPages(CurPage, True);

end;

function HasHtmlHelp(): Boolean;

begin

{ HHCTRL.OCX GUID }

Result := RegValueExists(HKCR, 'CLSID\{4662DAB0-D393-11D0-9A56-00C04FB68B66}\InprocServer32', '');

end;

function HasNoHtmlHelp(): Boolean;

begin

Result := not HasHtmlHelp;

end;

I also need this, still no answers? Can't find anywhere :( Please help us..!

Logrim 15-05-2014 13:49

hi, i would like to know if there is a way to show the installer pages in the taskbar when mousedown in the taskbar icon. thanks.

y_thelastknight 16-05-2014 02:05

1 Attachment(s)
Quote:

Originally Posted by Logrim (Post 431152)
hi, i would like to know if there is a way to show the installer pages in the taskbar when mousedown in the taskbar icon. thanks.

use this dll bro.

WinTB 1.0.0.8 by David.D.Rocco

Logrim 16-05-2014 02:51

Thanks y_thelastknight... the problem with wintb is that when i mousedown in taskbar setup icon, dont show the buttons and text, only de png that i set in background. My installer have a bmp mask.

Logrim 16-05-2014 23:08

How to make a botva button visible or invisible in ini file? i have botva buttons for redist checkboxes, and redist names in ini. i want that when i set not visible the directX label for example, the directx button not visible too. Now i have this in CuPageChanged and work well,, but i have to hide the label in the ini and the button in the script..

Quote:

//BtnSetVisibility(DirectXCheck,False);
DirectXLabel.Visible:=ExpandConstant('{code:Redist 1Name}') <> '';
Help please.. Thanks

y_thelastknight 17-05-2014 02:05

@logrim Contact me in fb.. i have to confirm something.

y_thelastknight 17-05-2014 09:54

Quote:

Originally Posted by Logrim (Post 431175)
How to make a botva button visible or invisible in ini file? i have botva buttons for redist checkboxes, and redist names in ini. i want that when i set not visible the directX label for example, the directx button not visible too. Now i have this in CuPageChanged and work well,, but i have to hide the label in the ini and the button in the script..



Help please.. Thanks

BtnSetVisibility(DirectXCheck,ExpandConstant('{cod e:Redist 1Name}') <> '');
DirectXLabel.Visible:=ExpandConstant('{code:Redist 1Name}') <> '';

ahmetbtmn 20-05-2014 19:32

How to use precomp+srep+lzma64 or precomp+srep64+lzma in bat file? for example Razor12911 code: -mprecomp+srep64+lzma64:a1:mfbt4:d158m:fb273:mc1000 :lc8

I add code in bat file but gives error unsupported.

Razor12911 21-05-2014 07:33

copy and paste arc.ini lzma64.exe and srep64.exe from conversion packer to your bat location

Shadow Delta 13-06-2014 20:15

Could all these customization which inno can deliver, could possibly be achieved by NSIS? or does the form have a dedicated session for NSIS scripts and tool like Inno has?

Razor12911 14-06-2014 01:56

yea I think so as long as there are libraries for NSIS that can do the same with Inno, you can always import some abilities from dll files.

Danik1B9 18-06-2014 14:31

Hi I use this compression: arc a -ep1 -ed -r -w.\Data\ Data-09a.db -msrep+delta+rep+lzma:a1:mfbt4:d158m:fb273:mc1000:l c8 "D:\1\*" I know it even better, can anyone advise what mni, eg: BLACKBOX, RG Mechanics, RG Revenants. thanks

Logrim 23-06-2014 13:16

Hi, i need help with a little thing.. I try to explain the problem with my poor english..

I need to know how to move a custom form and at same time move the wizardform..
I mean move the two as if it were one.

I hope you understand me :D.. thanks.

Logrim 27-06-2014 01:12

Hi all,, please i need to know how to make a custom new folder button in a custom folderbrowse form. thanks..


All times are GMT -7. The time now is 08:10.

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