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: How to add a progress bar so the user doesn't hit Cancel in a dialog
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 07, 2011
05:22 PM
How to add a progress bar so the user doesn't hit Cancel in a dialog
Hi,
One of my installation projects is taking about 2 to 3 minutes in the SetupInitialization dialog when performing upgrades. During those minutes the users only see:
Computing space requirements
And nothing seems to be happening.
I'd like to add some kind of progress bar so they become aware that something is happening and that they shouldn't hit cancel (We've documented that this steps takes a while, but of course everybody reads the documentation, right?)
I've tried adding an animated GIF file with some kind of progress bar, but seems like GIF files are not permitted in dialogs.
Now I'm exploring the Progress Bar control, but I'm not sure this is the right way to go.
Does anybody know how can I achieve what I need?
Thanks,
Juan Carlos
One of my installation projects is taking about 2 to 3 minutes in the SetupInitialization dialog when performing upgrades. During those minutes the users only see:
Computing space requirements
And nothing seems to be happening.
I'd like to add some kind of progress bar so they become aware that something is happening and that they shouldn't hit cancel (We've documented that this steps takes a while, but of course everybody reads the documentation, right?)
I've tried adding an animated GIF file with some kind of progress bar, but seems like GIF files are not permitted in dialogs.
Now I'm exploring the Progress Bar control, but I'm not sure this is the right way to go.
Does anybody know how can I achieve what I need?
Thanks,
Juan Carlos
(5) Replies
‎Oct 24, 2011
02:31 AM
Are you working on an pure InstallScript or on an MSI project?
If your project is MSI, you can use the SpawnWaitDialog event to display another dialog while an operation is pending.
Steps:
This will display your WaitForCosting dialog while Windows Installer computes the costs.
Does that solve your problem?
I am not sure about displaying a progress bar. I think you would need a running custom action to update the progress.
If your project is MSI, you can use the SpawnWaitDialog event to display another dialog while an operation is pending.
Steps:
- Define your "Please wait" dialog. Let's call it "WaitForCosting" (see attachment below).
- In the InstallWelcome dialog, add an event to the Next button
- Event: SpawnWaitDialog
- Argument: WaitForCosting
- Condition: CostingComplete=1
(see attachement below). - Event: SpawnWaitDialog
This will display your WaitForCosting dialog while Windows Installer computes the costs.
Does that solve your problem?
I am not sure about displaying a progress bar. I think you would need a running custom action to update the progress.
‎Oct 24, 2011
02:47 AM
how can we know windows is genuine or not by using install shield,
i want my software install only genuine windows , so how can we know about windows license, my software is based on vb.net.
if u know any other method then please send me some info.
thank you sir
i want my software install only genuine windows , so how can we know about windows license, my software is based on vb.net.
if u know any other method then please send me some info.
thank you sir
‎Oct 24, 2011
11:09 AM
RahulSingh
As pointed by 'Reureu' though your question is not related to topic being discussed here, I happen to know the answer so will provide it here.
The way to check whether windows is genuine during install would be to run a custom action that would carry out that check for you. If it fails simply abort the install. You can call your custom action from InstallScript using MsiDoAction() or you can sequence it as per your choice.
To carry out the actual check, in your custom action, you can use a C# class that makes an API call or may be run the code such as this to validate the windows copy.
Hope this helps you.
As pointed by 'Reureu' though your question is not related to topic being discussed here, I happen to know the answer so will provide it here.
The way to check whether windows is genuine during install would be to run a custom action that would carry out that check for you. If it fails simply abort the install. You can call your custom action from InstallScript using MsiDoAction() or you can sequence it as per your choice.
To carry out the actual check, in your custom action, you can use a C# class that makes an API call or may be run the code such as this to validate the windows copy.
Hope this helps you.