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
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)
Please log in to answer
Posted by:
daher
16 years ago
Posted by:
jmcfadyen
16 years ago
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
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
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
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
[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.
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.