PDA

View Full Version : Run BEFORE install



NewsArchive
08-09-2016, 10:31 AM
AFAIK, the RUN in SB is for running something AFTER completed installation.
How does one create a RUN BEFORE instruction?
I simply want to ensure that the application is closed BEFORE the install
starts.

Sim

NewsArchive
08-09-2016, 10:32 AM
Sim,

> AFAIK, the RUN in SB is for running something AFTER completed
> installation.
> How does one create a RUN BEFORE instruction?
> I simply want to ensure that the application is closed BEFORE the install
> starts.

Just do the check in the "Initialize Setup" section (see attached
screenshot).

Friedrich

NewsArchive
08-09-2016, 10:33 AM
Friedrich,

in my understanding Sim wants to know, whether his _own_ application is still running.

> I simply want to ensure that the application is closed BEFORE the install
> starts.

Well, yes, "the application", somewhat ambigious.

Possibly I got it wrong.

Regards,
Wolfgang Orth
www.odata.de

NewsArchive
08-09-2016, 10:33 AM
Wolfgang,

> in my understanding Sim wants to know, whether his _own_ application is
> still running.
>
>> I simply want to ensure that the application is closed BEFORE the install
>> starts.
>
> Well, yes, "the application", somewhat ambigious.
>
> Possibly I got it wrong.

Yes, that was my understanding as well ;-) He only has to replace
"SB10.EXE" in my example with his own "YADA.EXE" name.

Friedrich

NewsArchive
08-09-2016, 10:33 AM
Yes Friedrich, that is precisely what I meant.
I need to first shut down my app before I start running the installer.

BTW is there a function in SB _can_ shut down an EXE?

Sim

NewsArchive
08-09-2016, 10:34 AM
Hi Sim,

> Yes Friedrich, that is precisely what I meant.
> I need to first shut down my app before I start running the installer.
>
> BTW is there a function in SB _can_ shut down an EXE?

Yes, you can use the "Terminate Activate Application" script function. If
your own application supports the "gently" close application method then use
this option (recommended). If "Gently Close Application" is not marked then
the function will "kill" your app (not recommended!!!!).

Friedrich

NewsArchive
08-10-2016, 09:14 AM
Many thanks again, Friedrich

Sim

NewsArchive
08-11-2016, 03:03 AM
>Yes, that was my understanding as well ;-) He only has to replace
>"SB10.EXE" in my example with his own "YADA.EXE" name.

There you go! <hehehe>

Very interesting topic! I hope I will find this info again, once I got my own
project finished.

However, I still struggle with code-signing the INSTALLER and UNINSTALLER,
while my own EXE gets successfully code-sign by that SB-script. But I will look
into that later. You still have a period of grace.... <eg>


Regards,
Wolfgang Orth
www.odata.de