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!

NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Detect and finalize processes if they are executed

Before we begin, I want to congratulate the developers of this program. I have a couple of days working with him and am about to buy a full license.

Before I wanted to solve a couple of questions to put them into practice in my installer.


1) As I can make the prerequisites are required to install. If they are not installed no longer continue with the installation.

2) Once you uninstall or update the program, I wonder if any of my programs executable file is open and what is it complete. How I can do this?

I would appreciate an answer, I'm anxious to finish testing this software with these questions you have.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect and finalize processes if they are executed

Hello and welcome to Advanced Installer forums,
Before we begin, I want to congratulate the developers of this program. I have a couple of days working with him and am about to buy a full license.
Thank you for your kind words and interest in Advanced Installer.
1) As I can make the prerequisites are required to install. If they are not installed no longer continue with the installation.
For this, please make sure the Continue with main installation even if the prerequisite is not installed option is disabled in the Prerequisite Properties Tab.
2) Once you uninstall or update the program, I wonder if any of my programs executable file is open and what is it complete. How I can do this?
If you received the file in use dialog, then please note that this dialog ("FilesInUse" on XP and "MsiRMFilesInUse" on Vista) is shown automatically by Windows Installer during the InstallValidate standard action when the installer checks if any file is in use and if so, it displays that dialog.

This dialog can be avoided by running a Detect and Stop custom actions before the install/uninstall process which stops the processes which use the files.
Please take a look on the Detect or stop a process How-to article which may be useful to you.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

Hi thanks for answering.

I could do without problems from the prerequisites. The only thing I did not clarify me is my second problem.

I fail to understand the help of the website. Could you give me step by step and with some screenshots to make it to detect the process is executed and if I finish it?

What else wanted to ask another question, how I can edit the text color of a label of a dialogue? I'm looking at the faqs and I can not find it.

In another question, I could say as I include a dialogue to include the terms and conditions of the program in an RTF file?

Thank You
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

Hi Dan,

Hope it's not too much trouble the answer above. Hope you can help me with any questions raised him.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect and finalize processes if they are executed

Hi,
I could do without problems from the prerequisites. The only thing I did not clarify me is my second problem.

I fail to understand the help of the website. Could you give me step by step and with some screenshots to make it to detect the process is executed and if I finish it?
Please take a look on the Tutorial: Detecting and stopping multiple processes forum thread or on the Checking for the running process and terminating the same forum thread where you can find step by step details how this can be implemented and useful samples.
[..] how I can edit the text color of a label of a dialogue? I'm looking at the faqs and I can not find it.
In the Text Style Tab from the Themes page you can create new text style or edit existing ones.
Then, in the properties view of the related control in the Dialogs page, you can set the text style for the related control. Please see the attached image for your reference:
SetTextStyle to a Control.png
SetTextStyle to a Control.png (117.51 KiB) Viewed 12575 times
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

Hi Dan,

He has done much help. It ends smoothly and works all right. Before closing the post and mark it as resolved, Give you two questions I would like more.

1º- Is it possible to do that when the installation or maintenance of the program to start, play a file where the application is installed with a command? For example, MyApplication.exe (inside the Program Files folder with the following command /unins)

Would it be possible to run the file with a command and expect it to close when it detects continue uninstalling?


2º- How do I add the file Terms and conditions installer? I found a part, but when I compile error that tells me only MSI. I'm doing the .exe installer only, not if it influences or has to be done on a MSI package.

Thank You
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect and finalize processes if they are executed

Hi,
1º- Is it possible to do that when the installation or maintenance of the program to start, play a file where the application is installed with a command? For example, MyApplication.exe (inside the Program Files folder with the following command /unins)
In order to launch a file, you can use the predefined Launch file custom action. From the custom actions properties, you can set its Execution Stage Condition, according to your scenario.
2º- How do I add the file Terms and conditions installer? I found a part, but when I compile error that tells me only MSI. I'm doing the .exe installer only, not if it influences or has to be done on a MSI package.
If you want to add an EULA to your installation package, please follow the steps from the How do I add an EULA to my package? article.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

Hi Dan, thanks for responding.

I did not clarify me to help me execute a file system with a command and when finished to continue with the task of maintaining the installer.

Is there any tutorial done in the community?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect and finalize processes if they are executed

Hi,

Have you tried using the Launch file custom action to launch your .EXE file? Through the command line field you can pass command line switch to the related .EXE (e.g. unins).
From the Execution Stage Condition section of the custom actions properties you can select when your custom action will be executed.

Please let me know if that helped, otherwise give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

Hi Dan,

I try to follow the help but I can not understand how to do it.
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

Could you help me?

Thank You
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect and finalize processes if they are executed

Hi Nova,

I'm not sure what have you tried and what behaviour you had encountered.

To launch the related file, you can use the Launch file predefined custom action. Since the the File to launch: field from the custom actions properties is of Formatted Type then you can a reference to the related file.
Through the command line field you can pass command line switch to the related .EXE (e.g. unins).
You can use the below image for your reference.
LaunchFileCA - Sample.png
LaunchFileCA - Sample.png (44.47 KiB) Viewed 12410 times
Let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

hi thanks for replying.

When it starts, I skip a notification that has not been able to execute the file or something and contact the package manager. I do not remember the message but something tells me the alert and the package fails to be uninstalled or installed.

I expect an answer thanks
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

They could help me, thanks
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: Detect and finalize processes if they are executed

They could help me thanks

Return to “Building Installers”