Hi all,

I want to check if a certain service is running before my Installation is started.

I have a vbscript that checks if this service exists.

How can i use this script?!

I have read that i can use: call vbcsript from property.

in My script i have a function servicechecker().

I have called the script from property by specifying a custom property "DAHER" and an action.

1) But where should i store the code of the VBscript?
2) is it enough to set a property and an action?

3) Beside that how can i pass the return value to the property DAHER because later i want to make a condition on the property value

Thanks for your help

Best Regards
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


session.property is what you are looking for.
Answered 09/12/2008 by: kiptek
Second Degree Green Belt

Please log in to comment
Thanks for your reply

Session.Property("SAKRA") = functionname ...is this true?

Beside that do i have to pack the script in my code or is it enough to store on my local machine set the property inside and assign the function name to the property inside the setup???
Answered 09/12/2008 by: daher
Orange Belt

Please log in to comment
no use the vbscript to set the property which can then be used later.

for example in this case you need to know early on if service is running. If its running set a property something like

SERVICERUNNING~="true" using session.property("SERVICERUNNING") = "true"

then using a launch condtion or type 19 CA you can bail on the install.

For example LaunchCondtion of

Answered 09/14/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment

still i am missing some points.

When i write the script.. should I pack it later with the Setup?

How can a script that exists locally on my computer run on others computers if it is not in the installation?

How can I use the launch condition? do you mean in the script or in the MSI script?

What about 19 custom action?...I did not get this point
Answered 09/16/2008 by: daher
Orange Belt

Please log in to comment
[font="trebuchet ms"]Hoping that you are using Installshield.
If so, then you can define a property something like 'DAHER_SCRIPT' and use 'VBScript Stored in propery value' Custom action. This way the vb script will be embedded in your package and then as specified use this return value in launch conditions.

Hopt this helps.
Answered 09/16/2008 by: getIT
Orange Senior Belt

Please log in to comment
I am using Windows Installer Editor.

I am also using "call VBscript from Property" where i have to specify the function name in scripüt and the property.

is it the right way?
Answered 09/16/2008 by: daher
Orange Belt

Please log in to comment