Product Chat / Windows / INNO Setup installer: (Scripts - Direct X9c silent install) or (How to distribute your game with an installer that sets up DirectX9c support files - "Automatically".)

Author
Message
game_scout1
7
Years of Service
User Offline
Joined: 14th Nov 2016
Location:
Posted: 14th Nov 2016 23:12
Hello,

I am new here so I don't know if this was covered. I searched and found nothing....This is becoming a must!!!

I have been trying to figure out how to create an install file for finished GG games that "silently" installs DirectX9c into a system like Windows 10.
It's not very practical to give a created game out to someone and have them complain it's not working even when you include DirectX9c support files and clearly tell someone to manually install them. Especially, when they think Windows 10 is backward compatible and SHOULD support versions of DirectX9c and on. They often think you are "breaking" more up to date DirecX installs when you are not.

I have been looking at INNO and NSIS. (Free) There are no CLEAR instructions to create Direct X9C silent install + GG Standalone Install file on the net so I am asking if anyone here knows how to do this. I am suggesting INNO software only because the default wizard/script seems to make an installer/uninstaller quickly. Just some more code for the DirectX9C support (DXSETUP.EXE) which I am not clear on.

If you understand how to get this install SCRIPT done, please post/upload a working script sample here or make a link.

For argument purposes here: Let Us say the game is in folder: GAME_GG and the support file folder is: DIRECTX9C/DXSETUP.exe

The installer will go into PROGRAMS directory and make a desktop shortcut.

THANKS
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 15th Nov 2016 00:06 Edited at: 15th Nov 2016 00:08
Clickteam Install Creator allows you to do this .... Amazing tool for packing GG games with a custom installer

The only person ever to get all his work done by "Friday" was Robinson Crusoe..

Attachments

Login to view attachments
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 15th Nov 2016 00:59
I'm probably wrong here, I've never released a GG game on Steam. Is this not catered for by Steam already? Fair enough, if you just want a decent install for a game you give away/test or release on another store this would be really useful. I'd be interested in anyone's comments who have released a Steam game in this regard


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 15th Nov 2016 01:09
Quote: "I'm probably wrong here, I've never released a GG game on Steam. Is this not catered for by Steam already?"


Your probably right if you release via steam ....
But I guess if you gave your game or sold from your own site to to someone with a pretty standard windows install then it would be handy ...
Worst case scenario ... I find it tells you if its already installed ...

I know for sure GG games wont work on a bog standard Windows 7 install ....
It fails at the first D3D.DLL or something like that..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
game_scout1
7
Years of Service
User Offline
Joined: 14th Nov 2016
Location:
Posted: 15th Nov 2016 16:23
I looked at "install Creator" and the free version has: "linking back to Clickteam to spread the word about Install Creator."

I don't find this particularly appealing or the PAYED Version. The problem of Direct X 9C "silent" install AGAIN would come down to scripting.

I have researched Install programs and INNO would be the best or NSIS Script Clean Free. NSIS has an option for CUSTOM GUI - (GRAPHICAL INSTALLER) paid 3rd party which allows the user to add custom graphics / buttons. Again the script for silent install is the problem.

Here is the basic wizard script for INNO if it helps. It creates a basic install of a GG Game into Programs/Start and desktop short cut. Uninstall too. The first script is just a text file of the generated code in INNO to look at. The second is the same script in INNO script file format .iss

Hope someone can narrow down/add the required code.

Thanks
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 15th Nov 2016 16:53
Quote: "I know for sure GG games wont work on a bog standard Windows 7 install"


Yes, seen the same here. Can be quite a pain getting it to run on older systems without DX9c and the correct .net framework installed.

I did agree it is useful for non Steam use of course. Just wondered about Steam.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
game_scout1
7
Years of Service
User Offline
Joined: 14th Nov 2016
Location:
Posted: 15th Nov 2016 18:17
Yes, I may want to distribute on CD possibly or on-line download other than Steam without errors/fails. (Now happening.) Everyone I know has moved to Windows 10 and I tried 4 computers all fail without DirecxX9C support files having to be manually installed.

If you look at your GG install folder C:\Program Files (x86)\Steam\steamapps\common\Game Guru\GameGuru.exe" in the "_CommonRedist" folder you will see that GG does indeed do a silent install of 1) DirectX9c and 2) vcredist_x86 /x64 Microsoft Visual C++ Redistributable Package in order to run the GG ENGINE.

All we need, I think - is the stand alone and the DirectX9c June2010 build in distributed build. (I don't think we need the Microsoft Visual C++ Redistributable Package I think..Am I wrong on this?)

I tried to upload the INNO generated file bellow, but it must not be allowed on the forum.

For practical purposes please stick with INNO. (I know there are other installers Paid/Free...Useless). ie "Silent Install Builder"

Again, let's please assume something like: The game is in folder: MYGAME/GAME_GG\My_Prog.EXE and the support file folder for "silent" install is: also in MyGAME/DIRECTX9C\DXSETUP.exe

INNO supports a cut and paste Window after the wizard install. There is also an "Examples" folder with code scripts. (This is true for NSIS also)

I guess you can paste a script here to try like I did so we all get the method to do this right.

-----------------------------------------------------------------------------------------------------
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "GG_Game"
#define MyAppVersion "1.0"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{5334C1AB-1EE4-4D7F-9707-F8AF646CD9D8}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=C:\Program Files (x86)\GAME_GG\license.txt
OutputDir=Desktop
OutputBaseFilename=GG_GAME_setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compilerefault.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Program Files (x86)\GG_Game\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 15th Nov 2016 18:19
Quote: "I looked at "install Creator" and the free version has: "linking back to Clickteam to spread the word about Install Creator." "


Ahh you missed the Humble bundle ....
I bought the click team complete collection for about $15 saving literally hundreds which included the full pro version
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Northern
13
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 15th Nov 2016 22:36
@game_scout1:

Hi,

Perhaps, the link below may help you in some manner.

http://www.msfn.org/board/topic/22895-direct90c-unattended/?do=findComment&comment=156438

Greetings,
Northern
PM

Login to post a reply

Server time is: 2024-10-31 23:55:26
Your offset time is: 2024-10-31 23:55:26