Summary
To Update Suite Progress bar using InstallScript CustomAction
Synopsis
This information applies to the following InstallShield project types:
- Suite
Cause
On Installing a suite setup with an installscript custom action added it takes more time to do its action, at this time there wont be any progress shown in suite progress bar, which will look like the setup is hanging.
Resolution
In your suite project:
Go to Installscript and create your script, Sample code:
function MyFunction(oExtension)
// To Do: Declare local variables.
begin
// To Do: Write script that will be executed when MyFunction is called.
USER32.MessageBoxW(GetWindowHandle(HWND_INSTALL), "First installing Message box version already exist. Aborting", "Same Build", MB_OK|MB_ICONSTOP);
if(IsObject(SuiteHost)) then
SuiteHost.SendProgressMessage("Status message here goes to suite progress window", 50,100,2);
//USER32.MessageBoxW(GetWindowHandle(HWND_INSTALL), "progress change", "Same Build", MB_OK|MB_ICONSTOP);
SuiteHost.SendProgressMessage("Status message here goes to suite progress window", 50,100,1);
endif;
USER32.MessageBoxW(GetWindowHandle(HWND_INSTALL), "Last installing Message box version already exist. Aborting", "Same Build", MB_OK|MB_ICONSTOP);
end;
Go to Events and create a Action and add it as per requirement (EX: Onpackages Configured)
Then go to the Wizard Interface view
We need to create a custom progress bar in wizard pages --> Installation progress dialog
We need to set the property under Content section to --> ISParcelProgress
Need to set the visible under Appearance to below values:
Any
|
--> Property comparison
Name --> ISInstallMode
Conversion --> String
Comparison --> Not Equal to
Compare to --> update
Set Anchor size x to TRUE
Style WS_CLIPSIBLINGS to TRUE
Refer the attached sample project
Additional Information
How to Show Progress for Multiple Windows Features Being Enabled
Related Articles
Suite Feature Selection using InstallScript based on user input 8Number of Views Expected Behavior of InstallScript Feature Selections 3Number of Views Create a Shortcut Using Installscript Based on User Input and Delete The Shortcut on Uninstalling The Installer 8Number of Views Change Installation State of a Feature, Based on Another Feature's Selection State 5Number of Views Display of Suite Controls Based on Feature Selection 12Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago