View Full Version : Path in wupdate
NewsArchive
07-10-2007, 04:53 AM
I noticed that the path I have set in my installation is used, even when the
wupdate downloads and run from another location. I have tried to work around
it by storing the installpath in registry, but what if the user installs
program parts in different directories (I have one installation where that
is most likely to happen due to the purpose of the appliacations)?
I would like to know if there is a way I can identifiy current path in
wupdate.exe and pass this to my install, or better, identify if a wupdate is
present in the directory I run my installation and then change my
installpath to that path. Or is this automatically handled when running in
silent mode?
Bjarne
NewsArchive
07-10-2007, 04:53 AM
Bjarne,
You can use the "Detect Previous Version" function to retrieve the
installation path.
Does this help?
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-10-2007, 07:30 AM
Partially. It helps in all other cases where only one instance is installed.
I have a setup that includes six different applications. I like to have them
in one install because all are custom to that particular customer. They may
or may not install them in different locations, each executable in different
directories - what do I know. So, I install wupdate every time as well as
all common DLL's. When the user hits the wupdate button, it would have been
extremely helpful to be able to ensure that the install goes to the same
directory where the setup is downloaded.
Bjarne
..
NewsArchive
07-10-2007, 07:30 AM
Bjarne,
Then use the "Get System Information" (Installer Path Name) script function.
This will retrieve the directory where the setup is downloaded.
Does this help?
Friedrich
NewsArchive
07-10-2007, 07:30 AM
Most definetly, thanks.
I understand I have to edit the wupdate script to pass a parameter to the
setup telling that it is run as live update?
Bjarne
NewsArchive
07-10-2007, 07:35 AM
Bjarne,
> Most definetly, thanks.
> I understand I have to edit the wupdate script to pass a parameter to the
> setup telling that it is run as live update?
No. The wupdate.exe client just checks if a new version is available. If
this is the case, it downloads and executes your "real" web update installer
package. That is the small (~130 KB) installer stub - this installer stub
then processes the web update (downloads only what is required).
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.