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: "compiler
efault.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