This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: InstallScript Functions in Suite Project
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Nov 05, 2015
11:34 AM
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
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
(6) Replies
‎Nov 06, 2015
12: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
‎Nov 06, 2015
01: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
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
‎Nov 06, 2015
01: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
Behavior and Logic
Support Files
‎Nov 09, 2015
08:13 AM
[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.
The 80020005 indicates a type mismatch. Is your function's prototype correct? Make sure it accepts an OBJECT, and not, say, a HWND.
‎Nov 09, 2015
09:01 AM
Thanks Michael... you are right. Changed to Object and it works fine! 🙂