Hi,
What do u mean by set the property based on a registry entry?
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\GSR\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
On 3/22/07, Lindsay Harris <[EMAIL PROTECTED]> wrote:
Hi Chris, thanks for your reply, I have already started implementing it
that way, I guess I was hoping there was a more elegant solution.
Thanks,
Lindsay
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, March 22, 2007 11:23 AM
*To:* Lindsay Harris; wix-users@lists.sourceforge.net
*Subject:* RE: [WiX-users] public properties, saving state
I don't know if the functionality you're thinking of exists, but
alternatively you could set the property based on a registry entry you set
during installation.
Chris
------------------------------
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Lindsay Harris
*Sent:* Thursday, March 22, 2007 1:33 PM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] public properties, saving state
Hi,
I was wondering, is there a certain way to define a public property so
that whatever value u give it on install for example, will still be there
when u initiate a repair, or modify, or uninstall.
For example, this is how I define a public property:
<Property Id="ARCHIVEFOLDERDIREDIT" Value="someValue"></Property>
Is this expected behavior and I am doing something wrong?
Any advice would be appreciated,
Thanks,
Lindsay Harris
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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