Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2014, 19:37
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by sentinelks View Post
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
Reply With Quote
Sponsored Links
  #2  
Old 07-01-2014, 21:31
reiji777's Avatar
reiji777 reiji777 is offline
Registered User
 
Join Date: May 2011
Location: Tokyo
Posts: 53
Thanks: 50
Thanked 3 Times in 3 Posts
reiji777 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
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
what could possibly wrong? am I accidentally creating a virus?
Reply With Quote
  #3  
Old 08-01-2014, 00:41
sentinelks sentinelks is offline
Banned
 
Join Date: May 2013
Location: hjklò
Posts: 281
Thanks: 74
Thanked 320 Times in 157 Posts
sentinelks is on a distinguished road
Quote:
y_thelastknight
perhaps a calculation error but the synthesis is that

however, does not change anything just give a different interpretation

Last edited by sentinelks; 08-01-2014 at 01:41.
Reply With Quote
  #4  
Old 12-01-2014, 03:16
reiji777's Avatar
reiji777 reiji777 is offline
Registered User
 
Join Date: May 2011
Location: Tokyo
Posts: 53
Thanks: 50
Thanked 3 Times in 3 Posts
reiji777 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
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
Reply With Quote
  #5  
Old 13-01-2014, 10:12
mask512 mask512 is offline
Registered User
 
Join Date: May 2013
Location: Bandung
Posts: 7
Thanks: 2
Thanked 1 Time in 1 Post
mask512 is on a distinguished road
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


and result with no icon


Can anyone tell me whats wrong that script



Sorry for my english .

thanks
Attached Images
File Type: jpg icon.JPG (104.6 KB, 136 views)
File Type: jpg result.JPG (28.6 KB, 132 views)
Reply With Quote
  #6  
Old 13-01-2014, 10:26
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
where did you get that icon file, did you create it?
there is no error in the script.

Last edited by y_thelastknight; 13-01-2014 at 11:13.
Reply With Quote
The Following User Says Thank You to y_thelastknight For This Useful Post:
sentinelks (13-01-2014)
  #7  
Old 14-01-2014, 00:07
mask512 mask512 is offline
Registered User
 
Join Date: May 2013
Location: Bandung
Posts: 7
Thanks: 2
Thanked 1 Time in 1 Post
mask512 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
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
Attached Images
File Type: jpg detail.JPG (44.6 KB, 120 views)
Reply With Quote
  #8  
Old 13-01-2014, 14:50
reiji777's Avatar
reiji777 reiji777 is offline
Registered User
 
Join Date: May 2011
Location: Tokyo
Posts: 53
Thanks: 50
Thanked 3 Times in 3 Posts
reiji777 is on a distinguished road
how to insert .png file in inno?
Reply With Quote
  #9  
Old 14-01-2014, 00:53
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Just attach the icon file. Or use other icon file
__________________
Glass BB | BlackBox v2 | Portable Installer
Reply With Quote
  #10  
Old 14-01-2014, 05:11
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
probably didn't include all sizes for the icon ?
Reply With Quote
  #11  
Old 14-01-2014, 05:27
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by pakrat2k2 View Post
probably didn't include all sizes for the icon ?
i have the same thoughts.
__________________
Glass BB | BlackBox v2 | Portable Installer
Reply With Quote
  #12  
Old 14-01-2014, 20:49
mask512 mask512 is offline
Registered User
 
Join Date: May 2013
Location: Bandung
Posts: 7
Thanks: 2
Thanked 1 Time in 1 Post
mask512 is on a distinguished road
Quote:
Originally Posted by pakrat2k2 View Post
probably didn't include all sizes for the icon ?
Quote:
Originally Posted by y_thelastknight View Post
i have the same thoughts.
I'm using 2 type of icon
icon download here
Attached Files
File Type: rar setup icon.rar (11.5 KB, 23 views)
Reply With Quote
  #13  
Old 15-01-2014, 01:02
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
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..
Attached Files
File Type: rar icon.rar (378.0 KB, 20 views)
__________________
Glass BB | BlackBox v2 | Portable Installer

Last edited by y_thelastknight; 15-01-2014 at 02:12.
Reply With Quote
  #14  
Old 15-01-2014, 07:56
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 4,334
Thanks: 6,774
Thanked 11,748 Times in 3,246 Posts
mausschieber is on a distinguished road
Quote:
Originally Posted by mask512 View Post
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
__________________
It would be nice if you appreciate my work with the thanks Button

Last edited by mausschieber; 19-02-2014 at 11:52.
Reply With Quote
  #15  
Old 15-01-2014, 10:07
mask512 mask512 is offline
Registered User
 
Join Date: May 2013
Location: Bandung
Posts: 7
Thanks: 2
Thanked 1 Time in 1 Post
mask512 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
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
PIC


Quote:
Originally Posted by mausschieber View Post
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
Attached Files
File Type: rar Logo.rar (114.4 KB, 31 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 22:37.


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