Quote:
Originally Posted by Cesar82
Try like this:
Open the script and locate the lines mentioned below.
Locate these lines and place // at the beginning of the lines (in all lines).
Code:
UninstallFile := GetUninstallFile('');
if DirExists(ExtractFilePath(UninstallFile)) or ForceDirectories(ExtractFilePath(UninstallFile)) then
begin
ShellExecute(0, '', AddQuotes(ExpandConstant('{cmd}')), AddQuotes('/C COPY /Y "' + ExpandConstant('{srcexe}') + '" "' + UninstallFile + '"'), '', SW_HIDE);
if (GetIniString('Registry' + IntToStr(1), 'ROOT', '', ExpandConstant('{tmp}\ExtSetup.ini')) <> '') and (GetIniString('Registry' + IntToStr(1), 'SubKey', '', ExpandConstant('{tmp}\ExtSetup.ini')) <> '') then
FileCopy(ExpandConstant('{tmp}\ExtSetup.ini'), ExtractFilePath(UninstallFile) + 'Uninstall.dat', False);
end;
Just below also put // on these lines (in all lines).
Code:
#if !defined(CREATOR)
AddRegistryInfo;
#endif
This way you will not have the uninstallation files in the game folder, nor will the registry keys for uninstallation be created.
|
Thank you, in the setup.ini there is no command to simply put yes or no without having to touch the script?
I also put this to install or not the DLC but it does not work for me when I check DLC, it does not install it for me
ArcFile2=Setup1DLC.cab;DestDir:{app}\SteamApps\com mon\Total War WARHAMMER;Type:ARC;Disk:1;Component2;
[Component1]
------------------------------------------------------------------------------------------------------------------------------------------------------
Name=Main Game
//Size=34000
Size=34.8 GB
FirstBGImage=1
ShowInstallLabel=0
Checked=1
Enabled=1
[Component2]
------------------------------------------------------------------------------------------------------------------------------------------------------
Name=DLC
Size=105
FirstBGImage=4
ShowInstallLabel=0
Checked=0