During custom action running, how to write any data or logging to the installation dialog screen description.In the install progress screen.?
You can refer the Microsoft article on adding custom action to the progress bar.
https://docs.microsoft.com/en-us/windows/desktop/Msi/adding-custom-actions-to-the-progressbar
https://docs.microsoft.com/en-us/windows/desktop/api/msiquery/nf-msiquery-msiprocessmessage
Instead of progress bar updation, I just need to update the text in the progress window.
Is there any simple method for that?
A solution for powershell custom actions or vbscript custom actions is preferrable.
I have attached a sample project with powershell custom action.
On Running the custom action the status will update as Custom action running,
https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/DisplayingActionText.htm#customizinginstallbehavior_1713100086_1188005
https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/SpecifyingActionTextData.htm#customizinginstallbehavior_1713100086_1187934
https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/DisplayingActionData.htm#customizinginstallbehavior_1713100086_1188036
What if, I want to update the messages during the custom action executing?
Like, let's say I am doing 3 actions in my custom action.
And if, while running action1, I want to update dynamically from the script to display as "action1 is running".
You can write your own custom action to update the progress bar status when the custom action is executing,
You can use the attached script file in Installscript msi project and see the process updates
If you put the script directly in OnBegin in an InstallScript MSI project you should see the results.
https://docs.microsoft.com/en-us/windows/desktop/api/msiquery/nf-msiquery-msiprocessmessage.
https://community.flexera.com/t5/InstallShield-Forum/Custom-Action-amp-Progressbar/m-p/83055?collapse_discussion=true&nospellcheck=true&q=ActionData&search_type=thread
https://docs.microsoft.com/en-us/windows/desktop/msi/adding-custom-actions-to-the-progressbar
Mine is basic msi project, not Installscript one.
And also, can you please provide a powershell or vbscript example.
Actually you can do it, by creating an action text for each custom action,
When a custom action 1 is running, the Action text assigned to it will be displayed,
When a custom action 2 is running, the Action text assigned to it will be displayed,
It will change based on custom action running, if you want to show the custom action output you can display it with message pop.
Create a property in manager TEST
using the script use can update it at run time and display.
#set-property -name TEST -value "MyTestingCustion";
$expo = get-property -name TEST;
set-property -name S_PS_EXPO -value $expo;
[System.Windows.Forms.Messagebox]::Show($expo);
exit(0)
How to show it in the progress text itself, the custom action output, instead of the popup message.?
As i mentioned in my last comment
Create you own custom action and set your custom action output to a property
In that custom action use command like this
set-property -name S_PS_EXPO -value "MYTESING";
And sequence it After install welcome
Go to Dialogs --> setup progress and add the property as descried in screenshot
At run time the property you see the value MYTESING in setup progress.
Drive Link for shared links PDFs and other resources: link
You can refer the Microsoft article on adding custom action to the progress bar.
https://docs.microsoft.com/en-us/windows/desktop/Msi/adding-custom-actions-to-the-progressbar
https://docs.microsoft.com/en-us/windows/desktop/api/msiquery/nf-msiquery-msiprocessmessage
Instead of progress bar updation, I just need to update the text in the progress window.
Is there any simple method for that?
A solution for powershell custom actions or vbscript custom actions is preferrable.
I have attached a sample project with powershell custom action.
On Running the custom action the status will update as Custom action running,
https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/DisplayingActionText.htm#customizinginstallbehavior_1713100086_1188005
https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/SpecifyingActionTextData.htm#customizinginstallbehavior_1713100086_1187934
https://helpnet.flexerasoftware.com/installshield22helplib/helplibrary/DisplayingActionData.htm#customizinginstallbehavior_1713100086_1188036
What if, I want to update the messages during the custom action executing?
Like, let's say I am doing 3 actions in my custom action.
And if, while running action1, I want to update dynamically from the script to display as "action1 is running".
You can write your own custom action to update the progress bar status when the custom action is executing,
You can use the attached script file in Installscript msi project and see the process updates
If you put the script directly in OnBegin in an InstallScript MSI project you should see the results.
https://docs.microsoft.com/en-us/windows/desktop/api/msiquery/nf-msiquery-msiprocessmessage.
https://community.flexera.com/t5/InstallShield-Forum/Custom-Action-amp-Progressbar/m-p/83055?collapse_discussion=true&nospellcheck=true&q=ActionData&search_type=thread
https://docs.microsoft.com/en-us/windows/desktop/msi/adding-custom-actions-to-the-progressbar
Mine is basic msi project, not Installscript one.
And also, can you please provide a powershell or vbscript example.
Actually you can do it, by creating an action text for each custom action,
When a custom action 1 is running, the Action text assigned to it will be displayed,
When a custom action 2 is running, the Action text assigned to it will be displayed,
It will change based on custom action running, if you want to show the custom action output you can display it with message pop.
Create a property in manager TEST
using the script use can update it at run time and display.
#set-property -name TEST -value "MyTestingCustion";
$expo = get-property -name TEST;
set-property -name S_PS_EXPO -value $expo;
[System.Windows.Forms.Messagebox]::Show($expo);
exit(0)
How to show it in the progress text itself, the custom action output, instead of the popup message.?
As i mentioned in my last comment
Create you own custom action and set your custom action output to a property
In that custom action use command like this
set-property -name S_PS_EXPO -value "MYTESING";
And sequence it After install welcome
Go to Dialogs --> setup progress and add the property as descried in screenshot
At run time the property you see the value MYTESING in setup progress.
Drive Link for shared links PDFs and other resources: link
No comments:
Post a Comment