Custom Action failure

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Custom Action failure

Postby BrianLee » Thu May 31, 2012 12:43 am

Hi there,

I have a custom action that calls a function from a dll to create a txt file that lists environment variables.
When I run the installer, the file is created as intended. However, installation process seems to be halted after that particular custom action.
Here is the log entry just before the process is halted.
Any idea why the process is stopped?

MSI (s) (3C:B8) [16:24:24:087]: PROPERTY CHANGE: Adding CustomActionData property. Its value is 'C:\ODProfessional\ODProInstaller.dll?V;;S;?ConnectToCache@ODProInstall@ODProInstaller@@SAXXZ;'.
MSI (s) (3C:B8) [16:24:24:088]: Doing action: ConnectToCache
MSI (s) (3C:68) [16:24:24:094]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI686B.tmp, Entrypoint: CallStdFcn
MSI (s) (3C:B8) [16:24:31:539]: Doing action: AI_DATA_SETTER_1
MSI (s) (3C:B8) [16:24:31:540]: PROPERTY CHANGE: Modifying CustomActionData property. Its current value is 'C:\ODProfessional\ODProInstaller.dll?V;;S;?ConnectToCache@ODProInstall@ODProInstaller@@SAXXZ;'. Its new value: 'C:\ODProfessional\ODProInstaller.dll?V;;S;?ImportZInstall@ODProInstall@ODProInstaller@@SAXPAD@Z;Q;s;I;C:\ODProfessional\ZInstall.xml?'.
MSI (s) (3C:B8) [16:24:31:540]: Doing action: ImportRoutines
MSI (s) (3C:64) [16:24:31:546]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI858D.tmp, Entrypoint: CallStdFcn
MSI (s) (3C:B8) [16:24:34:827]: Doing action: AI_DATA_SETTER_2
MSI (s) (3C:B8) [16:24:34:828]: PROPERTY CHANGE: Modifying CustomActionData property. Its current value is 'C:\ODProfessional\ODProInstaller.dll?V;;S;?ImportZInstall@ODProInstall@ODProInstaller@@SAXPAD@Z;Q;s;I;C:\ODProfessional\ZInstall.xml?'. Its new value: 'C:\ODProfessional\ODProInstaller.dll?V;;S;?ImportZInstall@ODProInstall@ODProInstaller@@SAXPAD@Z;Q;s;I;C:\ODProfessional\ZInstallClass.xml?'.
MSI (s) (3C:B8) [16:24:34:828]: Doing action: ImportZInstallClass
MSI (s) (3C:D8) [16:24:34:834]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI9269.tmp, Entrypoint: CallStdFcn
MSI (s) (3C:B8) [16:24:35:228]: Doing action: AI_DATA_SETTER_4
MSI (s) (3C:B8) [16:24:35:228]: PROPERTY CHANGE: Modifying CustomActionData property. Its current value is 'C:\ODProfessional\ODProInstaller.dll?V;;S;?ImportZInstall@ODProInstall@ODProInstaller@@SAXPAD@Z;Q;s;I;C:\ODProfessional\ZInstallClass.xml?'. Its new value: 'C:\ODProfessional\ODProInstaller.dll?V;;S;?CreateEnvFile@ODProInstall@ODProInstaller@@SAXPAD00000000H0HHHHHH0@Z;Q;s;P;BaseDirectory?Q;s;P;Type?Q;s;P;Version?Q;s;P;DB1?Q;s;P;DB2?Q;s;P;CacheInstance?Q;s;P;CacheRoot?Q;s;P;EMRRoot?Q;s;P;PGMRoot?V;I;P;LUXOTTICA?Q;s;P;SPLASH?V;I;P;optionBackup?V;I;P;optionConversion?V;I;P;optionCopy?V;I;P;optionODSYS?V;I;P;optionCustom?V;I;P;optionCleanup?Q;s;P;optionTuneTable?'.
MSI (s) (3C:B8) [16:24:35:229]: Doing action: SetEnvVariables
MSI (s) (3C:BC) [16:24:35:235]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI9400.tmp, Entrypoint: CallStdFcn
MSI (s) (3C:B8) [16:24:36:846]: MainEngineThread is returning 1603
MSI (s) (3C:24) [16:24:36:850]: RESTART MANAGER: Session closed.
MSI (s) (3C:24) [16:24:36:852]: User policy value 'DisableRollback' is 0
MSI (s) (3C:24) [16:24:36:852]: Machine policy value 'DisableRollback' is 0
MSI (s) (3C:24) [16:24:36:852]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (3C:24) [16:24:36:852]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (3C:24) [16:24:36:853]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (3C:24) [16:24:36:854]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (3C:24) [16:24:36:854]: Restoring environment variables
MSI (s) (3C:24) [16:24:36:855]: Destroying RemoteAPI object.
MSI (s) (3C:88) [16:24:36:855]: Custom Action Manager thread ending.
BrianLee
 
Posts: 3
Joined: Wed May 16, 2012 11:04 pm

Re: Custom Action failure

Postby Bogdan » Thu May 31, 2012 1:31 pm

Hi,

According to the log the custom action "SetEnvVariables" fails. This could happen due to insufficient permissions to write in the desired location or other reasons.

To make the custom action run with full admin rights you can set it as "Deferred with no impersonation". If rights is not the problem you will have to attach to your custom action and debug it. I'm afraid we do not debug custom actions created by our users.

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2398
Joined: Tue Jul 07, 2009 7:34 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot] and 4 guests