jrichmond
07-19-2006, 06:57 PM
I have two custom actions that call installscript functions to edit some XML. They are deferred and I am sure I have them in between install intialize and finalize. In fact, this worked perfectly in InstallShield X but when I converted to 12, all the sudden it does not execute. If I change them to Immediate Execution, they work, so the script is ok. But I need them deferred because I edit files that I install. From the log, it looks like they are being called, but none of the changes are made. If I use the debugger, it never even steps into the functions. Any help will be very appreciated. This is driving me crazy.
LOG (well the part that is supposedly calling the custom action):
SI (s) (F0:DC) [15:36:03:398]: Executing op: ActionStart(Name=EditAdminConsoleWizardConfig,,)
MSI (s) (F0:DC) [15:36:03:398]: Executing op: CustomActionSchedule(Action=EditAdminConsoleWizardConfig,ActionType=1025,Source=BinaryData,Target=f2,)
MSI (s) (F0:58) [15:36:03:570]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI1369.tmp, Entrypoint: f2
MSI (s) (F0:10) [15:36:03:570]: Generating random cookie.
MSI (s) (F0:10) [15:36:03:586]: Created Custom Action Server with PID 3472 (0xD90).
MSI (s) (F0:FC) [15:36:03:633]: Running as a service.
MSI (s) (F0:3C) [15:36:03:633]: Hello, I'm your 32bit Impersonated custom action server.
InstallShield: Running InstallScript function f2
InstallShield: IsBE.dll location: C:\Documents and Settings\All Users\Application Data\InstallShield\ISEngine12.0\IsBE.dll
InstallShield: Using temp folder C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}
InstallShield: Installing engine...
InstallShield: Using product language 1033
InstallShield: Extracting support file setup.inx to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\setup.inx
InstallShield: Opening stream of file C:\WINDOWS\Installer\MSI1369.tmp
InstallShield: Extracting support file ISRT.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\ISRT.dll
InstallShield: Extracting support file IsConfig.ini to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\IsConfig.ini
InstallShield: Extracting support file _isres1033.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\_isres.dll
InstallShield: Extracting support file String1033.txt to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\String1033.txt
InstallShield: Skipping optional support file _isuser1033.dll
InstallShield: Setting script cmdline...
InstallShield: ProductCode is {2A55E5FA-57A6-41FB-AA91-06467C9A2C43}
InstallShield: Initializing Engine
InstallShield: Done Initializing...
InstallShield: Registering Msi Server...
InstallShield: Invoking script function EditAdminConsoleWebConfig
InstallShield: CallScriptFunctionFromMsiCA() ends
MSI (s) (F0:DC) [15:36:05:242]: Executing op: ActionStart(Name=EditSetupAndRepairWizardConfig,,)
MSI (s) (F0:DC) [15:36:05:258]: Executing op: CustomActionSchedule(Action=EditSetupAndRepairWizardConfig,ActionType=1025,Source=BinaryData,Target=f1,)
MSI (s) (F0:6C) [15:36:05:430]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI136A.tmp, Entrypoint: f1
InstallShield: Running InstallScript function f1
InstallShield: IsBE.dll location: C:\Documents and Settings\All Users\Application Data\InstallShield\ISEngine12.0\IsBE.dll
InstallShield: Using temp folder C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}
InstallShield: Installing engine...
InstallShield: Using product language 1033
InstallShield: Extracting support file setup.inx to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\setup.inx
InstallShield: Opening stream of file C:\WINDOWS\Installer\MSI136A.tmp
InstallShield: Extracting support file ISRT.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\ISRT.dll
InstallShield: Extracting support file IsConfig.ini to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\IsConfig.ini
InstallShield: Extracting support file _isres1033.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\_isres.dll
InstallShield: Extracting support file String1033.txt to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\String1033.txt
InstallShield: Skipping optional support file _isuser1033.dll
InstallShield: Setting script cmdline...
InstallShield: ProductCode is {2A55E5FA-57A6-41FB-AA91-06467C9A2C43}
InstallShield: Initializing Engine
InstallShield: Done Initializing...
InstallShield: Registering Msi Server...
InstallShield: Invoking script function EditSetupAndRepairWebConfig
InstallShield: CallScriptFunctionFromMsiCA() ends
MSI (s) (F0:DC) [15:36:06:945]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=110772080)
MSI (s) (F0:DC) [15:36:07:367]: User policy value 'DisableRollback' is 0
MSI (s) (F0:DC) [15:36:07:367]: Machine policy value 'DisableRollback' is 0
MSI (s) (F0:DC) [15:36:07:398]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 103, llSequenceNumber: 768, szDescription: "".
MSI (s) (F0:DC) [15:36:07:398]: The call to SRSetRestorePoint API succeeded. Returned status: 0.
MSI (s) (F0:DC) [15:36:07:398]: Unlocking Server
MSI (s) (F0:DC) [15:36:07:398]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 15:36:07: InstallFinalize. Return value 1.
MSI (s) (F0:DC) [15:36:07:398]: Skipping action: ScheduleReboot (condition is false)
Action ended 15:36:07: INSTALL. Return value 1.
MSI (s) (F0:DC) [15:36:07:414]: MainEngineThread is returning 0
MSI (s) (F0:64) [15:36:07:414]: Destroying RemoteAPI object.
MSI (s) (F0:10) [15:36:07:414]: Custom Action Manager thread ending.
MSI (c) (10:88) [15:36:07:414]: Back from server. Return value: 0
MSI (c) (10:88) [15:36:07:414]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (10:88) [15:36:07:414]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 15:36:07: ExecuteAction. Return value 1.
MSI (c) (10:88) [15:36:07:414]: Doing action: SetupCompleteSuccess
Action start 15:36:07: SetupCompleteSuccess.
LOG (well the part that is supposedly calling the custom action):
SI (s) (F0:DC) [15:36:03:398]: Executing op: ActionStart(Name=EditAdminConsoleWizardConfig,,)
MSI (s) (F0:DC) [15:36:03:398]: Executing op: CustomActionSchedule(Action=EditAdminConsoleWizardConfig,ActionType=1025,Source=BinaryData,Target=f2,)
MSI (s) (F0:58) [15:36:03:570]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI1369.tmp, Entrypoint: f2
MSI (s) (F0:10) [15:36:03:570]: Generating random cookie.
MSI (s) (F0:10) [15:36:03:586]: Created Custom Action Server with PID 3472 (0xD90).
MSI (s) (F0:FC) [15:36:03:633]: Running as a service.
MSI (s) (F0:3C) [15:36:03:633]: Hello, I'm your 32bit Impersonated custom action server.
InstallShield: Running InstallScript function f2
InstallShield: IsBE.dll location: C:\Documents and Settings\All Users\Application Data\InstallShield\ISEngine12.0\IsBE.dll
InstallShield: Using temp folder C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}
InstallShield: Installing engine...
InstallShield: Using product language 1033
InstallShield: Extracting support file setup.inx to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\setup.inx
InstallShield: Opening stream of file C:\WINDOWS\Installer\MSI1369.tmp
InstallShield: Extracting support file ISRT.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\ISRT.dll
InstallShield: Extracting support file IsConfig.ini to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\IsConfig.ini
InstallShield: Extracting support file _isres1033.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\_isres.dll
InstallShield: Extracting support file String1033.txt to C:\DOCUME~1\richmond\LOCALS~1\Temp\{36AA67C3-0ED7-4524-90AD-9A5DE4179590}\String1033.txt
InstallShield: Skipping optional support file _isuser1033.dll
InstallShield: Setting script cmdline...
InstallShield: ProductCode is {2A55E5FA-57A6-41FB-AA91-06467C9A2C43}
InstallShield: Initializing Engine
InstallShield: Done Initializing...
InstallShield: Registering Msi Server...
InstallShield: Invoking script function EditAdminConsoleWebConfig
InstallShield: CallScriptFunctionFromMsiCA() ends
MSI (s) (F0:DC) [15:36:05:242]: Executing op: ActionStart(Name=EditSetupAndRepairWizardConfig,,)
MSI (s) (F0:DC) [15:36:05:258]: Executing op: CustomActionSchedule(Action=EditSetupAndRepairWizardConfig,ActionType=1025,Source=BinaryData,Target=f1,)
MSI (s) (F0:6C) [15:36:05:430]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI136A.tmp, Entrypoint: f1
InstallShield: Running InstallScript function f1
InstallShield: IsBE.dll location: C:\Documents and Settings\All Users\Application Data\InstallShield\ISEngine12.0\IsBE.dll
InstallShield: Using temp folder C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}
InstallShield: Installing engine...
InstallShield: Using product language 1033
InstallShield: Extracting support file setup.inx to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\setup.inx
InstallShield: Opening stream of file C:\WINDOWS\Installer\MSI136A.tmp
InstallShield: Extracting support file ISRT.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\ISRT.dll
InstallShield: Extracting support file IsConfig.ini to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\IsConfig.ini
InstallShield: Extracting support file _isres1033.dll to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\_isres.dll
InstallShield: Extracting support file String1033.txt to C:\DOCUME~1\richmond\LOCALS~1\Temp\{7E4EB064-5F2D-4E6B-8EE6-89D7C03D25B4}\String1033.txt
InstallShield: Skipping optional support file _isuser1033.dll
InstallShield: Setting script cmdline...
InstallShield: ProductCode is {2A55E5FA-57A6-41FB-AA91-06467C9A2C43}
InstallShield: Initializing Engine
InstallShield: Done Initializing...
InstallShield: Registering Msi Server...
InstallShield: Invoking script function EditSetupAndRepairWebConfig
InstallShield: CallScriptFunctionFromMsiCA() ends
MSI (s) (F0:DC) [15:36:06:945]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=110772080)
MSI (s) (F0:DC) [15:36:07:367]: User policy value 'DisableRollback' is 0
MSI (s) (F0:DC) [15:36:07:367]: Machine policy value 'DisableRollback' is 0
MSI (s) (F0:DC) [15:36:07:398]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 103, llSequenceNumber: 768, szDescription: "".
MSI (s) (F0:DC) [15:36:07:398]: The call to SRSetRestorePoint API succeeded. Returned status: 0.
MSI (s) (F0:DC) [15:36:07:398]: Unlocking Server
MSI (s) (F0:DC) [15:36:07:398]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 15:36:07: InstallFinalize. Return value 1.
MSI (s) (F0:DC) [15:36:07:398]: Skipping action: ScheduleReboot (condition is false)
Action ended 15:36:07: INSTALL. Return value 1.
MSI (s) (F0:DC) [15:36:07:414]: MainEngineThread is returning 0
MSI (s) (F0:64) [15:36:07:414]: Destroying RemoteAPI object.
MSI (s) (F0:10) [15:36:07:414]: Custom Action Manager thread ending.
MSI (c) (10:88) [15:36:07:414]: Back from server. Return value: 0
MSI (c) (10:88) [15:36:07:414]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (10:88) [15:36:07:414]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 15:36:07: ExecuteAction. Return value 1.
MSI (c) (10:88) [15:36:07:414]: Doing action: SetupCompleteSuccess
Action start 15:36:07: SetupCompleteSuccess.