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 10-03-2014, 11:43
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
i have a problem... before i setting the example of the mask of Altef, all work perfectly when unninstall.. Now, inno give me an error "cannot call "EXTRACTEMPORALYFILESIZE", funtion during uninstall. I never touch nothing in the unninstall section,, only add the mask functions and procedures..
this function works only in install process, it extracts file from setup.exe to memory, in uninstall process this file isn't present and thats why this error appears, to fix this you must copy all nessesary files (images libraries and other) from temporary folder (first extract it to this folder) to your installation folder in final stage of installation, then in a uninstall process, copy this files back into temp folder and use them from it, also in uninstaller you must use standart botva2.dll functions (load images from disk), i hope you understand me
Reply With Quote
Sponsored Links
  #2  
Old 10-03-2014, 12:21
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
i understand you altef thwe problem is i think i have all in unninstall correctly, but dont work.. this is my uninnstall:

Quote:
///////////////////////////////////////////////////////////UNNINSTALL STAGE
procedure InitializeUninstallProgressForm;
var
UnsFileStatusLabel: Tlabel;
begin
FileCopy(ExpandConstant('{app}\UninstData.ini'),Ex pandConstant('{tmp}\Setup.ini'),False);
FileCopy(ExpandConstant('{app}\b2p.dll'), ExpandConstant('{tmp}\b2p.dll'), True);
FileCopy(ExpandConstant('{app}\botva2.dll'), ExpandConstant('{tmp}\botva2.dll'), True);
FileCopy(ExpandConstant('{app}\CallbackCtrl'), ExpandConstant('{tmp}\CallbackCtrl'), True);
FileCopy(ExpandConstant('{app}\Uninstall.png'), ExpandConstant('{tmp}\Uninstall.png'), True);

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

Bevel.Hide;
StatusLabel.Hide;
MainPanel.Hide;
WizardSmallBitmapImage.Hide;

ProgressBar.SetBounds(10,170,580,15);

UnsFileStatusLabel:= TLabel.Create(UninstallProgressForm.InstallingPage );
UnsFileStatusLabel.Parent:= UninstallProgressForm.InstallingPage;
UnsFileStatusLabel.SetBounds(40,10,500,15);
UnsFileStatusLabel.AutoSize:= False;
UnsFileStatusLabel.WordWrap:= True;
UnsFileStatusLabel.Transparent:= True;
UnsFileStatusLabel.Font.Name := 'Verdana';
UnsFileStatusLabel.Font.Style:= [fsBold];
UnsFileStatusLabel.Font.Size:= 8;
UnsFileStatusLabel.Font.Color:= clGray;
UnsFileStatusLabel.Caption:= ExpandConstant('{cm:UnsFileStatusLabel}');
end;
end;

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usUninstall then
begin
img:=ImgLoad(UninstallProgressForm.InstallingPage. Handle,ExpandConstant('{tmp}\Uninstall.png'),0,0,6 00,190,True,True);
ImgApplyChanges(UninstallProgressForm.InstallingPa ge.Handle);
DelTree(ExpandConstant('{app}'), True, True, True);
RegDeleteKeyIncludingSubkeys(HKLM, ExpandConstant('Software\{code:GamePublisher}\{cod e:GameName}'));
end;
end;
add this is the setup part

Quote:
///////////////////////////////////////////////////////////UNINSTALL SOURCE FILES
Source: dllfiles\botva2.dll; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;
Source: dllfiles\CallbackCtrl.dll; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;

Source: Setup\Uninstall.png; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;
Source: Setup\Setup.ico; DestDir: {app}; Attribs: hidden system; Flags: ignoreversion;
////////////////////////////////////////////////////////////////////////////////////////////////

Last edited by Logrim; 10-03-2014 at 12:25.
Reply With Quote
  #3  
Old 10-03-2014, 12:49
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
i understand you altef thwe problem is i think i have all in unninstall correctly, but dont work.. this is my uninnstall:



add this is the setup part
add this functions
Code:
function ImgLoadU(Wnd :HWND; FileName :PAnsiChar; Left, Top, Width, Height :integer; Stretch, IsBkg :boolean) :Longint; external 'ImgLoad@{tmp}\botva2.dll stdcall delayload';

procedure ImgApplyChangesU(h:HWND); external 'ImgApplyChanges@{tmp}\botva2.dll stdcall delayload';

procedure gdipShutdownU; external 'gdipShutdown@{tmp}\botva2.dll stdcall delayload';

and remove b2p.dll(it's not work in uninstaller),
correct this
Code:
FileCopy(ExpandConstant('{app}\CallbackCtrl.dll'), ExpandConstant('{tmp}\CallbackCtrl.dll'), True);
chenge ImgLoad to ImgLoadU, ImgApplyChanges to ImgApplyChangesU
add to DeInitializeUninstall - gdipShutdownU;

try it, it's must work.
Reply With Quote
The Following 2 Users Say Thank You to altef_4 For This Useful Post:
Logrim (10-03-2014), papas (02-09-2016)
  #4  
Old 10-03-2014, 13:34
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
Thanks man, work perfectly now .. sorry for my questions, when i think the code is finish i discover something new...

Last edited by Logrim; 11-03-2014 at 01:43. Reason: double posting
Reply With Quote
  #5  
Old 11-03-2014, 01:43
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
One silly question.. why the image load before the rest of the things?. i mean.. the main background load.., the rest of the component load AFTER, and during two seconds the main screen is empty..

and.. how can i add a custom progress bar and a custom edit? i dont want to usee isskin.. thanks
Reply With Quote
  #6  
Old 11-03-2014, 02:03
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
One silly question.. why the image load before the rest of the things?. i mean.. the main background load.., the rest of the component load AFTER, and during two seconds the main screen is empty..
Maybe you use ImgApplyChanges more than one time? try to use it only in the end of procedure|function.
Quote:
Originally Posted by Logrim View Post
and.. how can i add a custom progress bar and a custom edit? i dont want to usee isskin.. thanks
to create custom progress bar just load two images one on another, and change width|visible part of top image. to create custom edit create img like edit and TLabel inside of this image.
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
Logrim (11-03-2014)
  #7  
Old 11-03-2014, 02:17
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
altef i only have one ImgApplyChanges for wizardform,, only this at the start of "procedure InitializeWizard":

Quote:
ExtractTemporaryFile('Mask.bmp');
SetRgn(WizardForm.Handle,'Mask.bmp',657, 379);
img :=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}\ Background.png'),0,0,0,0,False,True);
ImgApplyChanges(WizardForm.Handle);
CreateFormFromImage(NewForm.Handle,ExpandConstant( '{tmp}\Background.png'));
OldMainProc:=SetWindowLong(WizardForm.Handle, -4, WrapFormCallback(@WizardFormProc,4));
NewForm.Show;
WizardForm.BringToFront;
and.. i dont understand well how to add progress bar and edit... for progress bar i add in setup part two png, and extract it in initialize setup. but how to apply them to the standard progress bar?
Reply With Quote
  #8  
Old 11-03-2014, 03:25
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
altef i only have one ImgApplyChanges for wizardform,, only this at the start of "procedure InitializeWizard":
maybe i don't understand you right, can you give more information?

Quote:
Originally Posted by Logrim View Post
and.. i dont understand well how to add progress bar and edit... for progress bar i add in setup part two png, and extract it in initialize setup. but how to apply them to the standard progress bar?
hide standart progress bar and calculate progress to width of your custom img.
e.g. standart progress=10% of maximum 100% then width of your img will be
progress:=CurProgress(10%)*100/MaxProgress(100%);
imgWidth=FullWidthOfImg(you set it when create img)*progress/100;
Reply With Quote
  #9  
Old 11-03-2014, 03:32
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
Altef, see m.p please.. i'm lost with that ..
Reply With Quote
  #10  
Old 12-03-2014, 22:57
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
why inno sometimes shows need to restart page in the end of installation? although I've already put all the right parameters
is there any way to suppress no restart page at all cost?

Last edited by reiji777; 12-03-2014 at 23:04.
Reply With Quote
  #11  
Old 13-03-2014, 13:14
justinbieber500 justinbieber500 is offline
Registered User
 
Join Date: Feb 2014
Location: us
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
justinbieber500 is on a distinguished road
hmm reiji Page finally pressing need.

Last edited by pakrat2k2; 13-03-2014 at 15:06. Reason: NO advertising
Reply With Quote
  #12  
Old 16-03-2014, 20:17
dienszge's Avatar
dienszge dienszge is offline
Registered User
 
Join Date: Nov 2013
Location: Indonesia
Posts: 4
Thanks: 7
Thanked 1 Time in 1 Post
dienszge is on a distinguished road
Send a message via Yahoo to dienszge
Hallo everyone..
sorry i'm newbie. and i come from indonesia
i want to try conversion..
can you give me script (InstallerScript.iss and LangScript.iss) language indonesian
please.. thx bahasa
sorry my bad english..
Reply With Quote
  #13  
Old 17-03-2014, 11:05
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
PS: Text translated with Google Translate.
Please. I need help.

In need of a code that satisfied the following properties of an executable:
Copyright, Company Name, File Description, File Version, Product Version, InternalName, Original Filename, Product Name.
I found a code on the internet and is not working with Unicode Inno Setup. Tested Inno Setup Version Ansi worked.
In unicode inno he cuts the information.

I have attached the script's code for those with more experience can analyze and give me some corrections.

Added one second scrip to compare the differences.
This second script detects only the description of the executable.
However this works in unicode version of Inno Setup.
Attached Files
File Type: rar Get File Version.rar (878 Bytes, 36 views)
File Type: rar GetFileDescription.rar (1.7 KB, 25 views)

Last edited by Cesar82; 17-03-2014 at 13:06. Reason: Added one second scrip to compare the differences.
Reply With Quote
  #14  
Old 18-03-2014, 10:15
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
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"
Reply With Quote
  #15  
Old 18-03-2014, 10:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,185
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
[Code]

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

[CustomMessages]
WelcomeMessage=Welcome to the %1 Setup Wizard
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
Logrim (18-03-2014), y_thelastknight (18-03-2014)
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 20:33.


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