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

How do you Get a property?


4 replies to this topic

Jann

Jann
  • Members
  • 35 posts

Posted 15 June 2001 - 11:12

I know that to set a property you do:
session.property("MyProperty")=""

but how do you get a property?


tgebbie

tgebbie
  • Members
  • 26 posts

Posted 16 June 2001 - 01:42

If you are using InstallScript in the Windows Installer you can use the function  MsiGetProperty, and use MsiSetProperty to set the property.

TDG


Victorz

Victorz
  • Members
  • 32 posts

Posted 17 June 2001 - 08:54

If you don't want to use Install script - just use :
X = me.property("MyProperty")
I use it inside VBScripts.

Jann

Jann
  • Members
  • 35 posts

Posted 18 June 2001 - 09:37

Thanks Victor.  I tried your suggestion but it still doesn't work.

I'm actually trying to retrieve a checkbox value which I have set successfully in a previous CA as "True".

Does a property lose it's value or should it keep it throughout the installation?


80LPJ

80LPJ
  • Members
  • 22 posts

Posted 18 June 2001 - 18:03

If you are using ISWI, Is your property name set to all uppercase?  All uppercase means its public.  Property names with lowercase letters is private. Just a thought,  I get burned with this one all the time.