I am testing my install out my product installer on a Windows Vista build and I am getting this error in a CA that is in a vbs file:
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
VBScript CA failing on Vista
Started by
slolife
, Dec 01 2005 00:01
1 reply to this topic
Posted 01 December 2005 - 00:01
CODE |
Action start 14:38:59: BrandCrossProduct. MSI (s) (78:E8) [14:38:59:272]: Generating random cookie. MSI (s) (78:E8) [14:38:59:282]: Created Custom Action Server with PID 2924 (0xB6C). MSI (s) (78:74) [14:38:59:346]: Running as a service. MSI (s) (78:74) [14:38:59:355]: Hello, I'm your 32bit Impersonated custom action server. MSI (s) (78:B0) [14:38:59:376]: Failed to marshal script action. MSI (s) (78:B0) [14:38:59:376]: Failed to marshal script action. Action ended 14:38:59: BrandCrossProduct. Return value 3. |
The function looks like this:
CODE |
Sub BrandCrossProduct Dim installedProductName installedProductName = Session.Property("CROSSPRODUCTUPGRADE") WriteToLog installedProductName Session.Property("CROSSPRODUCTUPGRADE") = Replace(Replace(installedProductName, "OldName", "NewName"), "Product", "Desktop Agent") WriteToLog Session.Property("CROSSPRODUCTUPGRADE") End Sub Sub WriteToLog(message) Const msiMessageTypeInfo = &H04000000 Dim msg, record msg = "[CUSTOMACTION]: " + message Set record = Session.Installer.CreateRecord(1) record.StringData(1) = msg record.StringData(0) = "[1]" record.FormatText Session.Message msiMessageTypeInfo, record End Sub |
Anyone have any ideas what "Failed to marshal script action." means in this case? I've read some places about that message appearing on XP SP2, but no real answers or suggestions other than to stop using VBScript in CAs. I plan to do that, but would like to know if there are any work arounds for the versions of my product that has already shipped.
Posted 02 December 2005 - 08:29
What's the type of your custom action and at which position is they included in sequence table?
Andreas Kerl
Inside Windows Installer 4.5
ISBN 3-86645-431-7