如何为游戏等制作自定义安装程序

如何为游戏等制作自定义安装程序

本文介绍了如何为游戏等制作自定义安装程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何创建自定义安装程序来安装"游戏.我说的是自定义含义,我不希望用户选择安装游戏的位置.我希望它是一个简单的过程,也许只有一个加载栏.

Can anyone tell me how to create a custom installer to 'install' games. I say custom meaning I don't want the user to have the option where the game is installed. I want it to be a straight forward process, maybe with just one loading bar.

我正在开发的程序是游戏的中心",其中包括社区和其他功能,例如记录游戏进行了多长时间的计时器.我只是认为,使用一个简单的安装程序将每个游戏安装在一个地方将使该程序更易于使用.这也将使我能够执行其他功能,因为所有游戏都将安装在一个地方.用户无需指定游戏的安装位置.
这可能吗?

The program I'm developing is a 'center' for game playing, which includes a community and other features, such as a timer that records how long a game is played for. I just thought that installing each game in one place, with a simple installer would make the program easier to use. It also will allow me to do other features as the games will all be installed in one place. No need for the user to specify where the game is installed.
Would this be possible?

推荐答案

我假设您的游戏是用C#开发的,而不是要求安装程序是用C#编写的?

I'm presuming your game is developed in C#, rather than requiring the installer be written in C#?

在这种情况下,安装程序包可以使用很多选项. Nullsoft安装系统可能是最可定制的选项,尽管它仍然是免费的.安装程序是围绕一些基本的脚本编写活动构建的,并且可以根据您的需要进行简单或复杂的安装-安装,并且Wiki包含大量示例脚本,您可以进行探索和试验.

If that's the case, there are plenty of options available to you for installer packages. Probably the most customisable option, whilst still being free, is Nullsoft Install System. The installers are built around some basic scripting activities, and can be as simple or complex as you desire - the installation, and the wiki have plenty of example scripts that you can explore and experiment with.

OT:安装位置
就个人而言,我认为禁止用户选择自己的安装位置是一种不好的做法,实际上,当除系统文件安装(例如驱动程序)之外的任何其他操作都阻止我选择目录时,这让我感到非常沮丧.许多用户会选择在非默认设备上定位某些类型的安装和数据(例如,实际上我的所有游戏都存放在与我的主要Windows安装位置不同的驱动器上).如果您需要非常记住安装位置,请为其创建一个注册表项.

OT: Install Location
Personally, I'd consider it bad practice to disallow the user from selecting their own install location and, in fact, it gets me pretty frustrated when anything but system-file installations (e.g. drivers) stop me from choosing a directory. Many users will choose to locate certain types of installation and data on a non-default device (e.g. virtually all of my games are housed on a separate drive to my main Windows installation). If you need to remember the installation location so badly, create a registry key for it.

这篇关于如何为游戏等制作自定义安装程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 11:32