Custom Action is excecuted when it shouldn't - Advanced Installer Community
Carlo2007
Posts: 8
Joined: Fri May 13, 2016 10:45 am

Custom Action is excecuted when it shouldn't

Hi,

I'm currently changing my MSI Installer to add a UI installer to it. But now I have a problem that some properties need to be set when they first are initialized in the UI, because they are paths.
I've added those custom actions as the tutorial explains for adding a browse path to the UI, but the problem is that when I use a silent install the passed properties are reset because the CustomAction (SetProperty) is being called which will delete the command line input and change it with the default [WindowsVolume].
CustomAction.png
CustomAction.png (47.49 KiB) Viewed 2664 times
I've deleted the customAction from Install Execution Stage but that didn't help.

Could you help me?

Kind regards,

Carlo
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Action is excecuted when it shouldn't

Hi Carlo,

I'm not sure why you encounter this problem. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them? Also, can you give me an example of how you set those properties from command line?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Carlo2007
Posts: 8
Joined: Fri May 13, 2016 10:45 am

Re: Custom Action is excecuted when it shouldn't

Hi Eusebiu,

I found the problem that the MSI installer was expecting a Path in CostFinalize. But the strange thing was that this property was part of the server installation even though I set ADDLOCAL=Client.

I've added the CustomActions back to Install Execution Stage and adjusted the execution to check the CLIENTUILEVEL > 2 and added an OR statement if ADDLOCAL = Client then pass [WindowsVolume] to that property, since the advanced execution time/condition didn't work.
This way the property is set and everything works fine, the CostFinalize will check on that location but later on won't use that property.

Kind regards,

Carlo
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Action is excecuted when it shouldn't

Hi Carlo,

I'm glad you solved the problem. Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”