Indigo Rose Software
  #1  
Old 08-08-2008
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
Using SUF8 as a stub file for another app?

Seeing this thread (https://www.indigorose.com/forums/sh...ad.php?t=24523) reminds me I have, as part of a project I am developing in VB.NET, to ensure the user has the most up to date programs installed on their local drive.

The application does not require to be installed and just a case of copying a few files from a central network location to a specific folder on the local drive if they do not already exist (and correct version etc.). It uses standard .NET 2.x framework tools. The downside is the network connection can be slow at times so only want to download if the version is out of date, not just a copy regardless, so the end user is not kept waiting.

Was wondering if anyone has used SUFx as a stub file to check everytime the user starts the application whether the files locally match those on the central site? Once compared, and updated if necessary via HTTP/FTP, to then start the application using Shell.Execute and terminate the SUFx application. I was going to write my own updater in VB.NET but then thought, what the ****, I potentially have a tool here that will do it for me.

I realise there are other tools such as Visual Patch and True Update but I want the user not to have to do anything except click an icon. And in any case those packages are an overkill for what I want.

Has anyone tried this and if so, any problems encountered particularly making sure SUFx terminates once the new app has started?

Thanks - John
Reply With Quote
  #2  
Old 08-21-2008
coldmist coldmist is offline
Forum Member
 
Join Date: Dec 2007
Posts: 5
I have suf7, but this works to fire off another program and then die, before doing a real install:

if <some stuff> and Table.Count(_CommandLineArgs) > 0 then
Shell.Execute(Folder.."\\file.ext", "open", "", "", SW_SHOWNORMAL);
Application.Exit(0);
end

I have that on my 'On Startup' actions.

I don't know on the file verification question though.
Reply With Quote
  #3  
Old 08-21-2008
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
Things have gone on since. I started using SUF8 but then had a brainwave and wrote some VB.NET stuff to do the same thing. Basically my system checks a location for update files, compares versions, if newer then downloads them with a .NEW extension, renames the old one with a .OLD (including the running program if relevant), renames the .NEW to the original name before finally deleting the .OLD versions. Works really well.

I could have easily done something similar with SUF8 but the development tools I use everyday won out in this instance primarily because I only wanted the one EXE involved.

Thanks - John
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bloat File Maker RizlaUK General Chat 3 11-24-2008 09:28 PM
Reading Install Path From Registry Staggan Visual Patch 2.0 33 05-04-2006 11:31 AM
Unable to find software? NigelLacey Visual Patch 2.0 4 10-11-2005 11:35 AM
Unicode INI file, read on NT 4 crashes app jlm13 AutoPlay Media Studio 4.0 2 08-07-2003 10:08 AM
Mac autostart function??? Protocol AutoPlay Media Studio 4.0 21 06-26-2003 11:25 AM


All times are GMT -6. The time now is 10:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software