Images in the MSI Setup - Page 2 - 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!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Images in the MSI Setup

Hi Gabriel,

Its an urgent issue... Please provide your suggestions at the earliest.

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Images in the MSI Setup

Hi Sony,

The custom action must be set as "Asynchronous execution, do not wait for return" and "Deferred with no impersonation".

Also, you should try to move it under "InstallIIS" standard action, this is executed exactly before InstallFinalize.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Images in the MSI Setup

Hi Bogdan,

When I moved the custom action under the "InstallIIS" standard action and set as "Asynchronous execution, do not wait for return" and "Deferred with no impersonation". the exe is getting uninstalled properly. Actually I want to sequence it just before the product uninstallation. i.e first the exe should get uninstalled later the installer. when I have added the condition REMOVE="ALL" in the custom action execution condition. The custom action is not getting executed during uninstallation.

Please reply to this issue quickly.

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Images in the MSI Setup

Hi Sony,
Actually I want to sequence it just before the product uninstallation. i.e first the exe should get uninstalled later the installer.
To do so you will need to show the standard action "InstallInitialize" and place the custom action under it.
when I have added the condition REMOVE="ALL" in the custom action execution condition.
This probably happens because not all the features of the package are removed. In this case the property "REMOVE" will contain a list with the identifiers of the features
that will be removed, not the value "ALL". You can easily check this if you create a verbose log and search in the string "REMOVE".

Another condition that you could use would be this:

Code: Select all

REMOVE
This will make the condition be true if the property contains something, i.e. the string "ALL" or the identifier of a feature.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Images in the MSI Setup

Bogdan,

I have moved the custom action under the "InstallInitialize" standard action and have set as "Asynchronous execution, do not wait for return" and "Deferred with no impersonation".

By doing this, custom actions is not getting executed :( . Any other suggestion ?

Please reply..

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Images in the MSI Setup

Hi,

Please note that those two settings cannot decide if the custom action is executed or not. They can at most make it fail, i.e. it will not execute correctly.

If the custom action is not executed is because of the condition. Can you please try to leave it blank for the beginning, to see if it is executed.

You can see what really happens with the custom action in a verbose log, simpy search for its name in it.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Images in the MSI Setup

Bogdan,

If I move the custom action under the "InstallInitialize" standard action, the custom action is not getting executed( with conditon and without conditon).

Is there any other way to uninstall the appplication silently during uninstallation? Please help...

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Images in the MSI Setup

Hi Sony,

Can you post either the installation log or the aip file so we can further study the issue?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Images in the MSI Setup

Gabriel,

I have sent the sample to support at advancedinstaller dot com.

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Images in the MSI Setup

Hi Sony,

The problem is that you have the file as a regular one in the Files and Folders page, you need to add it as a temporary like this:
-- go to Windows Volume -> Temporary
-- delete the current file
-- right click in the right side view and select from the context menu "Add temporary file" and select the file from the disk
-- update the reference of the file for the custom action, i.e. pick the file again

This should make the custom action to work correctly under InstallInitialize.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Images in the MSI Setup

Bogdan,

If I add the exe file as a temporary file. The file is not getting installed at all and exe is throwing run time error message... kindly implement your suggestions in my sample that I have provided.

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Images in the MSI Setup

Hi Sony,

Attached is your modified file. I have replaced the references of your custom actions to the new temporary file.

All you need to do is to go to Files and Folders place, double click the file and set the source path from your machine for the file.

Regards,
Bogdan
Attachments
Demo2.aip
(8.56 KiB) Downloaded 683 times
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”