How to run custom action before installing windows service? - Advanced Installer Community
wangzhoulin
Posts: 7
Joined: Tue Jul 16, 2013 7:58 am

How to run custom action before installing windows service?

I added a custom action to run exe by launch installed file and created a windows service by services of resources.Now the windows service installed fristly and next to run cunstom action.How can i set that run custom action before installing windows service?Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to run custom action before installing windows servi

Hi,

In order to achieve this you can go in the Custom Actions page and drag your custom action before "Install Execution Stage -> Add Resources" action group.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wangzhoulin
Posts: 7
Joined: Tue Jul 16, 2013 7:58 am

Re: How to run custom action before installing windows servi

Eusebiu wrote:Hi,

In order to achieve this you can go in the Custom Actions page and drag your custom action before "Install Execution Stage -> Add Resources" action group.

Best regards,
Eusebiu
Thanks Eusebiu.
Runing custom action occour an error that as following:
(3C:F4) [15:27:07:755]: Executing op: CustomActionSchedule(Action=SetupUtility.exe,ActionType=1026,Source=BinaryData,Target=-i SystemAccessControl,)
CustomAction SetupUtility.exe returned actual error code -532462766 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (3C:F4) [15:27:07:943]: Note: 1: 1722 2: SetupUtility.exe 3: C:\Windows\Installer\MSI90A8.tmp 4: -i SystemAccessControl
MSI (s) (3C:F4) [15:27:07:944]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (3C:F4) [15:27:07:949]: Transforming table Error.
How do i do?Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to run custom action before installing windows servi

Hi,

I'm not sure why you encounter this behavior. It looks like it is a problem with the "SetupUtility.exe" custom action which does not run correctly. Can your run it manually and make sure that it works correctly?

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

Return to “Common Problems”