Results 1 to 10 of 10

Thread: Incorrect shortcuts created by 1.2 installer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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

  2. #2
    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



  3. #3
    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

  4. #4
    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.



  5. #5
    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

  6. #6
    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



  7. #7
    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