PDA

View Full Version : Same install on differents folders and Web Update



NewsArchive
03-16-2008, 08:26 AM
Hi Friedrich,
I have one application installed in 4 folders in the same machine, as you
suggest I´m using the INI feature but when I run de web update from any of
these 4 folders the app updates allways on one of these folders and not on
the folder its been run.
INSTALLDIR is set to %CURDIR%
What can I do?

--

Saludos / Regards,

Alberto Michelis
ARMi software & technology
www.armi.com.ar

NewsArchive
03-16-2008, 08:26 AM
Hi Alberto,

> I have one application installed in 4 folders in the same machine, as you
> suggest I´m using the INI feature but when I run de web update from any of
> these 4 folders the app updates allways on one of these folders and not on
> the folder its been run.
> INSTALLDIR is set to %CURDIR%
> What can I do?

Using %CURDIR% is not a good idea in this case.

I would suggest to use the "Get System Information (Installer Path Name)"
function to detect the full pathname, excluding the file name, of the
installation currently executing.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-17-2008, 03:22 AM
I´ve made the Procuct name = yadayada [INSTALLDIR] and this is displayed OK
I've installed all the 4 apps qith the main installer and I only find one or
two ocurrences of the app in the registry.
How can I display the really folder at which the installer will do the
update?

--

Saludos / Regards,

Alberto Michelis
ARMi software & technology
www.armi.com.ar

NewsArchive
03-17-2008, 03:23 AM
> I´ve made the Procuct name = yadayada [INSTALLDIR] and this is displayed
> OK
> I've installed all the 4 apps qith the main installer and I only find one
> or
> two ocurrences of the app in the registry.
> How can I display the really folder at which the installer will do the
> update?

Sorry, I don't understand what you mean. You are using the INI, right? And
what do you have in the Registry?

%_SB_INSTALLDIR% holds the default installation directory. To set the
default installation folder to the directory where the installer itself is
located in, you can use:

Set Variable %_SB_INSTALLDIR% to FUNCTION:Get System Information(Installer
Path Name)

BTW, and was it really me who "suggested" using the INI? I can't remember
this and I am unable to find that posting. Can you point me to it?

Friedrich

NewsArchive
03-18-2008, 03:26 AM
Friedrich,

It migth be a posting I did after taking a look in his SB directory on my
server where I found two installs and no ini files _there_ that confused all
:)


--
Thank you

Cordialement - Best regards
Jean-Pierre GUTSATZ

CGF

Data Management Center - A tool to let you Migrate Import Export Transfer
all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"

NewsArchive
03-19-2008, 03:03 AM
Hi Friedrich,
It was a private email and I didnt keep it.

If I were asking again:

I have an app which need to be installed in 4 folders (4 different databases
and so) in the same machine and need to be web updated in each folder, what
is the better installer aproach?


--

Saludos / Regards,

Alberto Michelis
ARMi software & technology
www.armi.com.ar

NewsArchive
03-19-2008, 03:04 AM
Hi Alberto,

> It was a private email and I didnt keep it.
>
> If I were asking again:
>
> I have an app which need to be installed in 4 folders (4 different
> databases and so) in the same machine and need to be web updated
> in each folder, what is the better installer aproach?

Let me ask. You wrote at the beginning of this thread that you are using
the "INI feature". I assume you are not using an INI file to store your own
installation path, etc. information from within the installer, but you are
using the "Store Properties in INI File" option when you install and
initialize the Web Update client, right?

If you install the same application into different folders then using the
"Store Properties in INI File" option is okay.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-19-2008, 03:04 AM
Thanks

--

Saludos / Regards,

Alberto Michelis
ARMi software & technology
www.armi.com.ar

NewsArchive
03-19-2008, 03:06 AM
>
> Thanks
>

You are welcome.

BTW, just to clarify something. You are installing the SAME application
into (4) different folders on the same machine. That means you can't use
the unique Product GUID to detect the application. To have 4 different
uninstall entries in the Add/Remove Programs panel (if you support this),
you have to use a variable as Product GUID identifier and generate the GUID
at installer runtime.

http://www.lindersoft.com/forums/showthread.php?t=7469

Because you don't know the Product GUID when you build your web update
installer package, disable the "Detect Previous Version" function in your
your web update. You can use something like the following (see attached
source code snippet) to detect the installation folder.

Hope this helps.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-19-2008, 03:06 AM
Bingo!, now I understand.
Thanks again

--

Saludos / Regards,

Alberto Michelis
ARMi software & technology
www.armi.com.ar