Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Program Launcher (vb6)

    One of the pains of updating a project is versioning.
    Currently, when I create an update, I have to travel 10 miles and update 12 pc's with the latest version of my application.

    I found an interesting article the other day which deals with this issue by Chris Barlow of www.vbpj.com (1999).
    All the code is supplied and a link to download the "FileVer DLL" from the site.

    The site is no longer active so I can't get the DLL.

    1/ Does anyone know of or have a copy of this DLL

    or

    2/ Does anyone have an example of updating local pc's with the most current version dependant on a master on a server ?

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,481
    Thanks
    3
    Thanked 41 Times in 41 Posts

    Re: Program Launcher (vb6)

    Take a look at this and see if it might work for you - it was designed with Access in mind, but has been used in other situations too. I believe that FMS may offer some similar capabilities with their Total Access Startup product.
    Wendell

  4. #3
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Thanks Wendell, but not quite what I was looking for.

    The article I mentioned can be found here:

    http://www.ftponline.com/archives/premier/...pr99/gs0499.pdf

  5. #4
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Found it, I didn't look hard enough:

    http://www.vbexpert.com/docs/VBPJupd.HTM

    Thanks again

  6. #5
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    <P ID="edit" class=small>(Edited by D Willett on 25-Jun-04 11:33. Post question changed)</P>The correct link to the program launcher is below.

    http://www.ftponline.com/archives/free/mgz...bpj0499gs_p.zip


    I see that this program needs to be a stand alone application to funnel the actual EXE to call.

    I have an application in: C:Program FilesEstimator ConsoleEstimatorConsole.EXE
    And a copy in L:Install which will be the updated version with each code change.
    Hopefully, the user will use the launcher to open the local version and if the master on L: is newer, then it will be copied automatically.

    I can't seem to get it to work because the Len(Command) is always 0(zero) even if Project|Properties|Make - Command contains : EstimatorConsole.exe

  7. #6
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Not sure if I@ve confused any one here with the post so to break it down, I'm trying to run the application as a test purpose with the default settings and not using the properties command feature.
    Instead I have replaced by hard coding the path and exe.

    Shell "L:InstallLauncher.exe"

    I can change programme names etc later.
    The app works up as far as If Len(InstallFolder) = 0 Then ..........

    It states that "Launcher.exe is not in Program Folder" when it is, then it runs the msgbox :
    "This programme will launch the program specified ........"

    The prgramme called is now running in the start bar.

    If I'm confusing anymore, let me know so I can search for an alternative method.

    Thanks

    <pre>Public Sub Main()
    Dim txt$
    Splash.Show
    Splash.Refresh
    InstallFolder = GetSetting("Launcher", "Folders", "InstallFolder", "")
    If Len(InstallFolder) = 0 Then
    InstallFolder = InputBox("Please enter path to Install Folder", "No Install Folder", App.Path)
    If Len(InstallFolder) = 0 Then End
    SaveSetting "Launcher", "Folders", "InstallFolder", InstallFolder
    End If
    If Len(Command) = 0 Then
    txt = "This program will launch the program specified on the command line." & vbCrLf
    txt = txt & "It will compare this program's date and version against the same program in " & vbCrLf
    txt = txt & InstallFolder & vbCrLf
    txt = txt & "and give you the option to replace your program with this version." & vbCrLf
    txt = txt & "Please enter path and EXE name on command line and re-run this program."
    MsgBox txt
    Else
    If ProgCheck(ParseString(Command, " ", 1)) Then
    Shell "L:INSTALLLAUNCHER.EXE"


    End If
    Unload Splash
    End If
    End
    End Sub</pre>


  8. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Re: Program Launcher (vb6)

    Dave,

    You're not confusing us, but apparently none of us has experience with this Launcher utility. Sorry.

  9. #8
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Thanks Hans

    I've messed with it this morning and got a little further without any specific result.


    What I might do though is play about with the GetProgVersion procedure and see if I can mix this with a FileSystemobject to copy the newer version from the server to the user (Local).

    Any idea's would be appreciated.

    Have a good weekend

  10. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Re: Program Launcher (vb6)

    The setting in the Make tab of Project | Properties is a command line option for the compiler, not for the compiled application. You would have to call your app using a shortcut that specifies the application and EstimatorConsole.exe.

  11. #10
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Thankyou Hans

    I had realised this and replaced Command in the code with hardcoded paths and filenames.

    There's something strange going on I can't put my finger on.

    Each time I run my example, I get Err 53 or the msgbox stating the file isn't in the Program or Intall folder.
    I know they both exist because I put them there.
    I even omitted spaces from the EXE name and tried a short path instead of "Programme Files".

    I think everything ties up with the DLL "FileVer.DLL" which I now have two copies, the latter being updated by the creator.

    I thought of another way over the weekend, by creating a small EXE which would:

    Delete the local copy
    Copy the server copy
    Shell the local copy

    Which would ensure the user always had the latest version, but I'm dubious about following this route.
    I can't believe that no-one has created something like this before giving VB's capabilities.
    I'm still playing with Idea's for now.

    Thanks anyway

  12. #11
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Re: Program Launcher (vb6)

    As long as the only changes in your application are straightforward modifications to form design or to the code, replacing the .exe should work. But if you need to install DLLs or OCXs etc., that wouldn't work, because installing them requires modification of the registry.

  13. #12
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Hans
    So what you're saying is that it IS possible to implement my somewhat crude method !!, but is this the way you would go.

    Would there be any possible drawbacks ?

  14. #13
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Re: Program Launcher (vb6)

    Dave,

    I'm not an expert in installing VB6 applications, so I may be wrong.

    You would have to install the application the first time using the "official" way, to make sure that all required additional components are installed and registered on the target PC. And you would have to repeat this if you added new components (non-standard controls, for example). But if you only change some code, or modify the design of a form without introducing new components, just replacing the EstimatorConsole.exe should work, even if it is not the most elegant solution.

  15. #14
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Program Launcher (vb6)

    Hans
    Thats entirely possible.

    Here's a snippet of what I have in mind:

    <pre>Private Sub Command1_Click()

    Dim fso As New FileSystemObject

    Dim LocFile As String
    Dim SerFile As String

    LocFile = "C:EstimatorConsole.exe"
    SerFile = "L:InstallEstimatorConsole.exe"


    fso.DeleteFile LocFile
    fso.CopyFile SerFile, LocFile

    Set fso = Nothing
    Shell LocFile

    End Sub</pre>



    The above works ^^
    But I could do with : LocFile = "C:EstimatorConsole.exe" being "C:Programme FilesEstimator ConsoleEstimatorConsole.exe"
    This errors out to 53, Is VB6 compatible with Long Filenames and paths ?

  16. #15
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Re: Program Launcher (vb6)

    CopyFile can handle long file names, but are you sure about the folder name? The standard location for applications in Windows is C:Program Files, not C:Programme Files.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •