View Full Version : *.ini file or something for girder configuration
djcarl
October 23rd, 2004, 01:56 PM
Is there a seperate file or something that remembers the setting?
If you have different remotes and want to switch between them is there a configuration file that can be loaded (or is this something in Ver-4).
I need a way to install girder on a computer and then some method of installing the configuration with all the plugin's (configured), remote configured, autoloaded GML file, ect to make installation for the enduser easier. The only thing the enduser has to do is select the COM port the remote is on to get is all working.
How is this possible?
Promixis
October 23rd, 2004, 02:25 PM
Done via registry settings.
We use INNO as our installer and you can have a look at an installer script to see how to enable programs/plugins etc.
Treetop
October 23rd, 2004, 02:26 PM
If you figure this out, please post it... great idea :)
This would be very helpful for trading .gml files. Instead of telling people, you will need this plug-in, and this one too, and this file in the main girder directory, and this file over here.... Just click on the button and you're all set!
Promixis
October 23rd, 2004, 02:47 PM
Here is the inno code to the lua systems function plugin.
[code]; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=Girder Lua System Functions Plugin
AppVerName=Lua System Function 1.5.0.0.
AppPublisher=Promixis
AppPublisherURL=http://www.promixis.com
AppSupportURL=http://www.promixis.com
AppUpdatesURL=http://www.promixis.com
DefaultDirName={code:GetGirderDir}
DisableDirPage=yes
DisableProgramGroupPage=yes
LicenseFile=Z:\Development\Inno Installation\Common Files\Girder Plugin End User License Agreement.rtf
InfoBeforeFile=Z:\Development\Inno Installation\LSysFunc\Lua System Functions Intro.rtf
Compression=lzma
SolidCompression=yes
[Files]
Source: Lua System Functions.pdf; DestDir: {app}\help; Flags: ignoreversion
Source: Z:\Development\Inno Installation\LSysFunc\Lua System Functions Examples.GML; DestDir: {app}; Flags: ignoreversion
Source: Z:\Development\Inno Installation\LSysFunc\LSysFunc Constants.lua; DestDir: {app}; Flags: ignoreversion
Source: LSysFunc.dll; DestDir: {app}\plugins; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[code]
function GetGirderDir(Default: String): String;
var
s : string;
begin
if ( RegQueryStringValue(HKEY_LOCAL_MACHINE,'SOFTWARE\g irder3','Executable',s) = TRUE ) then
begin
Result := ExtractFileDir(s)+'\';
end
else
begin
Result:='c:\program files\girder';
end;
end;
[Run]
Filename: {app}\help\Lua System Functions.pdf; Description: Plugin Documentation; Flags: nowait postinstall skipifsilent shellexec
Filename: {app}\girder.exe; Parameters: lua system funtions.gml; Description: Girder Example; Flags: nowait postinstall skipifsilent
[Registry]
Root: HKLM; Subkey: software\girder3\plugins; ValueType: dword; ValueName: 155; ValueData: 1[/code]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.