View Single Post
  #4  
Old 13-01-2013, 11:04
Fabioddq's Avatar
Fabioddq Fabioddq is offline
Die Hard Member
 
Join Date: Oct 2011
Location: Earth
Posts: 1,221
Thanks: 336
Thanked 2,147 Times in 427 Posts
Fabioddq is on a distinguished road
Quote:
Originally Posted by Ciapa View Post
Uninstall does not work properly instead of Hitman Absolution is Far Cry 3

Hitman Absolution (Multi8 + DLC's + Update - 4xDVD5) * CIU *
Based on that yener90 CIU 1.0.0.2, installation time ~ 2 hours
Hitman Absolution (Multi8 + DLC's + Update - 4xDVD5) * Inno Setup *
Based on CI 8.5.7.4 to yener90; installation time ~ 1 hour
From InstallerScript.iss delete this line:

#define ProductCode "{E3B9C5A9-BD7A-4B56-B754-FAEA7DD6FA88}"

and search for Far Cry 3 and put // in the front of:

Quote:
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'AuthorizedCDFPrefix', '');
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Comments', '');
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Contact', '');
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'DisplayIcon', ExpandConstant('{app}\bin\farcry3.ico,0'));
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'DisplayName', 'Far Cry 3');
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'DisplayVersion', '1.01');
//RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'EstimatedSize', 5969540);
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'GameLink', ExpandConstant('{app}\deadspace2.exe'));
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'HelpLink', '');
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'HelpTelephone', '');
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'InstallDate', DateString);
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'InstallLocation', ExpandConstant('{app}\'));
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'InstallSource', ExpandConstant('{src}\'));
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Language', 0);
//StrToInt(ExpandConstant('{cm:LanguageNR}')));
RegWriteExpandStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'ModifyPath', ExpandConstant('{uninstallexe}'));
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'NoModify', 1);
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'NoRepair', 1);
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Publisher', 'Ubisoft');
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'ProductGuid', ProductCode);
RegWriteExpandStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Readme', '');
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Size', '');
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'UninstallString', ExpandConstant('"{uninstallexe}"'));
RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'URLInfoAbout', 'http://support.ubi.com');
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'URLUpdateInfo', '');
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'Version', 16777216);
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'VersionMajor', 1);
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'VersionMinor', 0);
//RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'WindowsInstaller', 0);
//RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ProductCode, 'WorkingDirectory', ExpandConstant('{app}\'));
//Additional
//RegWriteStringValue(HKLM, 'SOFTWARE\BioWare\Dragon Age 2', 'GUID', ProductCode);
Make changes and Compile again.
Reply With Quote
The Following User Says Thank You to Fabioddq For This Useful Post:
Demonn (13-01-2013)