|
#1
|
||||
|
||||
|
Problem with Registry in ciu 2035 or above
Im creating my own Assassin creed 3 v1.06 conversion, but i have this problem when add the registry.iss file.
|
| Sponsored Links |
|
#2
|
||||
|
||||
|
Yes, same error i have run into weeks above.
I don't have any solution for that. I have compared with AC Rogue registry.iss and the only difference is the game name. So it has something to do with the name of the game - strange. http://fileforums.com/showpost.php?p...postcount=1258
__________________
Haters gonna hate
Last edited by KaktoR; 30-05-2017 at 22:38. |
|
#3
|
|||
|
|||
|
Hi Mate
pull the reg keys and layout from this script i gave them to revo a long time ago. And those where working fine. http://fileforums.com/showthread.php?t=93761 |
|
#4
|
||||
|
||||
|
[Registry]
Root: HKLM; SubKey: SOFTWARE\Ubisoft\{code:GetAppName}\1.01; Flags: uninsdeletekeyifempty [CustomMessages] en.AppName=Assassin%1s Creed(R) III [Code] function GetAppName(Param: string): string; begin Result:=FmtMessage(ExpandConstant('{cm:AppName}'),[chr(39)]) ; end; Cheers
|
| The Following User Says Thank You to peterf1999 For This Useful Post: | ||
KaktoR (31-05-2017) | ||
|
#5
|
||||
|
||||
|
Have not tested yet, but this should work?
Code:
#define AC3Registry
...
#ifdef AC3Registry
function GetAppName(Param: string): string;
begin
Result:=FmtMessage(ExpandConstant('{cm:AppName}'),[chr(39)]) ;
end;
#else
function GetAppName(Default:String):String;
begin
if not (GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt')) = '') and (GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, '') = '') then
Result := GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt'))
else
Result:=GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, GetOrigAppName(''))
end;
#endif
And a question: Can i use #ifdef for this on [CustomMessages] too? If yes, it is neccessary at all? Edit: Ok, it seems to work. I have just switched #define to ON. But as i said, will test it with registry.iss on weekend. Edit 2: Here is the full code i am using for the fast test Code:
#define AC3Registry Code:
[CustomMessages] #ifdef AC3Registry eng.AppName=Assassin%1s Creed(R) III #endif Code:
#ifdef AC3Registry
function GetAppName(Param: string): string;
begin
Result:=FmtMessage(ExpandConstant('{cm:AppName}'),[chr(39)]) ;
end;
#else
function GetAppName(Default:String):String;
begin
if not (GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt')) = '') and (GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, '') = '') then
Result := GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt'))
else
Result:=GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, GetOrigAppName(''))
end;
#endif
__________________
Haters gonna hate
Last edited by KaktoR; 31-05-2017 at 00:55. |
|
#6
|
||||
|
||||
|
but the exactly problem is that i want use the 2040 version, so anyone have a language changer only for AC3 1.06
|
|
#7
|
||||
|
||||
|
It's not possible without the source code.
__________________
Haters gonna hate
|
|
#8
|
||||
|
||||
|
so how somebody knows how create a bat file to add the reg entries with the folder location, the system language, and the windows architecture without edit first the bat file?
|
|
#9
|
||||
|
||||
|
Error fix
Quote:
insert this line in script Code:
#define FileLine StringChange(FileLine, "'", "''") Code:
#sub DeleteRegistryValue
#if Pos("Root:",FileLine) > 0 & Pos("SubKey:",FileLine) > 0 & Pos("ValueName:",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))
To fix error undelet keys from registry replace original "sub DeleteRegistryValue" for this part in script 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
|
|
#10
|
|||
|
|||
|
If some knows how Yener/Bamse encrypted the 2040 script i am happy to help make the changes for those who have the 2040 beta 5 script.but i will not release the actually script.
but it need to be encrypted like the last release by Bamse. |
|
#11
|
||||
|
||||
|
Didn't BAMsE gave you the source compiler?
__________________
Haters gonna hate
|
|
#12
|
|||
|
|||
|
no he did not mate i just have the 2.0.4.0 beta5 iss file so i could add different compressions.i am not good with inno.so if someone can help make compiler and it must not be able to be unpacked with inno unpacker.
|
|
#13
|
||||
|
||||
|
I would say ask altef_4, i guess it's his source code (compiler) anyway.
And he is the only person around here i know of knowing such things about protection.
__________________
Haters gonna hate
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dvd playing problem... | themis_t | CD/DVD Software & Utilities | 6 | 20-10-2004 13:44 |
| Problem with Record Now Max ver 4.5 | brkr101 | PS2 Games | 2 | 22-04-2004 21:40 |
| problem with my xbox | mrlucky | XBox Games | 1 | 11-01-2004 08:38 |
| A problem about NFS Underground | Gilvin | PC Games | 1 | 22-11-2003 21:17 |
| Problem with pics on web pages and cookies | EVOEvo | CD/DVD-Writers | 3 | 05-10-2003 17:57 |