Named Game of the Year by over 50 publications, Valve's d├ębut title blends action and adventure with award-winning technology to create a frighteningly realistic world where players must think to survive. Also includes an exciting multiplayer mode that allows you to play against friends and enemies around the world.

Post tutorial Report RSS How to make Windwos installer for your mod automatically determines Steam folder

When you make a Half-Life mod you have to do the setup file for that would be comfortable future players to download and install it. Of course you can just pack it in the archives, but it is not convenient for the player. In this tutorial I'll show you how to quickly and easily do the installation file for your mod using Open Source software Inno Setup. So we begin. - Download Inno Setup (isetup-5.5.6.exe) - install Inno Setup to your PC. - run Inno Setup Compiler. 1. You'll see a dialog box. S

Posted by on - Basic Installers

When you make a Half-Life mod you have to do the setup file for that would be comfortable future players to download and install it. Of course you can just pack it in the archives, but it is not convenient for the player. In this tutorial I'll show you how to quickly and easily do the installation file for your mod using Open Source software Inno Setup. So we begin.
1. Download Inno Setup (isetup-5.5.6.exe)
- install Inno Setup to your PC.
- run Inno Setup Compiler.
2. You'll see a dialog box.
-select the item: Create scritp file using the Script Wizard
-press button OK,
-press Next button.
3. Application Information
-required. Application name: type the name of your mod
-required. You'll see a dialog box version: type version of your mod
-not required. Application publisher: enter the name of developers team.
-not required. Application website: write the page address of your mod.
- press button Next.
4. Application Folder
-Application destination base folder: Program Files folder
-Application folder name: My Program
-Allow user to change the application foldier
-The application doesn't need a foldier
-Nothing changes, just click the button next
5. Application Files
Application main executable files:
The folder in which the installation file is saved.
Tick the checkbox: The application doesn't have executable file
-press button: Add folder,
-select the path to the folder mode,
-press button OK,
-in the dialog box "Confirm" press button Yes.
-press button Next.
6. You'll see a dialog box: Application Icons
Application Star Menu foldier name: Enter the name of the mod
-The rest of the mark checkboxes as necessary,
-press button Next
7. Application Documentation:
-license file: enter the path to the file if necessary
-Information file shown before installation: enter the path to the file if necessary
-Information file shown after installation: enter the path to the file if necessary
-press button Next
8. Setup Launguages
-press button Next
9. Compiler Settings
-Custom comliper output folder: remain unchanged
-Compiler output base file name: type the name of the installation file.
-Custom Setting icon file: remain unchanged
-Setup password remain unchanged
-press button Next
10. Inno setup Preprocessor
-press button Next
11. Reporting successfully create an installation file.
-press button Next
12. Inno setup comiler
Would you like to compile the new script now?
- press button No.
13. We see the script - in fact a text file.
-go into the Setup section
-find the line: DefaultDirName={code:GetDefaultDir}
-replaced by DefaultDirName={code:GetDefaultDir}
-go into the Run section
-back down the line
-Insert the code

[code]
function GetDefaultDir(def: string): string;
var
sTemp : string;
begin
 sTemp := 'C:\Games\Half-Life';
 if RegQueryStringValue( HKEY_CURRENT_USER, 'Software\Valve\Steam', 'ModInstallPath', sTemp ) then
 begin
 end;
 Result := sTemp;
end;

-Save the script
-Press F9 button
-voilà installer ready.














Comments
Admer456
Admer456

Finally, now i can make a separate installer for my mod! Thanks!

Reply Good karma Bad karma+1 vote
KenWayneKazama
KenWayneKazama

Great tutorial!

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Half-Life
Platforms
Windows, Mac, Linux, PS2
Developer
Valve
Engine
GoldSource
Contact
Send Message
Release date
Game watch
Follow
Purchase
Tutorial
Browse
Tutorials
Report
Report
Share
Related Games
Half-Life
Half-Life First Person Shooter
Related Engines
GoldSource
GoldSource Commercial
Related Groups
Sierra Entertainment
Sierra Entertainment Developer & Publisher
Valve
Valve Developer & Publisher