Hello Himanshu,
This is happening because the
GetJbossRegistryValues action is executed twice, on the
Wizard Dialogs Stage and on the
Install Execution Stage.
On the
Wizard Dialogs Stage the
LOGDIR property is correctly set by the custom action:
Code: Select all
Calling custom action AmphoraCustomActions!AmphoraCustomActions.CustomActions.GetJbossRegistryValues
MSI (c) (4C!80) [13:43:49:780]: PROPERTY CHANGE: Modifying LOGDIR property. Its current value is 'C:\'. Its new value: 'C:\logs\'.
Action ended 13:43:49: GetJbossRegistryValues. Return value 1.
Then, the property is changed through the dialogs:
Code: Select all
MSI (c) (4C:58) [13:44:03:733]: PROPERTY CHANGE: Modifying LOGDIR property. Its current value is 'C:\logs\'. Its new value: 'C:\logs\2moe\'.
However, when entering on the
Install Execution Stage (after the user hit the
Install control), the value of the
LOGDIR property is overwritten by the custom action, as you can see below:
Code: Select all
Calling custom action AmphoraCustomActions!AmphoraCustomActions.CustomActions.GetJbossRegistryValues
MSI (s) (D0!18) [13:44:14:937]: PROPERTY CHANGE: Modifying LOGDIR property. Its current value is 'C:\logs\2moe\'. Its new value: 'C:\logs\'.
Action ended 13:44:14: GetJbossRegistryValues. Return value 1.
To overcome this, you can select the
Skip action in Install Execution Stage if executed in Dialogs Stage option from the
Advanced Execution Scenarios Dialog of the
GetJbossRegistryValues custom action properties.
By the way, the same functionality can be achieved through the predefined support from Advanced Installer. e.g. create a registry search operation in the
Search page of Advanced Installer. Use the [ New Search Wizard ] toolbar button, to set up a new search, following step-by-step directions.
Should there be any difficulties you encounter implementing something, please do not hesitate to contact us and we will gladly assist you.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging