如何制作安装程序exe(框架+应用程序)

时间:2014-07-05 06:30:13

标签: installer

我是游戏开发者,我的游戏准备就绪,我有一个问题,我需要你的帮助。我的游戏使用相机蒸汽,它需要

    Intel Redistributable Libraries 2011 for C++
    Microsoft Visual C++ 2010 Redistributable
    Microsoft Visual C++ 2012 Redistributables
    .NET Framework 4.0

我想制作一个安装程序。我必须首先检查Windows是否有这个4,如果不是必须安装。在这4次安装之后,它必须安装我的游戏。我看了2-3个软件,但在那里我无法安装框架或Visual C ++ 2010 Redistributables。有人可以帮忙,写链接,想法或任何有用的信息。

我使用this软件,但它对我没有帮助。

2 个答案:

答案 0 :(得分:1)

您可以尝试使用Advanced Installer工具。我认为您需要的是在“文件和文件夹”页面中添加游戏安装文件,然后在prerequisites页面中将可再发行组件和.Net框架添加为Prerequisites。高级安装程序已经为Visual C ++ 2010和2012 Redistributable以及.NET 4预定义了先决条件,因此,您只需要在Prerequisites页面的预定义列表中选择它们。

答案 1 :(得分:0)

您可以对代码进行协调,并将其从批处理文件转换为exe。

@echo off
color f0
:: overwrite your program name after the '=' ::
set ProgramNameHere=ProgramNameHere
goto start
:start
cd/
cd users
cd %username%
cd desktop
md %ProgramNameHere%
:: overwrite your file path on the 'DATA' ::
:: overwrite your file name on the 'file1', 'file2'...
:: overwritw your file name after the 'extracting'.
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file1.txt
echo extracting file 1
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file2.txt
echo extracting file 2
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file3.txt
echo extracting file 3
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file4.txt
echo extracting file 4
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file5.txt
echo extracting file 5
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file6.txt
echo extracting file 6
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file7.txt
echo extracting file 7
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file8.txt
echo extracting file 8
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file9.txt
echo extracting file 9
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file10.txt
echo extracting file 10
ping localhost>nul
goto exit

:exit
exit

阿隆