okay, I think my issue is concerned only with 2 actions.

CA which sets the property : executed after LaunchConditions
CA which uses the property : executed after OnExit
basically OnExit (in InstallUISequence) I show a dialog, this dialog has
a Finish button, and the finish button publishes an event which calls the
CA.

Should I cascade the 2 CAs so that

OnExit -> show dialog -> click Finish -> event -> CA to set property (CA1)
and in InstallExecuteSequence I execute 2nd CA with After property set to
"CA1"

will that work?

- Nitin



On 4/2/07, Rob Mensching <[EMAIL PROTECTED]> wrote:

 No, but it depends on where all the other action are scheduled.



*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
*Sent:* Monday, April 02, 2007 7:09 AM
*To:* wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] Changing property value at runtime



I knew that (S) and (C) had something to do with it :)

My custom action is at the end of the installsequence




      <Custom Action="GEN_XLS_PATH" After="LaunchConditions"/>
    </InstallExecuteSequence>


Something wrong with that?



Thanks for quick replies,

- Nitin


On 4/2/07, *Rob Mensching* <[EMAIL PROTECTED]> wrote:

Notice the (s) and the (c).  It appears you changed the property on the
server side of the Windows Installer and used the Property on the client
side of the install.  Where did you sequence your actions ( i.e. where did
you put the Custom elements)?



*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
*Sent:* Monday, April 02, 2007 1:46 AM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] Changing property value at runtime



Someone please help me with the following issue?



I have this property : < Property Id ="EXCEL_PROGRAM" Value ="DUMMY.EXE"/>

And this Custom action which sets the above property

< CustomAction Id ="GEN_XLS_PATH" Return ="check" Property="EXCEL_PROGRAM"
Value="[XLSPROGPATH]Excel.exe"></ CustomAction >

There is another custom action which uses the above property

< CustomAction Id ="LaunchExcel" Property ="EXCEL_PROGRAM" ExeCommand=""
Return="asyncNoWait" />



The installation log shows the following:



…

…

…

Action start 19:08:22: LaunchConditions.

Action ended 19:08:22: LaunchConditions. Return value 1.

MSI (s) (48:C4) [19:08:22:819]: Doing action: GEN_XLS_PATH

MSI (s) (48:C4) [19:08:22:819]: Note: 1: 2205 2:  3: ActionText

Action 19:08:22: GEN_XLS_PATH.

Action start 19:08:22: GEN_XLS_PATH.

MSI (s) (48:C4) [19:08:22:819]: *PROPERTY CHANGE: Modifying EXCEL_PROGRAM
property. Its current value is 'DUMMY.EXE '. Its new value: 'D:\Program
Files\Microsoft Office\OFFICE11\Excel.exe'. *

Action ended 19:08:22: GEN_XLS_PATH. Return value 1.

MSI (s) (48:C4) [19:08:22:834]: Doing action: FindRelatedProducts

…

…

…

MSI (c) (B8:28) [19:08:36:835]: Doing action: LaunchExcel

MSI (c) (B8:28) [19:08:36:850]: Note: 1: 2205 2:  3: ActionText

Action 19:08:36: LaunchExcel.

Action start 19:08:36: LaunchExcel.

Action ended 19:08:36: Complete. Return value 1.

Action ended 19:08:36: INSTALL. Return value 1.

Action ended 19:08:36: LaunchExcel. Return value 1631.

Property(C): INSTALLDIR = C:\Program Files\***\Addin\

Property(C): *EXCEL_PROGRAM = DUMMY.EXE*

Property(C): TARGETDIR = F:\

…

…



The property was changed, but still while executing LaunchExcel it is
being shown as DUMMY.EXE



Any idea what is going wrong here?



Thanks,

Nitin Chaudhari





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to