Setup opens on first run

Started by Hece, Fri 22/02/2013 08:53:45

Previous topic - Next topic

Hece

I didn't know where I should have put this topic, since this isn't actually related to AGS Engine or editor.

So I made a launcher that starts setup on first time when you start the game, and next time it starts the game.
This only works on windows computers and uses Batch code so you won't be needing any programs for this.
I hope you like it.

Game in the AGS folder is Gray, NOT MADE BY ME I'm just translating it. But neat game try it Here

It is pretty simple and easy-to-use.
Instructions:

(1)Open notepad, and paste following code:

Code: AGS
@echo off
if exist rsf.f goto A
hello>>rsf.f
start winsetup.exe
exit

:A
start game.exe
exit


Code eplained:


Change game.exe as your own game's .exe name
(And that rsf.f -file is what I made up it doesn't really mean anything)

Then click "Save as"  type name Start.bat
.bat is really important here



Now you need to create shortcut.



Now let's go to the shortcut's properties:



You need to set "run" propertie as "minimized" or the Batch file will pop on screen
Also you need to change your game icon. And then rename it as your game.

You are ready
Make your installer put this launcher shortcut into the desktop.
DO NOT MOVE START.BAT ITSELF KEEP IT IN YOUR GAME FOLDER
Now if you try it out, it makes rsf.f -file in the game folder DELETE RSF.F BEFORE ZIPPING THE GAME

If this doesn't work, contact me!

Errorlog and fixes:
..will be put here

And don't forget to comment!!

SMF spam blocked by CleanTalk