PDA

View Full Version : InstallScript Functions in Suite Project



rguggisberg
11-05-2015, 12:34 PM
Updated 04:31 PM EST
I just upgraded to IS 2015 SP1 to take advantage of new Suite functionality and I'm having trouble executing InstallScript functions in my Suite project. To eliminate the possibility of problems with my function I have everything commented out so that it is simply:

export prototype MyFunction();

function MyFunction()
begin
SuiteLogInfo("Testing1234");
end;

The function is being launched in OnStaging (although I get the same result no matter which event it is launched in) and I see the 'Display Text' being displayed for a second or two in the Suite window but SuiteLogInfo is not logging anything. My debug log always shows:

11-5-2015[11:15:29 AM]: Engine: staging parcels
11-5-2015[11:15:29 AM]: Engine: property 'ISInstallStatus' value now 'IDS_SUITE_STAGING'
11-5-2015[11:15:29 AM]: Engine: property 'ISInstallStatus' value now 'Testing MyFunction'
11-5-2015[11:15:29 AM]: Running event 'MyFunction'
11-5-2015[11:15:29 AM]: Launching InstallScript action in function 'MyFunction
11-5-2015[11:15:29 AM]: Engine: request for proxy handler, 0, 0
11-5-2015[11:15:31 AM]: Action returned value 0x80020005
11-5-2015[11:15:31 AM]: Action 'MyFunction' returned status 0x80070643
11-5-2015[11:15:31 AM]: Engine: property 'ISInstallStatus' value now 'IDS_SUITE_INTERRUPTED'

What am I missing?
Thanks

MichaelU
11-06-2015, 01:03 PM
Let's see, you came from InstallShield 2013, right? Have you undone the custom steps to support InstallScript actions in that version? They're no longer necessary, and in fact they get in the way. See this blog post for details: http://blogs.flexerasoftware.com/installtalk/2014/06/upgrading-suiteadvanced-ui-projects-that-used-installscript-actions-to-installshield-2014.html

rguggisberg
11-06-2015, 02:39 PM
Thanks Michael,
I deleted setup.rul and all of the files in the folder with it. Created a new Setup.rul that only has one usable line between Begin and End...
SuiteLogInfo("Testing1234");
The results are the same as before... I see the display text in the Suite window and get this in the log:
'MyFunction' returned status 0x80070643
And the install terminates.
Any other ideas?
Thanks

DLee65
11-06-2015, 02:44 PM
Look in your support files reference and make sure that you have cleared the old isrt references there. I think I had to do that.

rguggisberg
11-06-2015, 02:50 PM
I don't have any isrt files in Support.. or are you talking about some other Support files besides those under
Behavior and Logic
Support Files

MichaelU
11-09-2015, 09:13 AM
11-5-2015[11:15:31 AM]: Action returned value 0x80020005
The 80020005 indicates a type mismatch. Is your function's prototype correct? Make sure it accepts an OBJECT, and not, say, a HWND.

rguggisberg
11-09-2015, 10:01 AM
Thanks Michael... you are right. Changed to Object and it works fine! :)