PDA

View Full Version : Beta 2: Unable to execute InstallScript CustomAction



Barbara
04-25-2006, 03:22 AM
I want to execute a direct installscript customaction, which fails. There is no error message during the installation, the customaction is just not executed. In the installation log one can see the following entries:

Action ended 09:51:57: ISSetAllUsers. Return value 1.
MSI (c) (98:38) [09:51:57:295]: Doing action: InitInstallation
Action 09:51:57: InitInstallation.
Action start 09:51:57: InitInstallation.
MSI (c) (98:C8) [09:51:57:327]: Invoking remote custom action. DLL: C:\DOCUME~1\BM\LOCALS~1\Temp\MSI297.tmp, Entrypoint: f6
InstallShield: Running InstallScript function f6
InstallShield: IsBE.dll location: C:\Documents and Settings\BM\Application Data\InstallShield\ISEngine12.0\IsBE.dll
InstallShield: Using temp folder C:\DOCUME~1\BM\LOCALS~1\Temp\{9A3BF406-1D19-4466-9CBE-86C9D5D949D7}
InstallShield: Installing engine...
InstallShield: Using product language 0
InstallShield: Extracting support file setup.inx to C:\DOCUME~1\BM\LOCALS~1\Temp\{9A3BF406-1D19-4466-9CBE-86C9D5D949D7}\setup.inx
InstallShield: Opening stream of file C:\DOCUME~1\BM\LOCALS~1\Temp\MSI297.tmp
InstallShield: Extracting support file ISRT.dll to C:\DOCUME~1\BM\LOCALS~1\Temp\{9A3BF406-1D19-4466-9CBE-86C9D5D949D7}\ISRT.dll
InstallShield: Extracting support file _isres0.dll to C:\DOCUME~1\BM\LOCALS~1\Temp\{9A3BF406-1D19-4466-9CBE-86C9D5D949D7}\_isres.dll
InstallShield: Failed to extract file _isres0.dll. Error = 0
InstallShield: Setting script cmdline...
InstallShield: ProductCode is {FB7A314E-92B4-4590-BFA8-55869FB65F21}
InstallShield: Initializing Engine
InstallShield: Extracting support file StringƒMüÿMÈè»…øÿ‹Mô_^d‰.txt to C:\DOCUME~1\BM\LOCALS~1\Temp\{9A3BF406-1D19-4466-9CBE-86C9D5D949D7}\String°Ž˜.txt
InstallShield: Failed to extract file String‹MESPh°q›.txt. Error = 0
InstallShield: Done Initializing...
InstallShield: Registering Msi Server...
MSI (c) (98!D4) [09:51:57:920]: Note: 1: 2732 2: 0
InstallShield: IsConfig.ini not found: C:\DOCUME~1\BM\LOCALS~1\Temp\{9A3BF406-1D19-4466-9CBE-86C9D5D949D7}\IsConfig.ini
InstallShield: Invoking script function f6
InstallShield: CallScriptFunctionFromMsiCA() ends
Action ended 09:51:57: InitInstallation. Return value 1.
MSI (c) (98:38) [09:51:57:998]: Doing action: AppSearch
Action 09:51:57: AppSearch. Searching for installed applications

Barbara

MartinMarkevics
04-26-2006, 04:15 PM
This should be fixed in the RTM build, but to make sure... Do you have a sample project with which this can be reproduced? If not, can you send me your project file (mmarkevics@macrovision.com). I'll have a look to see what's up.

Looking at the log, the issue here is that the custom action fails to determine the setup language. It uses 0 in this case and bad stuff happens after that as a result. Interestingly, this was an issue with Commit custom actions that we recently fixed. It doesn't look like that is the case here, but regardless the code we added is a little smarter about what language to use if it cannot be determined (though I'm not sure why it can't be determined in this case so I would like to take a look).

MartinMarkevics
05-05-2006, 07:27 AM
In case anyone is interested in the outcome... Barbara and I spoke off line and this issue was resolved. I sent Barbara the latest version of the engine and all works fine now.

Barbara
05-09-2006, 07:13 AM
Thanks to Martin I got the InstallScript custom actions running on the 32bit machines.
I tested the same setup running on the intel machines on a x64 machine and the InstallScript custom actions are not running.
Heres the part from the MSI logfile:

1: InstallShield - ISSetAllUsers (End)
Aktion beendet um 13:47:07: ISSetAllUsers. Rückgabewert 1.
MSI (c) (9C:30) [13:47:07:321]: Doing action: InitInstallation
Aktion 13:47:07: InitInstallation.
Aktion gestartet um 13:47:07: InitInstallation.
MSI (c) (9C:54) [13:47:07:431]: Invoking remote custom action. DLL: C:\DOCUME~1\BM\LOCALS~1\Temp\MSI19.tmp, Entrypoint: f6
InstallShield: Running InstallScript function f6
InstallShield: IsBE.dll location: C:\Documents and Settings\All Users\Application Data\InstallShield\ISEngine12.0\IsBE.dll
InstallShield: Using temp folder C:\DOCUME~1\BM\LOCALS~1\Temp\{61C71B5E-86FD-477E-9786-D6694AC3CFFD}
InstallShield: Installing engine...
InstallShield: Using product language 0
InstallShield: Extracting support file setup.inx to C:\DOCUME~1\BM\LOCALS~1\Temp\{61C71B5E-86FD-477E-9786-D6694AC3CFFD}\setup.inx
InstallShield: Opening stream of file C:\DOCUME~1\BM\LOCALS~1\Temp\MSI19.tmp
InstallShield: Extracting support file ISRT.dll to C:\DOCUME~1\BM\LOCALS~1\Temp\{61C71B5E-86FD-477E-9786-D6694AC3CFFD}\ISRT.dll
InstallShield: Extracting support file IsConfig.ini to C:\DOCUME~1\BM\LOCALS~1\Temp\{61C71B5E-86FD-477E-9786-D6694AC3CFFD}\IsConfig.ini
InstallShield: Extracting support file _isres.dll to C:\DOCUME~1\BM\LOCALS~1\Temp\{61C71B5E-86FD-477E-9786-D6694AC3CFFD}\_isres.dll
InstallShield: Failed to extract file _isres.dll. Error = 0
InstallShield: Setting script cmdline...
InstallShield: ProductCode is {FB7A314E-92B4-4590-BFA8-55869FB65F21}
InstallShield: Initializing Engine
InstallShield: Script function f6 failure. Unknown Exception.
Aktion beendet um 13:47:08: InitInstallation. Rückgabewert 1.

Barbara

MartinMarkevics
05-09-2006, 12:20 PM
FYI... Barbara and I are talking about this offline.

For anyone that is interested, I believe the problem here is that she is using a newer version of ISSetup.dll (which I had sent to her since the Beta 2 release to resolve another issue) and an older version of a 64-bit binary from the Beta 2 release. The two versions won't work together, so I'm having her try the latest bits to make sure everything works OK. I'll let everyone know once we get this resolved either way.

Jennifer
05-19-2006, 05:16 PM
Can you tell me what bad stuff happens in a case like this? Does the bad stuff include the Windows Installer crashing on Vista? This is what I am experiencing, and the errors are similar to what Barbara listed:

InstallShield: Failed to extract file _isres.dll. Error = 0
InstallShield: Setting script cmdline...
InstallShield: ProductCode is
InstallShield: Initializing Engine
InstallShield: Extracting support file StringƒMüÿMÈèvÐ÷ÿ‹Mô_^d‰ .txt to C:\Users\devadm\AppData\Local\Temp\{DDA730F3-31D0-4D04-823F-8A5BDB823EB2}\String°.txt
InstallShield: Failed to extract file String‹MESPh …‰9‰q èzé÷ÿƒMðM”ÆEüèÉÕ÷ÿë%‹MìE¼Pÿu è¢.txt. Error = 0

MartinMarkevics
05-22-2006, 12:25 PM
Jennifer and I are chatting offline about this. I will let everyone know the outcome....