Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reinstall EXE on a Network setup
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00152817
Message ID:
00152829
Views:
19
>>I used VFP 6.0 Setup wizard to create a Network setup for me that our users can run from the network to load the application on their own PC. Now I have updated the exe and have run setup again to place the new version out on the network. I wish to inform the user that a new exe is available. I noticed that the setup program registered my application in the users Add/Remove program in the control panel and when they run that it comes up with a screen that will allow them to Add/Remove or Reinstall or Uninstall. I want this to be as easy as possible so I tried the reinstall and noticed that everything, but my exe was updated (my ini files and config.fpw files were updated). The reinstall seems to be what I would like to do but it does not refresh my exe with the new version. I know I can do an uninstall and have them to a install and that works, but that causes them to reboot and find the setup again on the network and run it again. Is there any better method of getting a new
>>version down to my pc users when I update the exe. Any suggestion would be appreciated.
>
>One common approach is to use a launcher application. A launcher is a fixed piece of code that starts up your app; it can, before starting your local copy of your executable, check the date/time stamp of your local copy of the application against the date/time stamp of an executable stored on the net; if the one on the net is more recent, it gets copied to the local machine and then launched. A simple example here - let's assume that the local copy that I want to fire at all times is stored in the CWD that my app launcher starts from and is called MYAPP.EXE, and that the most recent released copy of the executable is always available on the net at \\MyServer\MyAppDist\MYAPP.EXE; you could in your launcher do the following:
>
>
>* some code probably precedes this
>LOCAL aMyLocalCopy[1,5], aTheNetCopy[1,5]
>IF FILE('.\MyApp.EXE')
>   * I have a copy, check if it's the most recent one
>   =ADIR(aMyLocalCopy,'.\MyApp.EXE')
>   =ADIR(aTheNetCopy,'\\MyServer\MyAppDist\MyApp.EXE')
>   IF DTOS(aTheNetCopy[1,3])+aTheNetCopy[1,4] > DTOS(aMyLocalCopy[1,3])+ aMyLocalCopy[1,4]
>      *  Net copy is more recent
>      COPY FILE \\MyServer\MyAppDist\MyApp.EXE TO .\MyApp.EXE
>   ENDIF
>ELSE
>   COPY FILE \\MyServer\MyAppDist\MyApp.EXE TO .\MyApp.EXE
>ENDIF
>DO .\MyApp.EXE
>
>
>Obviously, you can do more in the launcher app and generalize things, but this makes an interesting starting point.

Thats a very good approach. I was hoping that I would not have to program a launcher app, but it may come down to that. Thanks for your time.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform