dorukar
Posts: 12
Joined: Thu Sep 20, 2007 1:37 pm

Skipping installation

Mon Nov 05, 2007 11:01 pm

Hi all,

I want my installer firstly detects if the program has been installed before, and if so than skips the all installation process. Is there anyway of doing this practically.

Doruk Ar
CENG
Media Team

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Tue Nov 06, 2007 9:39 am

Hi,

This can be done by using an "Error Message" custom action.

Here are the steps:
- in the "Custom actions" page, under "InstallUISequence", you show the "Begin" standard action (you can use the "Show Standard Action" button on the toolbar)
- for the custom action you set the "Message Text" field to "The product is already installed!" (for example)
- in the "Expression" field you add this condition:

Code: Select all

(Installed)
You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

dorukar
Posts: 12
Joined: Thu Sep 20, 2007 1:37 pm

Wed Nov 07, 2007 1:33 am

Cosmin,
Thanks very much for your help again.
I have one further question.
What if I do not want to display any dialogs or messages in that kind of a situation?


Doruk

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Wed Nov 07, 2007 1:16 pm

Hi,

I'm afraid that this is not possible. When you launch the MSI of an installed program, that MSI will enter in maintenance mode (Modify, Repair and Remove options).

By using the custom action you basically interrupt this process and exit the maintenance mode.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”