cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rguggisberg
Level 13

InstallScript Functions in Suite Project

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
Labels (1)
0 Kudos
(6) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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
0 Kudos
rguggisberg
Level 13

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
0 Kudos
DLee65
Level 13

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.
0 Kudos
rguggisberg
Level 13

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
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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

Thanks Michael... you are right. Changed to Object and it works fine! 🙂
0 Kudos