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!

supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Run a vbs script when proccess runs

So, I made a program, and I want to use Discord Rich Presence when you run the program. I wanted to use custom action to detect when program is running.

I wanted to make vbs script that tells me when proccess is detected running, and then it runs another program.

So, program needs to run every time there is active proccess.

Hope I made some sence, and someone can help.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Run a vbs script when proccess runs

Hello,

There are two ways in which you can achieve this.

1. you can have all the logic inside your custom action. For instance, you can check if the process runs directly from your VBScript and if so, do something.

2. you can use our predefined "Detect Process" custom action and then condition your VBScript execution based on what the "Detec Process" custom action returned. For more information about this, you can have a look on our "How to detect or stop a process" how-to which I think you may find useful.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”