/build/static/layout/Breadcrumb_cap_w.png

property set from a vbs?

hi all,

i just want to know, before starting to work on this, if i can set a property from a vbs into a custom action.

the property is INSTALLDIR

so, can it be done? if so, i will find it.

thanks!

0 Comments   [ + ] Show comments

Answers (12)

Posted by: kiptek 15 years ago
Second Degree Green Belt
0
yes. session.property. cheers!
Posted by: kardock 15 years ago
Second Degree Green Belt
0
thanks!
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
your probably better of using


session.targetpath
Posted by: kardock 15 years ago
Second Degree Green Belt
0
ORIGINAL: jmcfadyen

your probably better of using


session.targetpath




so i won't need to set INSTALLDIR?
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
targetpath is used to set Directories (perhaps you get a similar result from both) . You mentioned you wanted to set a property by my "guess" is this is really a directory.
Posted by: kardock 15 years ago
Second Degree Green Belt
0
i'm trying to change the INSTALLDIR from a few conditions that could occur in our environment. i'm using this line, with text modified from the conditions;

Session.Property("INSTALLDIR") = text

but the package keeps installing at the same place, the property is changed but my MSI doesn't seem to get it.

if i run a command line with INSTALLDIR="some directory", it works well.

can you please tell me where i need to put my CA in the installation sequence? maybe that will fix my problem.

thanks!
Posted by: anonymous_9363 15 years ago
Red Belt
0
Try it between CostFinalize and InstallInitialize in ExecuteImmediate.

Does your packaging tool have a debugger that you can use to step through the actions?
Posted by: kardock 15 years ago
Second Degree Green Belt
0
ORIGINAL: VBScab

Try it between CostFinalize and InstallInitialize in ExecuteImmediate.



same thing, the property is not set at installation time.

my vbs works, i have a msgbox to show me that the directory is what i'm expecting it to be but the debugger shows the variable is not changing.

any other suggestion please?

thanks for helping me!
Posted by: anonymous_9363 15 years ago
Red Belt
0
Wait a second....I just noticed that you haven't followed John's advice, viz. to use Session.TargetPath:

Session.TargetPath("INSTALLDIR") = "C:\PathToInstallTo"
Posted by: AngelD 15 years ago
Red Belt
0
ORIGINAL: VBScab

Wait a second....I just noticed that you haven't followed John's advice, viz. to use Session.TargetPath:

Session.TargetPath("INSTALLDIR") = "C:\PathToInstallTo"

Don't forgett the trailing backslash!

Session.TargetPath("INSTALLDIR") = "C:\PathToInstallTo\"
Posted by: kardock 15 years ago
Second Degree Green Belt
0
i have missed it as well *blush*

i just tried it and it ain't working either.

so far i have tried changing rootdrive & installdir, with session.property or session.targetpath but i'm not able to install into the D: drive.

what else can i try?

thanks!
Posted by: kiptek 15 years ago
Second Degree Green Belt
0
Edited. already answered above.
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