Results 1 to 10 of 10

Thread: Incorrect shortcuts created by 1.2 installer

  1. #1
    Crazy Russian Member iamphet's Avatar
    Join Date
    Oct 2006
    Location
    Москва
    Posts
    128

    Default Incorrect shortcuts created by 1.2 installer

    The installer creates shortcuts which do not work. I've decompiled installer and found that install scripts states
    Code:
    [Icons]
    Name: "{group}\Run Europa Barbarorum"; Filename: "{app}\RomeTW.exe -mod:eb -show_err"; WorkingDir: "{app}"; IconFilename: "{app}\ebicon.ico";
    Name: "{group}\Run Europa Barbarorum (troubleshooting)"; Filename: "{app}\RomeTW.exe -mod:eb -show_err -nm -ne"; WorkingDir: "{app}"; IconFilename: "{app}\ebicon.ico";
    while in fact it should be

    Code:
    [Icons]
    Name: "{group}\Run Europa Barbarorum"; Filename: "{app}\RomeTW.exe"; Parameters: "-mod:eb -show_err"; WorkingDir: "{app}"; IconFilename: "{app}\ebicon.ico";
    Name: "{group}\Run Europa Barbarorum (troubleshooting)"; Filename: "{app}\RomeTW.exe"; Parameters: "-mod:eb -show_err -nm -ne"; WorkingDir: "{app}"; IconFilename: "{app}\ebicon.ico";
    Does it mean nobody uses the shortcuts preferring EBTrivialScript'ed ones?

    Also I notices that in addition to "Validate Install" created by 1.1 the installer creates "Validate Installation" shortcuts which looks quite confusing for me.



  2. #2
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Incorrect shortcuts created by 1.2 installer

    That's weird, when I tested installing 1.1 and 1.2 I thought the 1.1 installer didn't create the shortcut for the validation. I guess that's the reason for Lemur having two such shortcuts though... Maybe I overwrote that one on an earlier test run before deleting it when I decided on another name for it.

    I guess the icons are created incorrectly (my first time, and no cuddle afterwards ), but how do the shortcuts turn out then? I really think the game ran with the shortcuts successfully after test installing 1.2...

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  3. #3
    Crazy Russian Member iamphet's Avatar
    Join Date
    Oct 2006
    Location
    Москва
    Posts
    128

    Default Re: Incorrect shortcuts created by 1.2 installer

    Maybe some versions if Windows know how to resolve those shortcuts or something like that. I'm pretty sure they didn't work on my PC



  4. #4
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Incorrect shortcuts created by 1.2 installer

    But how does the target string look? Does it include the "-mod:eb -show_err" switches?
    Last edited by bovi; 11-27-2008 at 14:49.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  5. #5
    Crazy Russian Member iamphet's Avatar
    Join Date
    Oct 2006
    Location
    Москва
    Posts
    128

    Default Re: Incorrect shortcuts created by 1.2 installer

    Verbatim, including quotes:
    Code:
    "d:\Games\Rome - Total War\RomeTW.exe -mod:eb -show_err"
    So Windows tries to find that strange file d:\Games\Rome - Total War\RomeTW.exe -mod:eb -show_err



  6. #6
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Incorrect shortcuts created by 1.2 installer

    But... Isn't that exactly right ?
    Last edited by bovi; 11-27-2008 at 15:51.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  7. #7
    Crazy Russian Member iamphet's Avatar
    Join Date
    Oct 2006
    Location
    Москва
    Posts
    128

    Default Re: Incorrect shortcuts created by 1.2 installer

    Of course, not. You can paste it into cmd.exe and see. Correct one would be "d:\Games\Rome - Total War\RomeTW.exe" -mod:eb -show_err
    BTW TrivialScript installer does that correctly:
    Code:
    [Icons]
    Name: "{app}\Examples\Foobar Control\FoobarControl"; Filename: "{app}\EBTrivialScript.exe"; Parameters: "-s foobar.xml"; WorkingDir: "{app}\Examples\Foobar Control\";
    Name: "{app}\Examples\Hello World\HelloWorld"; Filename: "{app}\EBTrivialScript.exe"; Parameters: "-s hello.xml"; WorkingDir: "{app}\Examples\Hello World\";
    Last edited by iamphet; 11-27-2008 at 16:01.



  8. #8
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Incorrect shortcuts created by 1.2 installer

    Yeah, I got home and checked. You're right of course (again)... I think I'll make an entry in the frequent issues about this. I could have sworn it worked earlier, but not now at least.
    Last edited by bovi; 11-27-2008 at 17:44.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  9. #9
    Crazy Russian Member iamphet's Avatar
    Join Date
    Oct 2006
    Location
    Москва
    Posts
    128

    Default Re: Incorrect shortcuts created by 1.2 installer

    Bovi, let me propose few tweaks for the installer which I used for some minor mod. Some of them are too late to implement for EB 1.x since no major updates are expected, but maybe you find them useful for EB2 ;)
    Code:
    [Setup]
    ; prevent confusing warning about existing directory
    DirExistsWarning=no
    EnableDirDoesntExistWarning=yes
    ; keep AppId the same for all installers 
    ; and they will select previous installation target dir by default
    AppId=Europa Barbarorum
    ; invoke code to guess install directory for users having only one installation
    DefaultDirName={code:DefDestDir}
    
    ...
    
    {Code}
    function DefDestDir(NoArg: String): String;
      var
        Path: String;
    begin
      if RegQueryStringValue(HKEY_LOCAL_MACHINE, 
        'SOFTWARE\The Creative Assembly\Rome - Total War - Gold Edition', 'InstallPath', Path) then
        Result := Path
      else if RegQueryStringValue(HKEY_LOCAL_MACHINE,
        'SOFTWARE\The Creative Assembly\Rome - Total War', 'InstallPath', Path) then
        Result := Path
      else
        Result := ExpandConstant('{pf}\Activision\Rome - Total War');
    end;
    
    // trying to be smart and warn users against selecting wrong directory
    function NextButtonClick(CurPageID: Integer): Boolean;
    begin
      if CurPageID = wpSelectDir then
        Result := (FileExists(RemoveBackslashUnlessRoot(WizardDirValue) + '\RomeTW.exe') or
          (MsgBox('The installer cannot find RomeTW.exe in the destination directory. Are you sure you want to use the selected directory?',
             mbConfirmation, MB_YESNO) = IDYES))
      else
        Result := True;
    end;
    Please replace curly braces around Code with square ones, the forum is too smart trying to find its tags



  10. #10
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Incorrect shortcuts created by 1.2 installer

    That's great. I've bookmarked the thread.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO