Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

execute custom action takes a long time


4 replies to this topic

agustina_s

agustina_s
  • Members
  • 31 posts

Posted 09 March 2005 - 10:28

Hi

I have a few custom actions that do a certain task which takes a very long time...
approximately around 0.5 minutes each.
The custom action is called in different parts of execute sequence.
Is it possible to put some text in the progress bar (Some thing like : Removing Files ..., Generating script for installation, etc).

Currently I call the Custom Action inside the execute sequence.
When I call CA, the progress bar will freeze for 0.5 minutes, which is confusing for user.

Can I add some text on the progress bar?

Sample of CA that I call: (CA is in VB Script)
'------------------------------------------------------
'Looping while installing silent directX
'------------------------------------------------------
Do While i <= 20000000
i = i + 1
Loop

dim FSO

set FSO = CreateObject("Scripting.FileSystemObject")
set fout = fso.CreateTextFile("c:\idle8.txt", true)

fout.WriteLine "INSIDE CUSTOM ACTION IDLE"
fout.WriteLine "PROPERTY DIRECTXINSTALL: " + PROPERTY("DIRECTXINSTALL")
'-------------------------------------------------------------------------------------
Any suggestion is welcomed.
Thanks

Edited by agustina_s, 09 March 2005 - 10:35.


felltier-a

felltier-a
  • Awaiting Authorisation
  • 85 posts

Posted 09 March 2005 - 11:40

Hi,

to put some text in progress bar i´ve no idea but "SdShowMSG" is often used to show the user some information about executing scripts or other.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 March 2005 - 15:35

There's a sample in MSI help that shows how to add a custom action to the progress bar (and move the bar while processing).
Displaying a static text (e.g. "Installing DirectX") without moving the bar is even easier: make sure your custom action is deferred and add a row to the ActionText table with the name of your action and the desired text.

agustina_s

agustina_s
  • Members
  • 31 posts

Posted 14 March 2005 - 09:49

Hi Stefan
Which sample msi did you mentioned here?

Is it included with installation of InstallShieldX?
Thanks

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 March 2005 - 18:22

No, I'm talking about MSI Help (included with InstallShield)