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)

y_thelastknight 30-12-2013 08:08

no bro i need like this, but it not working.

procedure AboutButtonOnClick(Sender: TObject);
begin

If CurPageID=wpWelcome then
begin
MsgBox('Hello.', mbInformation, MB_OK);
end;

If CurPageID=wpSelectDir then
begin
MsgBox('Hello.', mbInformation, MB_OK);
end;

end;

altef_4 30-12-2013 09:56

Quote:

Originally Posted by y_thelastknight (Post 427851)
no bro i need like this, but it not working.

procedure AboutButtonOnClick(Sender: TObject);
begin

If CurPageID=wpWelcome then
begin
MsgBox('Hello.', mbInformation, MB_OK);
end;

If CurPageID=wpSelectDir then
begin
MsgBox('Hello.', mbInformation, MB_OK);
end;

end;

Code:

[code]
var
 
PageID: integer;

procedure CurPageChanged(CurPageID: integer);
begin
 
PageID:=CurPageID;
end;

procedure AboutButtonOnClick(Sender: TObject);
begin
case
PageID of
 
wpWelcome: MsgBox('wpWelcome', mbInformation, MB_OK);
  wpLicense: MsgBox('wpLicense', mbInformation, MB_OK);
  wpPassword: MsgBox('wpPassword', mbInformation, MB_OK);
  wpInfoBefore: MsgBox('wpInfoBefore', mbInformation, MB_OK);
  wpUserInfo: MsgBox('wpUserInfo', mbInformation, MB_OK);
  wpSelectDir: MsgBox('wpSelectDir', mbInformation, MB_OK);
  wpSelectComponents: MsgBox('wpSelectComponents', mbInformation, MB_OK);
  wpSelectProgramGroup: MsgBox('wpSelectProgramGroup', mbInformation, MB_OK);
  wpSelectTasks: MsgBox('wpSelectTasks', mbInformation, MB_OK);
  wpReady: MsgBox('wpReady', mbInformation, MB_OK);
  wpPreparing: MsgBox('wpPreparing', mbInformation, MB_OK);
  wpInstalling: MsgBox('wpInstalling', mbInformation, MB_OK);
  wpInfoAfter: MsgBox('wpInfoAfter', mbInformation, MB_OK);
  wpFinished: MsgBox('wpFinished', mbInformation, MB_OK);
end;
end;


y_thelastknight 30-12-2013 12:34

thanks works fine.

reiji777 02-01-2014 13:30

Quote:

Originally Posted by y_thelastknight (Post 426855)
hi fellow Member

Check my Attached exe and tell me how is it?

http://img404.imageshack.us/img404/9127/7f48.jpg

how to make like this m8?

y_thelastknight 03-01-2014 04:56

1 Attachment(s)
Quote:

Originally Posted by reiji777 (Post 427927)
how to make like this m8?

script.
http://img404.imageshack.us/img404/9127/7f48.jpg

Vatsal Singh 03-01-2014 05:12

How to add splash in yener90's script (CIU 1.0.0.6).Thank in advance

y_thelastknight 03-01-2014 06:39

Quote:

Originally Posted by Vatsal Singh (Post 427937)
How to add splash in yener90's script (CIU 1.0.0.6).Thank in advance

put the splash.png file in setup.cab file..it works.

Logrim 03-01-2014 07:16

Three little question,, help me please :D..

1. When unninstall, how to delete the main folder of the installer? the folder is empty but still in program files.. i try with deltree in CurUninstallStepChanged, and with [UninstallDelete] and nothing works.

2. Same problem that the fist, but when cancel the installation. This is worst.. because when cancel, the main folder AND subdirectories still there.

3. The shit png in unninstall doest show.. i think i put in the incorrect line, but i'm a little lost..

My unninstall code is this:

Quote:

procedure InitializeUninstallProgressForm;
var
img:Longint;
UnsStatusLabel, UnsGameNameLabel: Tlabel;

begin
FileCopy(ExpandConstant('{app}\Background.png'), ExpandConstant('{tmp}\Background.png'), True);
FileCopy(ExpandConstant('{app}\isskinU.dll'), ExpandConstant('{tmp}\isskinU.dll'), True);
FileCopy(ExpandConstant('{app}\{#Skin}'), ExpandConstant('{tmp}\{#Skin}'), True);
FileCopy(ExpandConstant('{app}\botva2.dll'), ExpandConstant('{tmp}\botva2.dll'), True);
FileCopy(ExpandConstant('{app}\CallbackCtrl'), ExpandConstant('{tmp}\CallbackCtrl'), True);
FileCopy(ExpandConstant('{app}\UninstData.ini'),Ex pandConstant('{tmp}\Setup.ini'),False);
LoadSkinUninst(ExpandConstant('{tmp}\{#Skin}'), '');

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

Bevel.Hide;
StatusLabel.Hide;
MainPanel.Hide;
WizardSmallBitmapImage.Hide;
CancelButton.Visible:=True;

ProgressBar.SetBounds(ScaleX(185), ScaleY(374), ScaleX(455), ScaleY(15));

UnsStatusLabel:= TLabel.Create(UninstallProgressForm.InstallingPage );
UnsStatusLabel.SetBounds(ScaleX(15), ScaleY(374), ScaleX(200), ScaleY(30));;
UnsStatusLabel.AutoSize:= False;
UnsStatusLabel.WordWrap:= True;
UnsStatusLabel.Transparent:= True;
UnsStatusLabel.Font.Color:= clSilver;
UnsStatusLabel.Font.Size:= 8
UnsStatusLabel.Font.Name := 'Verdana'
UnsStatusLabel.Caption:= 'Estado de la desinstalación:';
UnsStatusLabel.Parent:= UninstallProgressForm.InstallingPage;

UnsGameNameLabel:= TLabel.Create(UninstallProgressForm.InstallingPage );
UnsGameNameLabel.SetBounds(ScaleX(15), ScaleY(6), ScaleX(500), ScaleY(15));
UnsGameNameLabel.AutoSize:= False;
UnsGameNameLabel.WordWrap:= True;
UnsGameNameLabel.Transparent:= True;
UnsGameNameLabel.Font.Color:= clSilver;
UnsGameNameLabel.Font.Size:= 9
UnsGameNameLabel.Font.Name := 'Verdana'
UnsGameNameLabel.Caption:= 'Desinstalando archivos, por favor espere...';
UnsGameNameLabel.Parent:= UninstallProgressForm.InstallingPage;
end;
end;

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usUninstall then
begin
DelTree('{app}', True, True, True);
RegDeleteKeyIncludingSubkeys(HKLM, ExpandConstant('Software\{code:GamePublisher}\{cod e:GameName}'));
img:=ImgLoad(UninstallProgressForm.Handle,ExpandCo nstant('{tmp}\Background.png'),10,27,630,335,True, True);
ImgApplyChanges(UninstallProgressForm.Handle);
end;
end;

Logrim 03-01-2014 10:32

Anyone knows which is the name of this window in innosetup, and if its posible modify it?

http://i41.tinypic.com/qsmro8.png

y_thelastknight 03-01-2014 17:51

Quote:

Originally Posted by Logrim (Post 427946)
Anyone knows which is the name of this window in innosetup, and if its posible modify it?

http://i41.tinypic.com/qsmro8.png

There is No name for this window i think :p
Yup you can create a form for it and call it..you can edit the form however you want it.

reiji777 03-01-2014 18:21

1 Attachment(s)
Quote:

Originally Posted by y_thelastknight (Post 427936)

the drive letter on the left and the bar won't show up m8. please help

Logrim 04-01-2014 03:16

y_TheLastKnight please.. can you tell me with and example? thought i have resolved, but this morning i'm little silly :D.. all that i want is remove the border.. "bsNone".. and change the buttons with botva2, same that change in wizarform.

Darkangel5 06-01-2014 05:24

sorry to use google translation to translate

I need your service.
I am trying to make an autorun and I would like to know:

how to use the roundedcorner

how to scroll a text to a point defined

thank you

sentinelks 06-01-2014 05:46

Quote:

Originally Posted by reiji777 (Post 427966)
the drive letter on the left and the bar won't show up m8. Please help


use inno ansi

y_thelastknight 06-01-2014 07:09

Quote:

Originally Posted by Logrim (Post 427972)
y_TheLastKnight please.. can you tell me with and example? thought i have resolved, but this morning i'm little silly :D.. all that i want is remove the border.. "bsNone".. and change the buttons with botva2, same that change in wizarform.

ask razor about this.. i just know that..thats all :p

reiji777 06-01-2014 07:39

Quote:

Originally Posted by sentinelks (Post 428040)
use inno ansi

how to convert the script into inno unicode? is it possible?

y_thelastknight 06-01-2014 08:54

1 Attachment(s)
Quote:

Originally Posted by reiji777 (Post 428046)
how to convert the script into inno unicode? is it possible?

i try to convert it. but progress bar not showing it percentage :(

sentinelks 06-01-2014 09:47

yes is possible

reiji777 07-01-2014 14:30

Quote:

Originally Posted by sentinelks (Post 428052)
yes is possible

how bro? please help

sentinelks 07-01-2014 15:26

if (FreeMB>{#NeedSize}) then NeedSpaceLabel1.Font.Color:=clBlack else NeedSpaceLabel1.Font.Color:=clRed;
if (FreeMB>{#NeedSize}) then Progress.State:= npbsNormal else Progress.State:= npbsError;
if (FreeMB>{#NeedSize}) then progress.Position:=FreeMB*100/TotalMB;

reiji777 07-01-2014 17:29

Quote:

Originally Posted by y_thelastknight (Post 428047)
i try to convert it. but progress bar not showing it percentage :(

Quote:

Originally Posted by sentinelks (Post 428083)
if (FreeMB>{#NeedSize}) then NeedSpaceLabel1.Font.Color:=clBlack else NeedSpaceLabel1.Font.Color:=clRed;
if (FreeMB>{#NeedSize}) then Progress.State:= npbsNormal else Progress.State:= npbsError;
if (FreeMB>{#NeedSize}) then progress.Position:=FreeMB*100/TotalMB;

wow it really works like a charm bro. thankyou so much to both of you :);)

y_thelastknight 07-01-2014 19:37

Quote:

Originally Posted by sentinelks (Post 428083)
if (FreeMB>{#NeedSize}) then progress.Position:=FreeMB*100/TotalMB;

sentinelks i don't know about reiji777 but thats not in my mind..
progress percentage is should be like (((TotalMB-FreeMB)/TotalMB)*100)
not FreeMB*100/TotalMB

reiji777 07-01-2014 21:31

Quote:

Originally Posted by y_thelastknight (Post 428090)
sentinelks i don't know about reiji777 but thats not in my mind..
progress percentage is should be like (((TotalMB-FreeMB)/TotalMB)*100)
not FreeMB*100/TotalMB

at first I didn't noticed it, apparently the progress bar is not relevant with the function indeed
btw when I embedded hdd.bmp file to setup by pre-extracting it to 'temp' suddenly my antivirus detecting it as virus/worm/trojan :eek:
what could possibly wrong? am I accidentally creating a virus?

sentinelks 08-01-2014 00:41

Quote:

y_thelastknight
perhaps a calculation error but the synthesis is that ;)

however, does not change anything just give a different interpretation

reiji777 12-01-2014 03:16

Quote:

Originally Posted by y_thelastknight (Post 428090)
sentinelks i don't know about reiji777 but thats not in my mind..
progress percentage is should be like (((TotalMB-FreeMB)/TotalMB)*100)
not FreeMB*100/TotalMB

how to run it without have to define #NeedSize?
because in default inno has already count the program size

mask512 13-01-2014 10:12

2 Attachment(s)
Hei .
I'm noob who tried to create simple installer with inno setup .
i am using unicode version and got problems about creating setup.exe icon

This is my script
Code:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{D9D83115-4AA4-4C1F-ABC1-E1C9CCCE5937}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
SetupIconFile=C:\Program Files (x86)\Inno Setup 5\Examples\icon.ico
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\icon.ico"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

LOG
Code:

*** Starting compile.  [1:04:34 AM]

[ISPP] Preprocessing.
[ISPP] Preprocessed.

Parsing [Setup] section, line 14
Parsing [Setup] section, line 15
Parsing [Setup] section, line 16
Parsing [Setup] section, line 18
Parsing [Setup] section, line 19
Parsing [Setup] section, line 20
Parsing [Setup] section, line 21
Parsing [Setup] section, line 22
Parsing [Setup] section, line 23
Parsing [Setup] section, line 24
Parsing [Setup] section, line 25
Parsing [Setup] section, line 26
Parsing [Setup] section, line 27
Reading file (WizardImageFile)
  File: C:\Program Files (x86)\Inno Setup 5\WIZMODERNIMAGE.BMP
Reading file (WizardSmallImageFile)
  File: C:\Program Files (x86)\Inno Setup 5\WIZMODERNSMALLIMAGE.BMP
Preparing Setup program executable
  Updating icons (SETUP.E32)
Determining language code pages
Parsing [Languages] section, line 30
  File: C:\Program Files (x86)\Inno Setup 5\Default.isl
  Messages in script file
Reading default messages from Default.isl
Parsing [Languages] section, line 30
  File: C:\Program Files (x86)\Inno Setup 5\Default.isl
Parsing [LangOptions], [Messages], and [CustomMessages] sections
  Messages in script file
Reading [ Code] section
Parsing [Tasks] section, line 33
Parsing [Icons] section, line 41
Parsing [Icons] section, line 42
Parsing [Run] section, line 45
Parsing [Files] section, line 36
Parsing [Files] section, line 37
Creating setup files
  Updating icons (SETUP.EXE)
  Compressing: C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe
  Compressing: C:\Program Files (x86)\Inno Setup 5\Examples\icon.ico
  Compressing Setup program executable
  Updating version info

*** Finished.  [1:04:35 AM, 00:00.624 elapsed]

My icon
http://fileforums.com/attachment.php...1&d=1389636443

and result with no icon
http://fileforums.com/attachment.php...1&d=1389636443

Can anyone tell me whats wrong that script



Sorry for my english .

thanks

y_thelastknight 13-01-2014 10:26

where did you get that icon file, did you create it?
there is no error in the script.

reiji777 13-01-2014 14:50

how to insert .png file in inno?

mask512 14-01-2014 00:07

1 Attachment(s)
Quote:

Originally Posted by y_thelastknight (Post 428252)
where did you get that icon file, did you create it?
there is no error in the script.

Yes i did .
This is the details of icon
http://fileforums.com/attachment.php...1&d=1389686794

y_thelastknight 14-01-2014 00:53

Just attach the icon file. Or use other icon file

pakrat2k2 14-01-2014 05:11

probably didn't include all sizes for the icon ?

y_thelastknight 14-01-2014 05:27

Quote:

Originally Posted by pakrat2k2 (Post 428275)
probably didn't include all sizes for the icon ?

i have the same thoughts.

mask512 14-01-2014 20:49

1 Attachment(s)
Quote:

Originally Posted by pakrat2k2 (Post 428275)
probably didn't include all sizes for the icon ?

Quote:

Originally Posted by y_thelastknight (Post 428276)
i have the same thoughts.

I'm using 2 type of icon
icon download here

y_thelastknight 15-01-2014 01:02

1 Attachment(s)
Quote:

I'm using 2 type of icon
I don't know how did you create that icon, both icon files are corrupted.
test with my icon file and tell me..

Vatsal Singh 15-01-2014 06:20

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.

mausschieber 15-01-2014 07:56

Quote:

Originally Posted by mask512 (Post 428291)
I'm using 2 type of icon


I have corrected it for you
you can use the icons now

http://fileforums.com/attachment.php...1&d=1389801304

mask512 15-01-2014 10:07

1 Attachment(s)
Quote:

Originally Posted by y_thelastknight (Post 428297)
I don't know how did you create that icon, both icon files are corrupted.
test with my icon file and tell me..

your icon worked

Can you edit my pic to icon please ? i dont know whats wrong :D
PIC


Quote:

Originally Posted by mausschieber (Post 428303)
I have corrected it for you
you can use the icons now

http://fileforums.com/attachment.php...1&d=1389801304

Oh thanks . that's password protected

y_thelastknight 15-01-2014 10:16

1 Attachment(s)
here you go

mask512 15-01-2014 10:53

Quote:

Originally Posted by y_thelastknight (Post 428306)
here you go

Thank you very much :D

y_thelastknight 15-01-2014 11:06

Quote:

Originally Posted by mask512 (Post 428307)
Thank you very much :D

i use axialis iconworkshop to create icons. and there more software to create or edit icons.


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