http://bugs.winehq.org/show_bug.cgi?id=26176
Summary: JavaScript custom-actions not running? Product: Wine Version: 1.3.14 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msi AssignedTo: wine-bugs@winehq.org ReportedBy: ilan@cogniview.com
I have an MSI package that installs fine on Windows, but has a problem on Wine 1.2.2 and 1.3.14.
On a clean Ubuntu with Wine, it gives the error: "A previous installation of Cogniview none was detected."
I have access to the people who develop this package, and we came to the conclusion that it might be because some JavaScript custom actions are not executed properly.
For example, the custom action "MakeInstalledName" definitely doesn't execute.
You can download the package that has the problem from: http://download.cogniview.com/PDF2XL-Setup-Eval.msi
Note, that a *different* but similar package of the full product *works and installs fine* (it has some custom actions that are different): http://download.cogniview.com/PDF2XL-Setup-Full-4.10.msi
I tried running the package with full logs, something like: msiexec /lv* log.txt /i ... but the log output is very minimal and only gives me one line.
Any help will be greatly appreciated!
http://bugs.winehq.org/show_bug.cgi?id=26176
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net Component|msi |jscript
--- Comment #1 from Hans Leidekker hans@meelstraat.net 2011-02-21 07:11:56 CST --- Javascript custom actions are being run, and with native jscript the installer completes successfully, so the bug is in builtin jscript.
http://bugs.winehq.org/show_bug.cgi?id=26176
--- Comment #2 from Hans Leidekker hans@meelstraat.net 2011-02-21 07:15:18 CST --- Created an attachment (id=33387) --> (http://bugs.winehq.org/attachment.cgi?id=33387) +jscript trace
http://bugs.winehq.org/show_bug.cgi?id=26176
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer URL| |http://download.cogniview.c | |om/PDF2XL-Setup-Eval.msi
http://bugs.winehq.org/show_bug.cgi?id=26176
--- Comment #3 from Ilan Tayari ilan@cogniview.com 2011-02-23 02:18:36 CST --- Hans,
Thank you for the clarification.
In the log file that you attached (how do you generate it, btw?), one can see that the problems start in the function 'CombineInstalled', where if I understand it correctly, the variable 'Session' is not defined, and then an "Illegal assignment" error is thrown (line 884).
The Session variable is an object that is documented here: http://msdn.microsoft.com/en-us/library/aa371675%28VS.85%29.aspx And should exist as a global variable at that point.
I guess it is part of Windows Installer, and not a generic JScript object. Or am I wrong?
Do you think that the other errors (that are thrown later during 'MakeInstalledProductName') are related and/or the result of the first error?
http://bugs.winehq.org/show_bug.cgi?id=26176
--- Comment #4 from Hans Leidekker hans@meelstraat.net 2011-02-23 04:16:45 CST --- (In reply to comment #3)
In the log file that you attached (how do you generate it, btw?), one can see that the problems start in the function 'CombineInstalled', where if I understand it correctly, the variable 'Session' is not defined, and then an "Illegal assignment" error is thrown (line 884).
The log is created like this:
$ WINEDEBUG=+jscript wine msiexec /i installer.msi &> log.txt
The Session variable is an object that is documented here: http://msdn.microsoft.com/en-us/library/aa371675%28VS.85%29.aspx And should exist as a global variable at that point.
I guess it is part of Windows Installer, and not a generic JScript object. Or am I wrong?
Yes, and we do create this object in msi.
Do you think that the other errors (that are thrown later during 'MakeInstalledProductName') are related and/or the result of the first error?
Yes, probably.
http://bugs.winehq.org/show_bug.cgi?id=26176
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |jacek@codeweavers.com Ever Confirmed|0 |1
--- Comment #5 from Jacek Caban jacek@codeweavers.com 2011-02-23 06:36:40 CST --- Looking at those scripts, this kind of assignments are problematic for our jscript:
Session.Property("UpgradeText") = message;
http://bugs.winehq.org/show_bug.cgi?id=26176
--- Comment #6 from Ilan Tayari ilan@cogniview.com 2011-02-27 02:45:44 CST --- Jacek, I understand. Thank you for taking the time to examine the problem.
Can you recommend an alternative syntax for the assignment, which would work around the problem?
http://bugs.winehq.org/show_bug.cgi?id=26176
--- Comment #7 from Ilan Tayari ilan@cogniview.com 2011-03-08 10:27:48 CST --- Just an update for anyone who might end up here with similar problems:
We've resorted to DLL-based custom actions, and took away all JScript actions. This has been a relatively easy fix, which should work around a couple other JScript-related problems.
http://bugs.winehq.org/show_bug.cgi?id=26176
--- Comment #8 from Jacek Caban jacek@codeweavers.com 2012-04-17 09:32:04 CDT --- This patch implements missing feature:
http://source.winehq.org/patches/data/85523
http://bugs.winehq.org/show_bug.cgi?id=26176
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0b0e34ab390af7cec0123cbc452 | |425e83a419d57 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #9 from Jacek Caban jacek@codeweavers.com 2012-04-18 03:50:48 CDT --- Fixed in git.
http://bugs.winehq.org/show_bug.cgi?id=26176
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2012-04-27 12:59:06 CDT --- Closing bugs fixed in 1.5.3.