/build/static/layout/Breadcrumb_cap_w.png

calling VB using a property

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   [ + ] Show comments

Answers (6)

Posted by: kiptek 16 years ago
Second Degree Green Belt
0
session.property is what you are looking for.
Posted by: daher 16 years ago
Orange Belt
0
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???
Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
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

SERVICERUNNING=true
Posted by: daher 16 years ago
Orange Belt
0
ok

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
Posted by: getIT 16 years ago
Orange Senior Belt
0
[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.
Posted by: daher 16 years ago
Orange Belt
0
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?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ