PDA

View Full Version : How to show progress in silent mode for installscript project?



mayurbirari
06-25-2009, 02:28 AM
I want to show progress of the installation in the silent mode for installscript project. I searched a lot and could not find anything for installscript project. It would be great If anybody could help.
Thanks in advance!

MichaelU
06-25-2009, 10:43 AM
It sounds like you're looking for a rough equivalent to Windows Installer's basic UI mode. This isn't directly available, as the /s silent parameter will remove all of InstallScript's UI. Perhaps you could add a custom /z parameter response which will suppress all of your standard dialogs (via custom code), and only show the status dialog...

mayurbirari
07-08-2009, 06:12 AM
Thanks Michael.
But then I'm also using in-build dialogs. Is there a way so that these ones gets handled automatically as if we are in the silent mode?

MichaelU
07-08-2009, 10:56 AM
You would probably have to add all the events and condition the dialogs against your /z CMDLINE parameter, so no it's not automatic at all. The automatic one is under /s which would suppress all InstallScript dialogs including the status dialog.

mayurbirari
07-14-2009, 06:42 AM
Hi Michael.
Thanks again.
I copied scripts all in-built dialogs that I'm using and implemented mmy own silent mode. But I found out that "SilentReadData" is not working in this mode. Do you have any alternative for this?

MichaelU
07-14-2009, 11:29 AM
SilentReadData needs to read from a response file, which will be unavailable unless the /s parameter is used. You could implement the same general idea (store something to a file and read it back) yourself, but unless you use the built-in parameter you won't get to use the built-in support.