예제 #1
0
        public override void InstallGame()
        {
            ModuleInstallFinishedArgs.Module = EModule.Game;
            ModuleInstallFailedArgs.Module   = EModule.Game;

            try
            {
                //create the .install file to mark that an installation has begun
                //if it exists, do nothing.
                ConfigHandler.CreateInstallCookie();

                // Make sure the manifest is up to date
                RefreshGameManifest();

                // Download Game
                DownloadGame();

                // Verify Game
                VerifyGame();
            }
            catch (IOException ioex)
            {
                Console.WriteLine("IOException in InstallGame(): " + ioex.Message);
            }

            // OnModuleInstallationFinished and OnModuleInstallationFailed is in VerifyGame
            // in order to allow it to run as a standalone action, while still keeping this functional.

            // As a side effect, it is required that it is the last action to run in Install and Update,
            // which happens to coincide with the general design.
        }
예제 #2
0
        /// <summary>
        /// Installs the game.
        /// </summary>
        public virtual void InstallGame()
        {
            ModuleInstallFinishedArgs.Module = EModule.Game;
            ModuleInstallFailedArgs.Module   = EModule.Game;

            try
            {
                //create the .install file to mark that an installation has begun
                //if it exists, do nothing.
                ConfigHandler.CreateInstallCookie();

                // Download Game
                DownloadModule(EModule.Game);

                // Verify Game
                VerifyModule(EModule.Game);
            }
            catch (IOException ioex)
            {
                Log.Warn("Game installation failed (IOException): " + ioex.Message);
            }

            // OnModuleInstallationFinished and OnModuleInstallationFailed is in VerifyGame
            // in order to allow it to run as a standalone action, while still keeping this functional.

            // As a side effect, it is required that it is the last action to run in Install and Update,
            // which happens to coincide with the general design.
        }
예제 #3
0
        public override void InstallGame()
        {
            ModuleInstallFinishedArgs.Module = EModule.Game;
            ModuleInstallFailedArgs.Module   = EModule.Game;

            try
            {
                //create the .install file to mark that an installation has begun
                //if it exists, do nothing.
                ConfigHandler.CreateInstallCookie();

                // Make sure the manifest is up to date
                RefreshGameManifest();

                // Download Game
                DownloadGame();

                // Verify Game
                VerifyGame();
            }
            catch (IOException ioex)
            {
                Console.WriteLine("IOException in InstallGame(): " + ioex.Message);
                OnModuleInstallationFailed();
            }
        }