Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Setting ADDLOCAL via VBScript


6 replies to this topic

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 13 May 2004 - 21:47

I need to set the ADDLOCAL property to the list of features I want installed via VBSCript. Can I do it like this:

Session.Property("ADDLOCAL") = "Feature1,Feature2,Feature3" ?

Also, is there any special place this needs to be sequenced?

I'm in a bind, so any quick help is Greatly Appreciated!!!!

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 14 May 2004 - 12:57

If my install is not made silent (by bypassing some of the User Interface via my VBScript), I have a bunch of AddLocals set when the Install Now button is clicked on the ReadytoInstall dialog. The various features are installed based on various conditions.

What I would really like to do is automate this part of the install via the VBScript while, hopefully, preserving the various feature install conditions.

If this can't be accomplished, is there any way of setting a feature install state outside of the ADDLOCAL property?

As always, any help is GREATLY Appreciated!!!!!!

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 14 May 2004 - 14:34

Or can I tell the installer to install a Feature via an InstallScript Custom Action?

Edited by Superfreak3, 14 May 2004 - 14:35.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 May 2004 - 16:56

setting the ADDLOCAL property should work, before costing.

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 14 May 2004 - 19:09

Would I first have to add ADDLOCAL to the property manager? Either way I guess I could then run a set property Custom Action to set it to the string of Features delimited by ','.

Can I do this in the User Interface sequence, I wonder?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 16 May 2004 - 17:22

QUOTE
Would I first have to add ADDLOCAL to the property manager?

No.
QUOTE
Can I do this in the User Interface sequence

Yes. You should also do it in the Execute sequence, in case your setup runs in silent mode.

Superfreak3

Superfreak3
  • Full Members
  • 437 posts

Posted 17 May 2004 - 20:14

Using ADDLOCAL seemed to work for me!

I put the action in the Execute Sequence due to it being a silent install.

THANKS FOR THE HELP!!!!!!