Jump to content
  • entries
    945
  • comments
    5,899
  • views
    930,148

What light through yonder Windows breaks?


Josh

6,701 views

 Share

This is the final output of Leadwerks 3 on Windows.

 

When you choose "Windows" in the Publish dialog, a few options appear. Press OK and your game's installer is created.

blogentry-1-0-47414100-1354866407_thumb.png

 

The installer looks like this. You can replace the installer images with your own if you like:

blogentry-1-0-46772000-1354866309_thumb.png

blogentry-1-0-66832300-1354866316_thumb.png

blogentry-1-0-97009800-1354866321_thumb.png

  • Upvote 2
 Share

27 Comments


Recommended Comments



Is it possible to have 7-Zip LZMA2 Ultra compression for the files in the installer? Maybe in the settings somewhere a command line where you can enter whatever packer command line you want?

Link to comment

This is obviously for down the line but I think it's worth considering how patch/expansion/add-on/DLC installations would work. The installer would need to automatically know where the original was installed (registry entry?) and install there without prompting for a folder. It would also need to overwrite files with no prompts.

Link to comment

I'm guessing each OS has several ways of handling it. I don't have a preference. Curious how most games do it (I don't think it's INI files in the Windows folder though).

Link to comment

On Mac, we will just create a DMG file, which gets dragged and dropped onto the Applications folder. The fancier way is to distribute through the Mac App Store. On Windows, Steam has an updating system that can handle all that. However, it would be a good idea to add a registry entry for the installation path, for future expansion. It would be something like "HKEY_LOCAL_MACHINE\SOFTWARE\$COMPANY_NAME\$PROJECT_NAME" with the $tags replaced with the project values, obviously. This would be a string set to the install path, like "C:\Program Files\Doom 5".

Link to comment

Make it anyway you like Josh, as long as it works. Which method you ever choose, there will always bee someone questioning it .)

Link to comment

I thought Mika was actually saying something relevant. Was that just a chance to talk about .ini files? What does that even have to do with an installer?

Link to comment

Some installers create registry settings, but it's not necessary as you only need to create a desktop icon (if even that), and a start menu/programs folder/item, and a .ini file to store the settings of the app.

Link to comment

The point of entering data in the registry is so that other programs can read it and see where the program is installed. Unless there is some central location for .ini files, you're just talking about parsing text files, for reasons I can't grasp.

Link to comment

The article gamecreator posted describes quite well what the benefits of both approaches are, especially the user comments. I often rearrange harddisks and computers, so for me mobility of programs is most important, because I don't want to reinstall each application each time I move them around, usually even losing data and settings by the uninstall/reinstall. Also the fact that .ini files work on each OS, is a huge benefit when targeting multiple OS in everyting you do.

Link to comment

There was a time a few years back that the Windows registry was getting so bloated that even Microsoft were starting suggest developers might look at using a revolutionary new mechanism called INI files (you have to laugh don't you). However, the Windows Registry is still the recommended solution for application configuration and installation data.

 

People are free to circumvent that if they so desire!

Link to comment

Can anyone tell me whether there is a central location for INI files? The whole point of this discussion is for a program to find and open some data without knowing the installation path of the program that saved that data.

Link to comment

That's what the user's home folder is used for. Many programs save their settings in the %userprofile% directory. You can see there directories which start with a ".", like .gimp, .git, .bash, etc... (yes, on Windows 7, although this is Linux/Unix standard).

Link to comment

Ah, yes, Users/Josh/AppData/Local.

 

Question: If it's a personal computer why does it use multiple accounts? That's the first thing I would get rid of if I were in charge of Windows. X|

 

So the AppData/Local folder is found by querying for CSIDL_LOCAL_APPDATA.

 

It's very strange that I can just randomly create directories here and delete files. So the program still has full access to screw up all the settings of other programs...Wow, great security, MS.

Link to comment

The program should look first in it's own directory for the .ini files, then in the %userprofile%, and then maybe even in %allusersprofile%, then in %windir%, if it's still not found, then it should start up with it's default settings and create a new .ini file in the folder it asks from the user (program's directory, user directory, all users, windir).

Link to comment

That's great.

(Perhaps we will have it for Christmas smile.png ?)

Probably not. That doesn't leave enough time for testing.

Link to comment

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...