kambizt
Posts: 25
Joined: Thu Mar 30, 2006 11:25 pm

CustomAction Problem in Vista

I have an MSI file I have created using AI V5.2. This MSI file needs to Install/Uninstall one Protocol Driver using an embedded installer. This installer is being called using a CustomAction when needed. It's working just fine on all flavors of Windows X86 and X64, but Vista.
I created manifests and signed every individual component as well but it didn't fix anything. It seems like AI just avoids to execute my CustomAction. After the MSI is done installing my package, if I type that same command in the command prompt window, it runs fine and installs the protocol driver with no problem even if the window is not elevated.
I can't figure out why it runs individually on Vista but doesn't run when I include it in my MSI file using AI.

Please advise.

Thanks.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Try to set the Execution Options for the Custom Action(s) to "Deferred with no impersonation" such that the CA runs in system context (not using the credentials of the user performing the installation).

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
kambizt
Posts: 25
Joined: Thu Mar 30, 2006 11:25 pm

I'm amazed!
I tried this multiple times this morning and it didn't work. But after you sent me this reply, I tested it again and it did work this time. Magic!

I really appreciate your quick response.

Thanks again.
Lon
Posts: 10
Joined: Fri Jun 15, 2007 9:08 pm
Location: Virginia USA

What do you do when your custom action is failing on Vista and you cannot do the [deferred with no impersonation] option? My custom action needs a bunch of properties that are only available with the immediate option.

Thanks
Lon
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Lon,

If your Custom Action performs system changes it should be Deferred, not Immediate. The Property values will be specified in the "Action Data" field separated by a character that is appropriate in your case (for instance "|"):

Code: Select all

[PROP_1]|[PROP_2]|[PROP_3]
In your Custom Action you will retrieve the value of the CustomActionData Property and tokenize it, thus retrieving the values of the initial Properties.

If you need more details, let me know.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Lon
Posts: 10
Joined: Fri Jun 15, 2007 9:08 pm
Location: Virginia USA

This works great, thanks.
sarfu
Posts: 1
Joined: Thu Jul 09, 2009 1:20 pm

Re: CustomAction Problem in Vista

HI ,
I am using a executable that is UAC compliant and digitally signed.
and has to be run on custom action. whereas
there is a problem with this installer package . a program run as a part could not finish as expected contact your support personel or package vendor.
but whyen i use the executable without a digital signature adn deferred.it works as expected.

please help ASAP.

thanks & regards
Sarfu
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: CustomAction Problem in Vista

Hello,

Please note that on Windows Vista, all custom actions that require administrator privileges must run as deferred with no impersonation.
If your problem persists, please send us your .aip project file or a stripped down version that accurately reproduces the error, and the log to support at advancedinstaller com.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”