How can I terminate process when a button is pushed? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jason_shen1
Posts: 2
Joined: Tue May 12, 2009 2:12 am

How can I terminate process when a button is pushed?

Dear Advanced Installer Team:

I have custom a "Terminate Process" action under UI Custom Actions and Configure the control event (Name = DoAction and Argument = StopProcess) in Published Events, but I don’t know how to assign the parameter to Action Data (for example Action Data = Notepad.exe) from control event.

Regards,
Jason
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: How can I terminate process when a button is pushed?

Hi,

Create a new control event like this:
Name: SetProperty (replace [PropertyName] with "[CustomActionData]")
Argument: notepad.exe

Make sure this event it's executed before DetectProcess event.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
jason_shen1
Posts: 2
Joined: Tue May 12, 2009 2:12 am

Re: How can I terminate process when a button is pushed?

HI Gigi,

Thanks for your replay.

Regards,
Jason

Return to “Common Problems”