bigred_ne
23rd May 2008 20:58 UTC
Closeing Setup Window
Hi,
Everytime my .bat file:
@ECHO OFF
TITLE Portable Drive Startup Procedure
:StartApps
CLS
ECHO.
ECHO.
ECHO.
ECHO ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃû
ECHO º º
ECHO º Now starting your portable applications º
ECHO º º
ECHO ÈÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃü
ECHO.
ECHO.
ECHO.
START StartPortableApps.exe
START /min PP+PRF+PM+FF.exe
:end
EXIT
is ran, it will execute the file “PP+PRF+PM+FF.exe†created by “makensisw.exe†from this:
OutFile "PP+PRF+PM+FF.exe"
Icon "\PortableApps\Candle.ico"
Section
Exec "$EXEDIR\PortableApps\FirefoxPortable\FirefoxPortable.exe"
Exec "$EXEDIR\PortableApps\PidginPortable\PidginPortable.exe"
Exec "$EXEDIR\PortableApps\Roboform2Go\portableroboform.exe"
Exec "$EXEDIR\PortableApps\ThunderbirdPortable\ThunderbirdPortable.exe"
Exec "$EXEDIR\PortableApps\PNotes\PNotes.exe"
SectionEnd
As you can probably tell, this will automatically load specific programs every time I put my jump drive into any computer I need to. What I cannot figure out, is once "PP+PRF+PM+FF.exe" executes the list of programs its’ suppose to, how do I get the “Setup: Completed†dialog/message box to close (maybe after 5 seconds if the close button was not clicked) instead of it hanging around waiting for me to click on the “Close†button.
I have tried a couple of things, using key words like close, dialog, message etc, on the http://nsis.sourceforge.net pages but I must not be doing something right.
If anyone has an idea as to how I can get the box to close, without any interaction from me, I would greatly appreciate it. Maybe I should be trying to do this in MS-DOS instead, I have no idea. I have just found out about NSIS and do not know much if it yet.
Thank you, for your time and efforts.
bigred_ne
Red Wine
23rd May 2008 21:07 UTC
OutFile "PP+PRF+PM+FF.exe"
AutoCloseWindow true
Icon "\PortableApps\Candle.ico"
Section
Exec "$EXEDIR\PortableApps\FirefoxPortable\FirefoxPortable.exe"
Exec "$EXEDIR\PortableApps\PidginPortable\PidginPortable.exe"
Exec "$EXEDIR\PortableApps\Roboform2Go\portableroboform.exe"
Exec "$EXEDIR\PortableApps\ThunderbirdPortable\ThunderbirdPortable.exe"
Exec "$EXEDIR\PortableApps\PNotes\PNotes.exe"
SectionEnd
Also you may want to use ExecWait rather.
bigred_ne
23rd May 2008 21:26 UTC
Red Wine
Thank you for your fast response and I am able to get the “AutoCloseWindow†to work just fine. So blatantly simple. I wish I could have found it much easier, before I spent so much time looking.
Still trying to figure out “ExecWait†and what it can do and how to use it in my present case and for the future. Can’t find anything yet that says it will let me decide how long the box will stay open before closing.
Thanks again for all that you have done.
bigred_ne
LoRd_MuldeR
23rd May 2008 21:32 UTC
The "ExecWait" command will freeze your installer, until the executable has terminated. In contrast, the "Exec" command will just go ahead...
Red Wine
23rd May 2008 21:44 UTC
Indeed spending time is troublesome. On the other hand you cannot learn something new without spend time.
Anyway you'd need to spend some time reviewing the docs.
http://nsis.sourceforge.net/Docs/
bigred_ne
23rd May 2008 21:53 UTC
Red Wine
That is cool. They both do what I want, not having to click on the “close†button to close the dialog/message box. Since I am not installing these programs and just loading them to be used temporarily, I think I will use the “Execâ€. Because, if Thunderbird is already running a message box will appear to let me know that only one instance can run at a time and I will not only have to respond to that box but the “Setup: Installing†box will wait until I do respond to the Thunderbird box first.
It is great to know for something to use in future projects.
Thanks again.
bigred_ne