Well, the string of expanded properties and switches is what gets passed.  
Ultimately, the fix was to pass INSTALLDIR instead having first set it 
Secure="yes".  Now everything just works.
--
John M. Cooper
Volt at Microsoft

-----Original Message-----
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: Tuesday, July 20, 2010 1:28 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] {INSTALLLOCATION] Not Expanding to It's Value in a 
Type 2 Custom Action

Deferred custom actions have access to a very limited set of properties.
This blog has a good explanation
http://blogs.technet.com/b/alexshev/archive/2008/03/25/property-does-not
-exist-or-empty-when-accessed-from-deferred-custom-action.aspx 

Look up "Quiet Execution Custom Action" (qtexec) in the wix help. It is a 
custom action that can do this and has an example of how to fix your problem, 
if you dont mind installing your tool.

-----Original Message-----
From: John Cooper (Volt) [mailto:a-jc...@microsoft.com]
Sent: 19 July 2010 18:56
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] {INSTALLLOCATION] Not Expanding to It's Value in a Type 2 
Custom Action

I have a Type 2 Custom Action that isn't working right.
LG_IIS7Installer.exe is running, but INSTALLLOCATION is not expanding.
INSTALLLOCATION is set as a property= on the msiexec command line, and the 
files get installed into the right places.  But instead of he path expected, 
INSTALLLOCATION is returning a "blank" causing LG_IIS7Installer.exe to fail.

    <?ifdef DEBUG?>
    <Binary Id="LG_IIS7UTIL"
SourceFile="\\lmibuild\LGDrops\Installers\Latest\Debug\LG_IIS7Installer.
exe"/>
    <?else?>
    <Binary Id="LG_IIS7UTIL"
SourceFile="\\lmibuild\LGDrops\Installers\Latest\Release\LG_IIS7Installe
r.exe"/>
    <?endif?>

    <!-- Custom Actions to config IIS7 -->
    <CustomAction Id="CONFIG_IIS7"
                  BinaryKey="LG_IIS7UTIL"
                  ExeCommand="/W &quot;[INSTALLLOCATION]&quot; /U 
&quot;[SERVICE_ACCOUNT]&quot; /P &quot;[SERVICE_PASSWORD]&quot;"
                  Execute="deferred"
                  Return="ignore"
                  Impersonate="no"/>

Ideas on how to get INSTALLLOCATION to expand would be greatly appreciated.  
I've tried Using a separate command line to form the argument to ExeCommand, 
but I get the same result-SERVICE_ACCOUNT and SERVICE_PASSWORD expand 
correctly, but INSTALLLOCATION do not.

--
John M. Cooper
Volt at Microsoft
------------------------------------------------------------------------
------
This SF.net email is sponsored by Sprint What will you do first with EVO, the 
first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email 
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial"  
size="2" "><a href = "http://www.sdl.com"; style="color:005740; font-weight: 
bold">www.sdl.com</a> <BR> <BR> <font face="arial"  size="1" color="#736F6E"> 
<b>SDL PLC confidential, all rights reserved.</b> If you are not the intended 
recipient of this mail SDL requests and requires that you delete it without 
acting upon or copying any of its contents, and we further request that you 
advise us.<BR> SDL PLC is a public limited company registered in England and 
Wales.  Registered number: 02675207.<BR> Registered address: Globe House, 
Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
</font>



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint What will you do first with EVO, the 
first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to