I'm calling it within InstallUISequence and after ExecuteAction.

<InstallUISequence>
   <Custom Action=CA_testSqlConnection" After="ExecuteAction" />
</InstallUISequence>

It looks like it is being set properly, if I'm interpreting the log
correctly.

Action ended 13:19:57: CostFinalize. Return value 1.
Action 13:20:08: CheckDbConnectionDlg. Dialog created
MSI (c) (FC:34) [13:20:13:371]: PROPERTY CHANGE: Adding serverSelectedItem
property. Its value is .\SQLEXPRESS'.
MSI (c) (FC:34) [13:20:18:652]: PROPERTY CHANGE: Adding selectedItem
property. Its value is 'SQL Server Authentication'.
MSI (c) (FC:34) [13:20:22:309]: PROPERTY CHANGE: Adding LOGIN property. Its
value is 'TestUser'.
MSI (c) (FC:34) [13:20:36:168]: PROPERTY CHANGE: Adding PWD property. Its
value is '**********'.
MSI (c) (FC:34) [13:20:39:778]: PROPERTY CHANGE: Adding DB property. Its
value is 'MyApp'.
MSI (c) (FC:34) [13:20:39:856]: Doing action: CA_testSqlConnection
MSI (c) (FC:34) [13:20:39:856]: Note: 1: 2205 2:  3: ActionText
Action 13:20:39: CA_testSqlConnection.
Action start 13:20:39: CA_testSqlConnection.
MSI (c) (FC:84) [13:20:39:871]: Invoking remote custom action. DLL:
C:\DOCUME~1\lspence\LOCALS~1\Temp\MSI7CE.tmp, Entrypoint: TestSqlConnection
MSI (c) (FC!90) [13:20:40:246]: PROPERTY CHANGE: Adding SQLCONNECTION
property. Its value is 'Data Source=.\SQLEXPRESS;Database=MyApp;User
Id=TestUser;Password=password'.
MSI (c) (FC!90) [13:20:40:246]: PROPERTY CHANGE: Adding CONTINUE property.
Its value is 'true'.
Action ended 13:20:41: CA_testSqlConnection. Return value 1.
Action 13:20:44: WelcomeDlg. Dialog created
Action 13:20:44: CheckDbConnectionDlg. Dialog created
MSI (s) (80:F4) [13:20:47:246]: PROPERTY CHANGE: Adding INSTALLLEVEL
property. Its value is '1'.
MSI (s) (80:F4) [13:20:47:246]: PROPERTY CHANGE: Adding SQLCONNECTION
property. Its value is 'Data Source=.\SQLEXPRESS;Database=MyApp;User
Id=TestUser;Password=password'.
MSI (s) (80:F4) [13:20:47:246]: PROPERTY CHANGE: Adding CONTINUE property.
Its value is 'true'.
Action ended 13:20:56: InstallFinalize. Return value 1.
Action ended 13:20:56: INSTALL. Return value 1.
Property(S): ExecXmlFile = C:\Program Files\App
Lister\app.config€3€0€/configuration/connectionStrings/add[@name='AppListConnectionString']€connectionString€Data
Source=.\SQLEXPRESS;Database=MyApp;User Id=TestUser;Password=password
Property(S): SQLCONNECTION = Data Source=.\SQLEXPRESS;Database=MyApp;User
Id=TestUser;Password=password
Property(S): CONTINUE = true
MSI (c) (FC:34) [13:20:59:512]: Custom Action Manager thread ending.
Property(C): INSTALLLEVEL = 1
Property(C): SQLCONNECTION = Data Source=.\SQLEXPRESS;Database=MyApp;User
Id=TestUser;Password=password
Property(C): CONTINUE = true
=== Logging stopped: 1/25/2011  13:20:59 ===
MSI (c) (FC:30) [13:20:59:528]: Note: 1: 1707
MSI (c) (FC:30) [13:20:59:528]: Product: AppLister -- Installation completed
successfully.

--Lance

On Tue, Jan 25, 2011 at 12:56 PM, Blair <os...@live.com> wrote:

> In which sequence and where in that sequence are you calling your custom
> action, and is that property marked "Secure"?
>
> BTW, a verbose log can tell you exactly what is (and isn't) happening with
> that property.
>
> -Blair
>
> -----Original Message-----
> From: CoolBreeze [mailto:coolbreeze...@googlemail.com]
> Sent: Tuesday, January 25, 2011 8:50 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Setting properties
>
> I have a property I've set within a CustomAction that I need to access
> within one of my Components. I'm not getting the property's value. Is this
> even possible?
>
> Here is where I'm assigning a value to my property.
>
> [CustomAction]
> public static ActionResult TestSqlConnection(Session testSession)
> {
>       // Code that tests the connection.
>      ...
>      ...
>
>      // Assign the connection string to a property.
>      testSession["SQLCONNECTION"] = connStr;
> }
>
> Within my Components.wxs I have the following.
> <Component Id="CMP_ConnString" Guid="Some Guid" Directory="AppDir">
>   <File Id="App.config" Name="app.config" Vital="yes" KeyPath="yes"
> Source="..\MyApp\app.config" />
>   <util:XmlFile Id="AppConfigConnString" Action="setValue" Permanent="yes"
> File="App.config"
>
>
> Element="/configuration/connectionStrings/add[\[]@name='MyAppConnString'[\]]
> "
>         Name="connectionString" Value="[SQLCONNECTION]" />
>
> ----------------------------------------------------------------------------
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to