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)

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


All times are GMT -7. The time now is 21:47.

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