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

Reply
 
Thread Tools Display Modes
  #1  
Old 27-05-2017, 05:05
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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 13:
-Added XTool (thanks to Razor12911)
-Re-added DLZ
-Added option for animated backgrounds to Setup.ini
  > You can find it in [InterfaceSettings]
-Added option for 64-Bit OS to Setup.ini
  > You can find it in [InstallOptions]
-Added TASKKILL for AFR and XTool
-Corrected a bunch of wrong orders and duplicates in Setup.ini
-Removed a bunch of debug/not needed stuff from script
-Fixed button sound bug (thanks to LuisCésar82)

Update 12:
-Added background animations (thanks to Razor12911)
-Added better MPZ files (?)

Update 11:
-Added compatibility with UDiskSpanR2 by Razor12911 (Alpha)
  > Whenever you share Setup.exe with DiskSpan, share Records.ini too!
-Added Password to Records.ini
-External Compressor updated
-CLS.ini updated
-TASKKILL optimization for pZLib
-Reduce False Positives

Update 10:
-Added compatibility with UWP games 
  > (leave [Executable#] blank in Setup.ini if you make UWP conversions)
  > Default install dir is now on (SystemDrive)\Users\(UserName)\UniversalApps\(ApplicationName)
-Fixed cls for bink unpack 
  > should be packed with [ExtComp:bpk]
-Added MPZ Slimmer
-Seperated lolz (x64, x86)
-Fixed pOodle decompression 
  > (fixed large and lower case (it is important for arc.ini) + added missing dll files) 
  > should be packed with [ExtComp:pOodle]
-Updated RAZOR to v1.03.6

-Hotfix 1: Fixed DirEdit when you leave mouse cursor (it stays now on "input")
-Hotfix 1: Fixed desktop shortcut creation for UWP games (use [Executable#] in Setup.ini, point to "UniUWP_Launcher V2.exe")
-Hotfix 1: Changed behavior for copying UWP executables for registration, uninstallation and launching

Update 9:
-Added AFR Alpha 7 + stdIO patch (Edison007, Razor12911)
-Added file checks for skin files. If no skin is included, skin dll files will be not included in Setup (saving some MB)
-Fixed ProgressBar, if Height is set to 0, is empty or disabled, 16 will be used instead (thanks to Altef_4)

-Hotfix 1: Fixed vsf/cjstyles skin if one of them are not present in Setup folder (compile error)
-Hotfix 2: Fixed arc.ini (sorry)

Update 8:
-Added Precomp, BinkPack, DLZ, lolz, OGGRE, pOodle, UELR, RAZOR
-Added some INI's

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


How to use CIU with UltraARC?
As always

How to use CIU with DiskSpan?
Compile Setup.exe, share Setup.exe + Records.ini (probably you must changed archive name inside Records.ini) alongside with diskspan compressor (use the one from Razor12911 or UCC from VollachR).

What are the differences between UltraARC and DiskSpan?
UltraARC will create splitted archives, which will be merged on installation before data file unpacking starts. DiskSpan creates splitted archives too, but no need to merge them (similar as rar/7z splitted archives), means less I/O.
UltraARC supports Masked data compression, while DiskSpan does not.
Attached Files
File Type: 7z CIUv2 v2.0.3.9 U13 (2018-04-19).7z (21.33 MB, 55 views)
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 19-04-2018 at 06:03.
Reply With Quote
The Following 31 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), mamamiaf (21-03-2018), mausschieber (28-05-2017), MOSTAPHA_VIP (05-03-2018), nemesis8 (17-11-2017), omdj (27-05-2017), pakrat2k2 (27-05-2017), rambohazard (27-03-2018), Razor12911 (30-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, 05:11
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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 13: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, 13:20
Th3Raven's Avatar
Th3Raven Th3Raven is offline
Registered User
 
Join Date: Mar 2012
Location: Romania
Posts: 86
Thanks: 53
Thanked 49 Times in 32 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, 06:07
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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 06: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, 07:29
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 Posts
KaktoR is on a distinguished road
Bug List:

...
__________________
Haters gonna hate
Some guys are even more intrusive than vultures

Last edited by KaktoR; 15-04-2018 at 05:20.
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, 13:42
LuisCésar82 LuisCésar82 is offline
Registered User
 
Join Date: May 2011
Location: cesar.zanetti.82********com
Posts: 130
Thanks: 60
Thanked 141 Times in 34 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, 13:53
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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 16:35.
Reply With Quote
  #8  
Old 31-05-2017, 20:44
LuisCésar82 LuisCésar82 is offline
Registered User
 
Join Date: May 2011
Location: cesar.zanetti.82********com
Posts: 130
Thanks: 60
Thanked 141 Times in 34 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, 12:42
Simorq's Avatar
Simorq Simorq is offline
Registered User
 
Join Date: Mar 2014
Location: Iran
Posts: 366
Thanks: 2,689
Thanked 576 Times in 217 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 08: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, 13:36
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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, 14:43
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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, 01:01
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 662
Thanks: 2,264
Thanked 1,960 Times in 496 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, 06:23
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 6,377
Thanks: 2,521
Thanked 7,161 Times in 2,591 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, 06:40
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: GER
Posts: 1,584
Thanks: 460
Thanked 2,282 Times in 819 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 07: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, 10:31
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 662
Thanks: 2,264
Thanked 1,960 Times in 496 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
Conversion Designer/Installer Creator Razor12911 Conversion Tutorials 1579 14-04-2018 11:56
INNO TROUBLESHOOT - Questions Here REV0 Conversion Tutorials 1343 23-02-2018 10:51
Game Installer Designer by altef_4 altef_4 Conversion Tutorials 210 04-12-2017 13:40
yener90's Inno Project Source Codes yener90 Conversion Tutorials 1475 21-10-2014 09:50
yener90's older Inno Project Source Codes THADEADMAN2011 PC Games - CD/DVD Conversions 0 16-06-2012 03:40



All times are GMT -7. The time now is 04:54.


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