I have a immediate CA that setups some properties which build path
information for me to use when I setup a virtual directory, for example:
<CustomAction Id="SetVDDIR" Property="VDDIR"
Value="[MAINDIR]web\v$(env.MAJOR_REVISION)" />
<CustomAction Id="SetWEBDIR" Property="WEBDIR" Value="[MAINDIR]web" />
Then I have a the following as my <InstallExecuteSequence>:
<InstallExecuteSequence>
<Custom Action="SetVDDIR" After="AppSearch" />
<Custom Action="SetWEBDIR" After="AppSearch" />
<Custom Action="SetDBWIZEXE" After="AppSearch" />
<Custom Action="SetupWebSiteDefer" Before="InstallFinalize">NOT
Installed</Custom>
<Custom Action="RegNetDefer" After="SetupWebSiteDefer" />
<Custom Action="LaunchFile" After="RegNetDefer">NOT
REINSTALL="ALL"</Custom>
<Custom Action="RemoveWebSrv"
After="InstallValidate">REMOVE="ALL"</Custom>
<Custom Action="BreakdownWebSite"
After="RemoveWebSrv">REMOVE="ALL"</Custom>
<Custom Action='NoDowngrade'
After='FindRelatedProducts'>NEWERFOUND</Custom>
<RemoveExistingProducts After='InstallFinalize' />
</InstallExecuteSequence>
When I get to the "SetupWebSiteDefer" CA (which is a deferred VBScript CA)
it uses Session.Property to get the values for the properties VDDIR and
WEBDIR, however they are blank. When I look at the verbose log I can see
where the values are being set correctly before the "SetupWebSiteDefer" CA
is being called. Any suggestions as to what I am doing wrong? TIA.
Here is the log:
These are listed first in the log....
MSI (s) (74:E4) [14:21:28:275]: Doing action: SetVDDIR
MSI (s) (74:E4) [14:21:28:275]: Note: 1: 2205 2: 3: ActionText
Action 14:21:28: SetVDDIR.
Action start 14:21:28: SetVDDIR.
MSI (s) (74:E4) [14:21:28:275]: PROPERTY CHANGE: Adding VDDIR property. Its
value is 'C:\Program Files\web\v2008'.
Action ended 14:21:28: SetVDDIR. Return value 1.
MSI (s) (74:E4) [14:21:28:275]: Doing action: SetWEBDIR
MSI (s) (74:E4) [14:21:28:275]: Note: 1: 2205 2: 3: ActionText
Action 14:21:28: SetWEBDIR.
Action start 14:21:28: SetWEBDIR.
MSI (s) (74:E4) [14:21:28:285]: PROPERTY CHANGE: Adding WEBDIR property. Its
value is 'C:\Program Files\web'.
Action ended 14:21:28: SetWEBDIR. Return value 1.
Then this is below the previous snippet above....
MSI (s) (74:E4) [14:21:58:950]: Executing op:
ActionStart(Name=SetupWebSiteDefer,,)
Action 14:21:58: SetupWebSiteDefer.
MSI (s) (74:E4) [14:21:58:950]: Executing op:
CustomActionSchedule(Action=SetupWebSiteDefer,ActionType=3078,Source='========================================================================
MSI (s) (74:A4) [14:21:58:970]: Generating random cookie.
MSI (s) (74:A4) [14:21:59:000]: Created Custom Action Server with PID 2648
(0xA58).
MSI (s) (74:90) [14:21:59:580]: Running as a service.
MSI (s) (74:90) [14:21:59:580]: Hello, I'm your 32bit Elevated custom action
server.
MSI (s) (74:F4) [14:21:59:630]: Note: 1: 2205 2: 3: Error
MSI (s) (74:F4) [14:21:59:630]: Note: 1: 2228 2: 3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 1720
Error 1720. There is a problem with this Windows Installer package. A script
required for this install to complete could not be run. Contact your support
personnel or package vendor. Custom action SetupWebSiteDefer script error
-2146828235, Microsoft VBScript runtime error: File not found Line 326,
Column 5,
MSI (s) (74:F4) [14:22:57:660]: Note: 1: 2205 2: 3: Error
MSI (s) (74:F4) [14:22:57:660]: Note: 1: 2228 2: 3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 1709
MSI (s) (74:F4) [14:22:57:660]: Product: Web 2008.0 -- Error 1720. There is
a problem with this Windows Installer package. A script required for this
install to complete could not be run. Contact your support personnel or
package vendor. Custom action SetupWebSiteDefer script error -2146828235,
Microsoft VBScript runtime error: File not found Line 326, Column 5,
The script that blew up is trying to find the web.config file in the VDDIR
path and the vbscript thinks that Session.Property("VDDIR") = "" so it looks
for the file in the following path "\web.config" which of course does not
exist.
--
View this message in context:
http://www.nabble.com/Losing-property-values...-tp16289577p16289577.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users