Quote:
u use two installers? one original and inno ?
and for uninstall u use original only ?
why u do this ?
|
I copied the script you posted here
http://fileforums.com/showpost.php?p=361849&postcount=4
which already had the original installers uninstall key plus the Inno Setup uninstall key. I decided to keep the original uninstall program and reg keys because some updates check these reg keys to verify if the game is installed. Since I don't know which keys the updates may check, I want to use all of the keys created by the original installer. The original DVD Menu also checks the uninstall keys created by the original installer to determine if the game is already installed or not. I haven't found how you make the installer get the previous install path from the registry except for the default option which is that it checks the uninstall key created by Inno.
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Brothers in Arms - Hell's Highway_is1]
"Inno Setup: App Path"="F:\\Games\\Brothers in Arms - Hell's Highway"
My solution is to just add this key to the installler but it will not be removed by the original biahh uninstaller which doesn't really matter. The other problem was that the Start Menu shortcuts created in Vista weren't removed by the uninstall. I think this was because the original installer didn't create shortcuts in Vista. I checked in XP and the shorcuts are removed. To fix this and keep this as close to the original setup, I added the OnlyBelowVersion: 0,6 option so the links aren't created in Vista. The link is still created in Games Explorer.
This is the code for the Star Menu links
Code:
[Icons]
Name: "{group}\Brothers in Arms - Hell's Highway"; Filename: "{app}\Binaries\biahh.exe"; WorkingDir: "{app}\"; IconFilename: "{app}\Binaries\biahh.exe"; OnlyBelowVersion: 0,6
Name: "{group}\Manual"; Filename: "{app}\Support\Manual\Manual.pdf"; WorkingDir: "{app}\"; IconFilename: "{app}\Support\Manual\Manual.pdf"; OnlyBelowVersion: 0,6
Name: "{group}\Readme"; Filename: "{app}\Support\Readme.txt"; WorkingDir: "{app}\"; IconFilename: "{app}\Support\Readme.txt"; OnlyBelowVersion: 0,6
Name: "{group}\Home Page"; Filename: "http://www.hellshighwaygame.com/"; WorkingDir: "{app}\"; IconFilename: "{app}\Binaries\uninst.exe"; OnlyBelowVersion: 0,6
Name: "{group}\{cm:UninstallProgram,Brothers in Arms - Hell's Highway}"; Filename: "{app}\Binaries\uninst.exe"; IconFilename: "{app}\Binaries\uninst.exe"; OnlyBelowVersion: 0,6
Saved games and configuration folder is in Documents\My Games\BIA Hells Highway
Quote:
uninsdeletekeyifempty
because it can be shared by other games
|
This entry
Root: HKCU; Subkey: "Software\UBISOFT\"; Flags: uninsdeletekey
was left from your script but I didn't originally change it since I'm not using the inno uninstaller, it won't be removed anyway. For clarity's sake, I did update the script to remove the flag
This setup installs and uninstalls correctly on Vista and XP. The only items left are the 2 reg keys. The key located at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\GameUX\Games\{6AD1A63B-AB60-439B-AD8E-F28CAE8C631D}
is also left by the original installer/uninstaller.
The key located at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\Brothers in Arms - Hell's Highway_is1
is the key I created so Inno Setup would find the previous install. It isn't uninstalled because it is not an item created by the original game install. This key won't harm anything if left, It will just cause the installer to display the path stored here as the install path.
I left the uninsdeletekey flags in case someone wanted to use this script and enable the Inno uninstaller. The flags do nothing when using the biahh uninstaller. If you do enable the Inno uninstall, you will end up with 2 unstall entries in Add/Remove programs. If you remove the original uninstall keys, then the DVD Menu and possibly future game updates won't work.