View Full Version : Upg.tps
NewsArchive
07-01-2007, 05:28 AM
Every now and then I come up with this problem.
When a user runs an SB install for a version upgrade (only the EXE), at the
end of the install, the app starts and throws up an "invalid file" message.
Close the installer, click the app shortcut, the file upgrades fine (I use
CapeSoft FM) and runs normally.
Should I ship the UPG.TPS in the installer or not?
~~~~~~~~~~~~~~~
Sim Sherer
NewsArchive
07-01-2007, 05:28 AM
> When a user runs an SB install for a version upgrade (only the EXE), at the
> end of the install, the app starts and throws up an "invalid file" message.
> Close the installer, click the app shortcut, the file upgrades fine (I use
> CapeSoft FM) and runs normally.
> Should I ship the UPG.TPS in the installer or not?
Sim,
You really need to NOT run the app at the end of the install these days.
On Vista, the installer is running as Administrator and the app will
possibly make changes (create data files, etc) based on locations that may
be relative to the "Administrator" version of the user - not the actual
user.
That aside - if you use the FM3 ds_SetUPGPath so that FM3 knows where to
run, it should not be needed.
I use WinEvent to set the location of my data in the program setup, then a
combination of PROP:Datapath and ds_SetUPGPath to point things where I want
them.
Example:
!Set GLO:CommonAppData
GLO:CommonAppData = ds_GetFolderPath( WE::CSIDL_COMMON_APPDATA ) &
'\LANSRAD\PageSnip'
!Set the datapath for all our common files
SYSTEM{PROP:DataPath} = CLIP( GLO:CommonAppData )
!Tell FM3 where to find our upgradable files
ds_SetUPGPath( CLIP( GLO:CommonAppData ))
This works fine for me and I never see such an error.
HTH,
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
NewsArchive
07-01-2007, 05:28 AM
Hi Charles,
>You really need to NOT run the app at the end of the install these days.
Someone posted some code or stuff to do this recently, i.e. execute
the program as a user not admin at the end of the install.
IMO this is a vital part of any webupdate that it can restart the
program it just updated. I've been using this in my client apps for
the past couple of years and it provides a very seamless and nice flow
of operation.
I also very much appreciate installs that offer to run the just
installed program at the end of the install rather than tell me to go
hunt down the shortcut for ProgramA which appears now in
TheNewSoftwareCompany|ProgramA where TheNewSoftwareCompany is a name
I've never seen before<g>
This is particularly useful when I'm testing out programs and I may be
installing several trial programs in a short period of time.
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe
NewsArchive
07-01-2007, 05:29 AM
http://www.beachbunnysoftware.com/clarion/nonelev.htm
Jane Fleming
NewsArchive
07-01-2007, 05:29 AM
Hi Jane,
>http://www.beachbunnysoftware.com/clarion/nonelev.htm
Thanks:) I wonder if Friedrich could implement Andrei's solution into
SB6.5. I will have to look into this pretty soon for my client
project.
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
07-01-2007, 05:29 AM
> Someone posted some code or stuff to do this recently, i.e. execute
> the program as a user not admin at the end of the install.
I knew that and I see that Jane has posted about it again.
> IMO this is a vital part of any webupdate that it can restart the
> program it just updated. I've been using this in my client apps for
> the past couple of years and it provides a very seamless and nice flow
> of operation.
>
> I also very much appreciate installs that offer to run the just
> installed program at the end of the install rather than tell me to go
> hunt down the shortcut for ProgramA which appears now in
> TheNewSoftwareCompany|ProgramA where TheNewSoftwareCompany is a name
> I've never seen before<g>
>
> This is particularly useful when I'm testing out programs and I may be
> installing several trial programs in a short period of time.
It is a nice feature to have, but I have been waiting to try it out until
Friedrich weighs in with his test results (and if good - hopefully
integration into SetupBuilder).
The way I see it, Vista is goofy enough without taking any chances.
The solution Jane posted seems like it would work, but I am just not
comfortable taking any chances with Vista until we know for sure.
Also - identifying the program to run should be no problem as Vista (and
even XP) have been pretty good about making it easy to find new apps in the
START menu.
But I do agree - it will be nice when we can do it and depend on it.
In your case running the post install stuff, it definitely makes sense.
;-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
NewsArchive
07-01-2007, 05:30 AM
> Should I ship the UPG.TPS in the installer or not?
I forgot to mention this one:
I don't think there is a hard fast rule here.
In the FM3 docs ( C:\Clarion6\3rdParty\docs\fm3\fm3.htm ) there is a
section titled:
"The UPG file (Upg.tps)"
You should read that and let it determine if you ship the file or not based
on your situation.
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
NewsArchive
07-01-2007, 08:42 AM
Mmmmmm.Seems as though the UPG.TPS should NEVER be shipped!
Thanks
Sim
NewsArchive
07-01-2007, 08:43 AM
> Mmmmmm.Seems as though the UPG.TPS should NEVER be shipped!
The only exception seems to be CASE#4 (if you can not revert to CASE#3)
(see attached and look for that section in the docs)
HTH,
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
NewsArchive
07-01-2007, 08:44 AM
Thanks but I disregarded that scenario because that does not relate.
When trying the app manually after SB has completed it's task, everything
runs just fine.
It just seems strange (to me at least) that if FM is embedded that the app
does not behave properly the first time!
Sim
NewsArchive
07-01-2007, 08:44 AM
If this happens on a non-Vista machine, I think it's caused by a "current
folder" problem. Perhaps you have to specify the default folder for your
application when executed from the installer?
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
07-02-2007, 12:04 AM
Mmmm.
Makes sense too!
Thanks, Friedrich.
Sim
NewsArchive
07-02-2007, 12:05 AM
I believe the Capesoft docs state you don't ship that file. Its generated at the
client and its based on their viewpoint, not yours.
--
Russell B. Eggen
www.radfusion.com
Skype IRC: http://tinyurl.com/2mqr2j
NewsArchive
07-02-2007, 12:05 AM
Agreed.
Sim
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.