1
votes

How to create progress bar from the start of Execwait function till the end of Execwait in NSIS?

I have a custom page, In the leave function of custom page I am calling some other function and then I call uninstaller to install the previous version. I would like to display progress bar or any other UI just to convey to the user tat un-installation is going on. After this uninstallation installation of the current version will be called.

Any help is highly appreciated!!

3

3 Answers

1
votes

If you are executing a MSI then there is an API so you can monitor the progress. NSIS does not have native support for this though...

0
votes

I think it is not possible to Monitor the ExecWait progression.

I you can modify the uninstaller that is started via ExecWait, try to show a progression in that part.

0
votes

You could use the Marquee plugin to show a scrolling text during the ExecWait call:

Marquee::start /NOUNLOAD /color=0x000000 /top=80 "Running $PROGRAM"
ExecWait "$PROGRAM"
Marquee::stop