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

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.

Answers

0
yes. session.property. cheers!
Answered 09/24/2008 by: kiptek
Second Degree Green Belt

Please log in to comment
0
thanks!
Answered 09/24/2008 by: kardock
Second Degree Green Belt

Please log in to comment
0
your probably better of using


session.targetpath
Answered 09/24/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
ORIGINAL: jmcfadyen

your probably better of using


session.targetpath




so i won't need to set INSTALLDIR?
Answered 09/25/2008 by: kardock
Second Degree Green Belt

Please log in to comment
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.
Answered 09/28/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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!
Answered 10/08/2008 by: kardock
Second Degree Green Belt

Please log in to comment
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?
Answered 10/09/2008 by: VBScab
Red Belt

Please log in to comment
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!
Answered 10/09/2008 by: kardock
Second Degree Green Belt

Please log in to comment
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"
Answered 10/10/2008 by: VBScab
Red Belt

Please log in to comment
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\"
Answered 10/10/2008 by: AngelD
Red Belt

Please log in to comment
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!
Answered 10/14/2008 by: kardock
Second Degree Green Belt

Please log in to comment
0
Edited. already answered above.
Answered 10/14/2008 by: kiptek
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity