Reputation: 21241
I have built a bowling game in Glut C++ and have my .exe file.
Now I want to create an installer for this game.
What I want to do that:-
When my installer runs, glut32.dll is pasted inside system32 folder and the .exe file of my game is on desktop or wherever.
How can I do this. Iexpress won't be able to do this I guess.
Note:- glut32.dll must be there in system32 folder to run this game.
Upvotes: 3
Views: 2310
Reputation: 1114
I would look into NSIS (Nullsoft Scriptable Install System)
Start by looking at the Simple Tutorials: http://nsis.sourceforge.net/Simple_tutorials
They will show you how to simply copy a few files to a user's computer. Something like this:
# define the name of the installer
outfile "game_installer.exe"
# define the directory to install to
installDir $DESKTOP
# default section
section install
# define the output path for this file
setOutPath C:\Windows\System32
# define what to install and place it in the output path
File glut32.dll
# define the output path for this file
setOutPath $INSTDIR
# define what to install and place it in the output path
File bowling_game.exe
sectionEnd
Note: Bartek Banachewicz and others are correct. You really shouldn't put non-system .dlls in a directory with all of your important system .dlls. The world isn't going to end because of it, but it isn't the best practice. Maybe you can work with NSIS to develop an installer that does what you want. Then I would recommend that you install the OpenGL/GLUT libraries/headers in a more appropriate location.
Upvotes: 2
Reputation: 39370
Wrong. glut32.dll
DOES NOT have to be in system32
. It just has to be next to the .exe
file. (Or somewhere in system PATH
).
You should be able to create an installer that will unzip your files using InstallShield or similar wizard within your IDE.
Upvotes: 6