Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 27-05-2017, 06:05
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
[CIUv2] Custom Installer Ultimate v2 Project Source Codes

This project is finished! For a further advanced version, go here -> http://fileforums.com/showthread.php?t=99345
I will leave script here. You can change/add things to it if you wish.
Only give Credits to yener90/BAMsE.

Code:
################################
########### v2.0.3.9 ###########
################################
Update 7:
-Added compatibility for UltraARC R3 Hotfix (v2.8.0.1)

Update 6:
-Changed names for (A)Button.wav/(A)ButtonOnMouse.wav to (A)ButtonClicked.wav/(A)ButtonSelected.wav
-Changed names for FontColorOnMouse/FontColorMouseDown in Setup.ini to FontColorSelected/FontColorClicked
-Added ChineseS language
-MinimizeButton now plays sound again ((A)ButtonSelected.wav), same as ExitButton

-Hotfix 1: Fixed a bug where installer freezes after double clicking on surface (thanks to houcine80)
-Hotfix 2: Fixed wrong SrepInit which causes problems for some users
-Hotfix 2: Fixed VCL Styles for RequestDisc window, SelectFolder window, InfoWindow

Update 5: (removed)
-Fixed leaking Button on SmallInstaller (thanks to LuisCésar82)

Update 4:
-Added zTool by Razor12911
-Removed vpatch (not needed anymore)
-Rebuilt Splash#/SplashAR# handling. Splash# is now in Setup\Setup folder again (again thanks to LuisCésar82)
-Fixed showing Splash#/SplashAR# using UnInstall.exe

Update 3:
-Added SplashAR#.png to Autorun folder. This SplashAR#.png appears before the Autorun page. If not needed, delete all SplashAR#.png in Autorun folder.
-Re-added WikiPage to InfoPage
-Removed languages for Autorun.png, Logo.png, Installer.png and Splash.png (they were never in use in CIU history)

-Added Multiple Splash ( see Splash subfolder )
-Added functions from 2.0.3.8d Internal
-Updated Romanian translation
-Added Checked= option to [Component#] and [Launch#]. 1 = default state (checked), 0 = turned off (not checked)
-Replaced split.exe with advsplit.exe

-Hotfix 1: Fixed a bug where Setup asks for "ReflateAPI.exe"

Known Bugs:
-If disable DirectX= in Setup.ini, System Page not showing (i don't know why)
-For [ProgressBar] you have to set any number greater then 0. Otherwise progressbar doesn't show

################################
##### v2.0.3.8.d Internal ######
################################

-Added #define SpecialRegChars for names with special chars (') for registry.iss (thanks to peterf1999)
-Rearranged [Files] section, get rid of left overs
-Updated split.exe (testing)
-Updated german translation
-Removed ReflateSTD (thanks to Simorq)
-Added Checked= option to [Component#] and [Launch#]. 1 = default state (checked), 0 = turned off (not checked). I'm not always in the mood to disable all manually :p

-Hotfix 1: Fixed importing registry.iss
-Hotfix 2: Fixed Music Button
-Hotfix 3: Fixed HW page

Known Bugs: If disable DirectX= in Setup.ini, System Page not showing (i don't know why ^^).

Update 3:
-Updated italian translation
-Replaced split.exe with advsplit.exe
-Removed #define SpecialRegChars
-Added ' character for registry.iss  (thanks to LuisCésar82)

Update 4:
-Fixed ProgressBar Height (thanks to sajmon83)

################################
####### v2.0.3.8.c Final #######
################################

-Completely reworked ExternalCompressors. Now decompressing reflate is possible again (big thanks to Simorq)
-Removed doubled Ghz from Processor (HW page)
-Translated some UltraArc messages (hopefully more to come). Non-translated languages use english as default as long as no translation is aviable (big thanks to LuisCésar82 for helping me out)
-Fixed FontSize for CPU (HW Page). It's now 6 instead of 7, as intended.
-Small additions to InfoFormPage
-Removed Noodle
-Removed NanoZip

Update 1:
-Updated german translation
-Updated italian translation
-Removed #define SpecialRegChars
-Added ' character for registry.iss (thanks to LuisCésar82)

Update 2:
-Fixed ProgressBar Height (thanks to sajmon83)
-UltraARC 2800 R2 Edition compatible
Hotfix: -Fixed ProgressBar Height again :D
Hotfix 2: No jokes, seriously, ProgressBar is fixed! 


################################
###### v2.0.3.8.c beta 1 #######
################################

-Ported hardware info to ISSysInfo.dll (thanks to peterf1999 for the great job)
-Removed duplicate files (thanks to LuisCésar82)


################################
#########  v2.0.3.8.b  #########
################################

-Added editable folder field to manually type installation dir
-Fixed a bug where using pzlib compression always gives out a -12 crc error code
-Removed WikiPage


################################
#########  v2.0.3.8.a  #########
################################

-Changed collor notation from $BGR to $RGB
-Added ConversionPage= to Setup.ini
-Added ConversionPage and WikiPage to InfoForm
-Added Hebrew (again^^) and updated Indonesian (again^^) (thanks to vollachr and edwinkyr)
Since yener90 (the initial creator) and BAMsE (the former modder) moved away (for differently reasons, i wish you all the best ) we decided to move on and continue this project as best as we can.

Special thanks goes out to all of you who helped making this possible.

I decided to create a own topic for this, since the UltraArc thread should be only for UltraArc purposes. It's just confusing to publish and discuss two subjects on one for another purpose declared topic.


Some Info left: If you like to protect your setup (images, music, ...), go here -> http://fileforums.com/showthread.php?t=99345


For newest versions of UltraArc and discuss/help, check this thread -> http://fileforums.com/showthread.php?t=96619


Inno Setup Enhanced Unicode is required to compile the script. You can find it here -> http://fileforums.com/attachment.php...1&d=1430150465


Thanks to: BAMsE, Razor12911, Simorq, peterf1999, pakrat2k2, LuisCésar82, mausschieber, Chayan Manna, for their help in making the script even better


With Latest update DELETE all previous versions !! ... thanks
Attached Files
File Type: rar Too_lazy_to_copy_myself.rar (195.7 KB, 66 views)
File Type: rar CIUv2 v2.0.3.9 U9.Hotfix 2 (2018-02-16).rar (37.08 MB, 96 views)
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by pakrat2k2; 16-02-2018 at 09:56.
Reply With Quote
The Following 28 Users Say Thank You to KaktoR For This Useful Post:
0xffaded (10-06-2017), 78372 (09-07-2017), ahmetbtmn (05-02-2018), altef_4 (06-06-2017), arkantos7 (29-05-2017), Chayan Manna (27-05-2017), Crynuvo (27-05-2017), DarkSyrius (25-12-2017), EzzEldin16 (13-08-2017), Grumpy (27-05-2017), GTX590 (28-05-2017), houcine80 (27-05-2017), JRD! (23-10-2017), kassane (27-05-2017), LuisCésar82 (03-06-2017), macut18 (07-06-2017), mausschieber (28-05-2017), nemesis8 (17-11-2017), omdj (27-05-2017), pakrat2k2 (27-05-2017), Razor12911 (31-05-2017), rez3vil (21-08-2017), sajmon83 (11-06-2017), Simorq (31-05-2017), Stor31 (07-06-2017), Titeuf (19-06-2017), wit (25-06-2017), zirkhaki (28-10-2017)
Sponsored Links
  #2  
Old 27-05-2017, 06:11
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
Still needed translations:


Code:
UltraArcMessage1=Extracting %1...
UltraArcMessage2=Merging %1...
UltraArcMessage3=Decoding %1...
UltraArcMessage4=%1 was not found.
UltraArcMessage5=Please Insert Disc %1 With %2 File
UltraArcMessage6=Browse For Required File?
%1 describes Data#.bin
except
UltraArcMessage5= %1 describes Disc # and %2 is Data#.bin

For
Albanian
Arabic - houcine80
Bosnian
Chinese (Traditional)
Croatian
Czech
Danish
Dutch
Farsi
Finnish
French - houcine80
Greek
Hebrew
Hungarian
Indonesian
Italian - 0xffaded
Japanese
Korean
Norwegian
Polish - arkantos7
PortugueseBR - kassane
PortuguesePO
Romanian
Russian
Serbian
Spanish - omdj
Spanish (Mexico) - omdj
Swedish
Thai
Turkish
Ukrainian
Vietnamese
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 14-06-2017 at 14:30.
Reply With Quote
The Following 3 Users Say Thank You to KaktoR For This Useful Post:
Crynuvo (27-05-2017), houcine80 (27-05-2017), mausschieber (28-05-2017)
  #3  
Old 28-05-2017, 14:20
Th3Raven's Avatar
Th3Raven Th3Raven is offline
Registered User
 
Join Date: Mar 2012
Location: Romania
Posts: 80
Thanks: 48
Thanked 45 Times in 29 Posts
Th3Raven is on a distinguished road
Send a message via Yahoo to Th3Raven
Quote:
Originally Posted by KaktoR View Post
Still needed translations:


Code:
UltraArcMessage1=Extracting %1...
UltraArcMessage2=Merging %1...
UltraArcMessage3=Decoding %1...
UltraArcMessage4=%1 was not found.
UltraArcMessage5=Please Insert Disc %1 With %2 File
UltraArcMessage6=Browse For Required File?
%1 describes Data#.bin
except
UltraArcMessage5= %1 describes Disc # and %2 is Data#.bin

For
Albanian
Arabic - houcine80
Bosnian
Chinese (Traditional)
Croatian
Czech
Danish
Dutch
Farsi
Finnish
French - houcine80
German
Greek
Hebrew
Hungarian
Indonesian
Italian
Japanese
Korean
Norwegian
Polish - arkantos7
PortugueseBR - kassane
PortuguesePO
Romanian
Russian
Serbian
Spanish - omdj
Spanish (Mexico) - omdj
Swedish
Thai
Turkish
Ukrainian
Vietnamese


Romanian will be on me
Reply With Quote
The Following User Says Thank You to Th3Raven For This Useful Post:
KaktoR (28-05-2017)
  #4  
Old 31-05-2017, 07:07
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
I noticed since Win10 Creators Update Setup.exe CPU usage going crazy (50%+) and it lags much, but only if you use vector graphics.

PS: This is the task that goes crazy -> https://msdn.microsoft.com/library/w...(v=vs.85).aspx
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 31-05-2017 at 07:11.
Reply With Quote
The Following 3 Users Say Thank You to KaktoR For This Useful Post:
EzzEldin16 (13-08-2017), houcine80 (31-05-2017), kassane (31-05-2017)
  #5  
Old 31-05-2017, 08:29
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
Bug List:


Quote:
3.
Windows 10 Creators Update
Setups with vector graphics run at heavy CPU load. Well, not Setup.exe itself, but WDM.exe (Windows Desktop Manager), and System gets really laggy.



Maybe because of bitmap masks?
Quote:
4.
If disable DirectX= in Setup.ini, System Page not showing
Quote:
5.
For [ProgressBar] you have to set any number greater then 0 for Height=. Otherwise progressbar doesn't show
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 21-07-2017 at 17:16.
Reply With Quote
The Following 7 Users Say Thank You to KaktoR For This Useful Post:
GTX590 (06-06-2017), houcine80 (31-05-2017), kassane (31-05-2017), mausschieber (06-06-2017), Razor12911 (01-06-2017), Simorq (31-05-2017), Stor31 (11-07-2017)
  #6  
Old 31-05-2017, 14:42
LuisCésar82 LuisCésar82 is offline
Registered User
 
Join Date: May 2011
Location: cesar.zanetti.82********com
Posts: 129
Thanks: 60
Thanked 138 Times in 33 Posts
LuisCésar82 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Bug List:
## Error in Split.exe sugestion
if not show progess on join files(Do not use split.exe here), Try replace split exe to prompt function COPY /B to test to see if this way no errors occur.

Code:
function JoinFile(const FileName, OutFile: String): Boolean;
var
  Param: String;
  ResultCode: Integer;
begin
  ForceDirectories(ExtractFileDir(OutFile));
  if FileExists(OutFile) then
    Param := 'COPY /B "' + OutFile + '" + "' + FileName + '" "' + OutFile + '"'
  else
    Param := 'COPY /B "' + FileName + '" "' + OutFile + '"';
  Result := Exec(ExpandConstant('{cmd}'), '/C "' + Param + '"', '',SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
Reply With Quote
The Following 3 Users Say Thank You to LuisCésar82 For This Useful Post:
houcine80 (31-05-2017), KaktoR (31-05-2017), Simorq (31-05-2017)
  #7  
Old 31-05-2017, 14:53
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
Thank you.

Will try it tomorrow.

PS: I am not sure, because UA using the same split.exe. But i guess merging files is always the same?

Edit: I am in search for the standard split/merge routine.
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 31-05-2017 at 17:35.
Reply With Quote
  #8  
Old 31-05-2017, 21:44
LuisCésar82 LuisCésar82 is offline
Registered User
 
Join Date: May 2011
Location: cesar.zanetti.82********com
Posts: 129
Thanks: 60
Thanked 138 Times in 33 Posts
LuisCésar82 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Thank you.

Will try it tomorrow.

PS: I am not sure, because UA using the same split.exe. But i guess merging files is always the same?

Edit: I am in search for the standard split/merge routine.
I tested joining the files created with UltraArc 2.5 (Rar Store Mode) using cmd and got the same file (MD5 identical) after merging and extracting.

I used the Advanced File Splitter (By Razor12911) to split file and joined using cmd and the result was the same Checksum.
You can test by just replacing the CIU "split.exe" executable using advsplit.exe (Advanced File Splitter).
I believe that "advsplit.exe" is just a newer version of "split.exe" and the bug may have been fixed.
Reply With Quote
  #9  
Old 01-06-2017, 13:42
Simorq's Avatar
Simorq Simorq is online now
Registered User
 
Join Date: Mar 2014
Location: Iran
Posts: 315
Thanks: 2,506
Thanked 514 Times in 188 Posts
Simorq is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Bug List:
ReflateAPI Big File Use:

[External compressor:precomp]
header = 0
packcmd = ReflateAPI c -s120 -l9 $$arcdatafile$$.tmp -o $$arcpackedfile$$.tmp
unpackcmd = ReflateAPI d -s120 - -o - <stdin> <stdout>

Code:
Reflate created by RamiroCruzo, Gozarck and Panker1992
Special Thanks to Razor12911 and Shelwien

Usage:
  reflate c/d -l9 -s120 -t75p inputfile -o outputfile
  reflate c/d -t75p  -s120 - -o - <stdin> <stdout>

  -t#: Number of threads to use
  -t#p: (default = 50) Percentage of threads to use
  -s#: Number of streams to store in memory to process. For games with big streams, use smaller values (e.g. 120)

Last edited by pakrat2k2; 02-06-2017 at 09:45.
Reply With Quote
The Following 2 Users Say Thank You to Simorq For This Useful Post:
houcine80 (01-06-2017), KaktoR (01-06-2017)
  #10  
Old 01-06-2017, 14:36
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
I think it's better to disable and remove refstd then
__________________
Haters gonna hate
Some guys are even more intrusive than vultures
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
houcine80 (01-06-2017)
  #11  
Old 06-06-2017, 15:43
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
Bug list updated.
__________________
Haters gonna hate
Some guys are even more intrusive than vultures
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
houcine80 (06-06-2017)
  #12  
Old 10-06-2017, 02:01
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 588
Thanks: 2,130
Thanked 1,769 Times in 439 Posts
mausschieber is on a distinguished road
After several test I give up, I can not find the error
Also is after installing the application the folder name 2 times in the registry
available.

Reply With Quote
  #13  
Old 10-06-2017, 07:23
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 6,237
Thanks: 2,456
Thanked 6,945 Times in 2,505 Posts
pakrat2k2 is on a distinguished road
^^ add to your post the setup folder, will take a look
Reply With Quote
  #14  
Old 10-06-2017, 07:40
KaktoR's Avatar
KaktoR KaktoR is offline
Registered User
 
Join Date: Jan 2012
Location: GER
Posts: 1,410
Thanks: 426
Thanked 2,048 Times in 721 Posts
KaktoR is on a distinguished road
Use && in Setup.ini. Thing is, install folder will using "&&" then (twice instead of a single "&").

Will look at script tomorrow if i can define a constant for the install path just for this type of games.

But if i remember right, it has been always like this, that if you using "&" in ApplicationName=, the "&" doesn't show. In those cases you have to use "and".

Edit:

For the registry...

You know why?

Because of this:

Code:
ValueData: {app}\Command & Conquer The First Decade\
{app} is already "Command & Conquer The First Decade".

{app} = C:\Command & Conquer The First Decade

If you using

{app}\Command & Conquer The First Decade = C:\Command & Conquer The First Decade\Command & Conquer The First Decade

So you can say...

{app} = Drive + ApplicationName


So if eg Generals is in
C:\Command & Conquer The First Decade\Command & Conquer The First Decade\Generals\*
then your way is correct.

If Generals is in
C:\Command & Conquer The First Decade\Generals
it has to be
{app}\Generals
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 10-06-2017 at 08:30.
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
mausschieber (10-06-2017), pakrat2k2 (10-06-2017)
  #15  
Old 10-06-2017, 11:31
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 588
Thanks: 2,130
Thanked 1,769 Times in 439 Posts
mausschieber is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Use && in Setup.ini. Thing is, install folder will using "&&" then (twice instead of a single "&").

Will look at script tomorrow if i can define a constant for the install path just for this type of games.

But if i remember right, it has been always like this, that if you using "&" in ApplicationName=, the "&" doesn't show. In those cases you have to use "and".

Edit:

For the registry...

You know why?

Because of this:

Code:
ValueData: {app}\Command & Conquer The First Decade\
{app} is already "Command & Conquer The First Decade".

{app} = C:\Command & Conquer The First Decade

If you using

{app}\Command & Conquer The First Decade = C:\Command & Conquer The First Decade\Command & Conquer The First Decade

So you can say...

{app} = Drive + ApplicationName


So if eg Generals is in
C:\Command & Conquer The First Decade\Command & Conquer The First Decade\Generals\*
then your way is correct.

If Generals is in
C:\Command & Conquer The First Decade\Generals
it has to be
{app}\Generals
now i solve the problem but for the special character i use this from LuisCésar82
now i need not use {code:GetAppName}
Code:
#sub DeleteRegistryValue
  #if Pos("Root:", FileLine) > 0 & Pos("SubKey:", FileLine) > 0
    #define FileLine StringChange(FileLine, ": ", ":")
    #define FileLine StringChange(FileLine, "; ", ";")
    #define FileLine StringChange(FileLine, """", "")
    #define FileLine StringChange(FileLine, "'", "''")
    #define RootKey Copy(FileLine, Pos("Root:",FileLine) + 5, Len(FileLine))
    #define RootKey Copy(RootKey, 0, Pos(";",RootKey)-1)
    #define SubKeyName Copy(FileLine, Pos("SubKey:",FileLine) + 7, Len(FileLine))
    #define SubKeyName Copy(SubKeyName, 0, Pos(";",SubKeyName)-1)
    #if Pos("ValueName:", FileLine) > 0
      #define ValueName Copy(FileLine, Pos("ValueName:",FileLine) + 10, Len(FileLine))
      #define ValueName Copy(ValueName, 0, Pos(";",ValueName)-1)
    #else
      #define ValueName ""
    #endif
    if not (not IsWin64 and (Pos('64', '{#RootKey}') > 0)) then begin
      RegDeleteValue({#RootKey}, '{#SubKeyName}', '{#ValueName}');
      CurrentRegKey := '{#SubKeyName}' + '\' + '{#ValueName}';
      repeat
        CurrentRegKey := ExtractFilePath(CurrentRegKey);
        SetLength(CurrentRegKey, Length(CurrentRegKey) - 1);
        RegDeleteKeyIfEmpty({#RootKey},CurrentRegKey);
      until RegKeyExists({#RootKey},CurrentRegKey);
    end;

  #endif
#endsub
Reply With Quote
The Following 2 Users Say Thank You to mausschieber For This Useful Post:
KaktoR (10-06-2017), sajmon83 (12-06-2017)
Reply

Thread Tools
Display Modes

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 - Questions Here REV0 Conversion Tutorials 1342 Today 11:14
Conversion Designer/Installer Creator Razor12911 Conversion Tutorials 1560 16-12-2017 09:54
Game Installer Designer by altef_4 altef_4 Conversion Tutorials 210 04-12-2017 14:40
yener90's Inno Project Source Codes yener90 Conversion Tutorials 1475 21-10-2014 10:50
yener90's older Inno Project Source Codes THADEADMAN2011 PC Games - CD/DVD Conversions 0 16-06-2012 04:40



All times are GMT -7. The time now is 12:01.


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