Quantcast

RE: Curious environment issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Curious environment issue

Rob Mensching
Ug, a reboot just to update the PATH environment?  Can you not use the
ServiceInstall elements and schedule the Environment actions before the
Service actions (if they aren't already) so that your services start up with
the system environment updated?  This may work because the Windows Installer
is supposed to do all the magic to cause the system environment to get
updated right away.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Delgado, Peter
Sent: Tuesday, September 13, 2005 12:40 PM
To: [hidden email]
Subject: [WiX-users] Curious environment issue

I have a Wix installation that was working "as designed", however I
decided to make it a bit better.  The core product being installed uses
several Windows services that are installed by a configuration utility
that is run via a custom action at install time.  There are several
satellite DLLs included with the product that are required by the
service executables and thus I have to modify the default system Path to
include the search path for the DLLs.  I add the paths to the "Path"
environment variable by using the following line in a wxs file:

<Environment Id="PathAdditions" Action="create" Name="Path" Part="last"
Permanent="no" System="yes"
Value=";[INSTALLDIR]asp\6.1\bin;[INSTALLDIR]bin" />

Since the Service Control Manager (SCM) is unaware of the Path change,
the system needs to be rebooted before the Path change will take effect.
Normally I make the user manually reboot the system, however I decided
to be nice and add a reboot with the following line:
<ScheduleReboot After="PublishProduct" />

Unfortunately, the addition of the reboot seems to make the environment
modification not work during silent installs (/qn)!

Has anyone else seen a similar issue and possibly resolved it???

-Pete
*************************************
Pete Delgado
UGS Corp.
2000 Eastman Drive
Milford, OH 45150
*************************************


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Loading...