Flightdeck Solutions Forum Index Flightdeck Solutions
The place to meet and talk with fellow builders
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Did You Know ? : Easy Updates using the Startup.exe tool

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Flightdeck Solutions Forum Index -> FAQ
View previous topic :: View next topic  
Author Message
MarkHastings



Joined: 18 Jan 2006
Posts: 666
Location: UK

PostPosted: Tue Jan 10, 2012 11:16 am    Post subject: Did You Know ? : Easy Updates using the Startup.exe tool Reply with quote

Even though we're now able to run virtually the whole sim on a single computer, for various reasons most setups still consist of two or more PC's.
For this reason I wrote a little app to help keep all of the files up to date.

The idea is:
You need to designate one of your computers as the controlling PC, it doesn't have to be the Sim-A Server computer and it doesn't actually even need to be part of your sim... as long as it is accessible on the network by the sim computers.

A new Sim-A update is published.
You download and Install this update on you main "Control" PC.
So now the Control PC contains the latest updates.

You then start the other sim computers.
As windows starts on each of the other computers the STARTUP.exe is executed - because it has been placed in the Windows Startup Folder.

The STARTUP.exe checks on the Control computer for any updates and copied the newer files across.
It then executes the files.

So the Update process consists of:
1) Running the installer on the Control PC.
2) Starting the other Computers.

Configuring the STARTUP.exe

First you must Share the Sim-Avionics folder on the "Control" PC and ensure that the client computers have access to this folder.

When you first run the STARTUP.exe no STARTUP.INI exists, so you are presented with a setup box.
Using the "FIND" buttons you need to select the main .EXE file that you want it to check. This would be one of the programs in the Sim-Avionics folder on the "Control" computer. usually something like \Sim-Avionics\Avionics.exe.
You also need to select the TCP_Client.exe from the \Sim-Avionics\TCP_Client folder.

Select the "Add a shortcut to the PC Startup Folder" Checkbox.

Press OK

Important
On each of the client PC's you must delete \Sim-Avionics\TCP_Client\AVIONICS_IP.dll
(This is because we want the computers to use the latest dll in the system32 folder.)


This will create a STARTUP.INI which will look something like this:
    [STARTUP]
    DELAY=0
    VERSION_CHECK=0

    [SOURCE]
    1=\\CONTROL-PC\Sim-Avionics\Avionics\Avionics.exe

    [DESTINATION]
    1=

    [EXECUTE]
    1=C:\Sim-Avionics\Avionics\Avionics.exe


DELAY = a Delay in Seconds before the check and file copy starts
VERSION_CHECK = Should File Dates be checked ?
0 = NO - Always copy files. Useful for Rolling back.
1 = YES - Only copy newer files.

[SOURCE]
1=Add the Source file location here
2=Add additional files here
3=Add additional files here
....

[DESTINATION]
1=This is the file destination. If it's left BLANK then it will be copied into the STARTUP.EXE folder.
2=
3=

[EXECUTE]
1=Execute this file after updating
2=Add additional files here
3=Add additional files here
_________________
Mark Hastings
Software Developer
Sim-Avionics
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Flightdeck Solutions Forum Index -> FAQ All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group