[wix-users] Custom Progress Dialog

Edwin Castro egcastr at gmail.com
Fri Mar 2 14:06:41 PST 2018

That statement applies to standard actions. I already described what the
WiX custom action does. You will not get the names of files unless the WiX
custom action is changed. In fact, the WiX custom action doesn't even keep
track of files. It captures the text of the script (after sanitizing the
script a little) and schedules to execute the content. This allows it to
use a single custom action to execute SqlScript and SqlString (which
doesn't have a file associated with it). You won't be able to do what you
want without modifying the WiX custom action.

Edwin G. Castro

On Fri, Mar 2, 2018 at 9:39 AM, Ven H <venh.123 at gmail.com> wrote:

> If I have many script files and I want to show the detailed progress of
> the individual files, then as per the FireGiant tutorial, (link below), we
> can use the ActionData. I am trying to achieve this, but not sure, if it is
> working or not, or the Custom Progress dialog is even showing or not.
> https://www.firegiant.com/wix/tutorial/user-interface-
> revisited/is-this-progress/
> Regards,
> Venkatesh
> On Fri, Mar 2, 2018 at 12:26 AM, Edwin Castro <egcastr at gmail.com> wrote:
>> If I'm reading the source code for the version of Wix I'm using
>> (wix39r2rtm) correctly, then a progress message is posted after each script
>> is executed. I would imagine you don't have to do anything special to get
>> the progress bar to increase after each script is executed. There is no
>> text message associated with the progress message (which just updates the
>> progress bar).
>> There is a localized ProgressText for Action="ExecuteSqlStrings" which is
>> the custom action that executes the sql scripts. Then English string is
>> "Executing SQL Strings". If I'm understanding this all correctly, then the
>> progress dialog will display "Executing SQL Strings" while the sql scripts
>> are executing and the progress bar will increase by the amount indicated by
>> COST_SQL_STRING (which is 5000) after each script is executed.
>> --
>> Edwin G. Castro
>> On Thu, Mar 1, 2018 at 10:26 AM, Edwin Castro <egcastr at gmail.com> wrote:
>>> What does "show the progress of each script file" mean?
>>> I would expect that *IF* SqlScript posts progress messages, then it
>>> probably can only (at most) post one progress message before running the
>>> script and one after running the script. The SqlScript custom action source
>>> code will show whether it posts any progress messages or not.
>>> --
>>> Edwin G. Castro
>>> On Thu, Mar 1, 2018 at 10:02 AM, Ven H via wix-users <
>>> wix-users at lists.wixtoolset.org> wrote:
>>>> I am trying to execute many SQL scripts as part of my MSI. During
>>>> installation, I have to show the progress of each script file. The
>>>> default
>>>> Progress Dialog runs quickly and doesn't show the progress of individual
>>>> scripts. I read that subscribing to ActionData event will help me
>>>> achieve
>>>> this. So, I opened up the source code of WiX and copied the
>>>> ProgressDlg.wxs
>>>> and just updated its Id and changed the following line to
>>>>  <Control Id="ActionData" Type="Text" X="70" Y="100" Width="285"
>>>> Height="10">
>>>>     <Subscribe Event="ActionData" Attribute="Text" />
>>>>  </Control>
>>>> which was ActionText before. Also, I changed the line inside the
>>>> InstallUISequence element to below.
>>>> <Show Dialog="CustProgressDlg" After="ProgressDlg" />
>>>> In spite of these changes, I am not sure if my custom Progress dialog is
>>>> being shown or the same default Progress Dialog is getting shown. How
>>>> do I
>>>> achieve my requirement? Do I really need a Custom Action? What is
>>>> missing?
>>>> Please help.
>>>> Regards,
>>>> Venkatesh
>>>> ____________________________________________________________________
>>>> WiX Toolset Users Mailing List provided by FireGiant
>>>> http://www.firegiant.com/

More information about the wix-users mailing list