Hello all, i need to set propeties using vbscript in cutom action.

but properties don't set.

my vbs:

Option Explicit

Dim NM, PRN, TIT, PHN 'Wshell


NM = inputbox("toto ?" , "test1" ,"name")
PRN = inputbox("tata ?" , "test1" ,"name")
TIT = inputbox("titi ?" , "test1" ,"fonction")
PHN = inputbox("tutu ?" , "test1" ,"telephone")

Session.Property("NOM") = NM
Session.Property("PRENOM") = PRN
Session.Property("TITRE") = TIT
Session.Property("TEL") = PHN

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

Hi,

Well what you are trying to achieve with this?

Do you mean you want to read the propery value in immediate or deferred mode?

Answered 10/24/2012 by: sumitsingh1984
Second Degree Green Belt

  • Hi, no i want to Add Value in properties in immédiate mode.
Please log in to comment
0

Hi, i want to create new properties with value's inbox

Answered 10/25/2012 by: tw95
White Belt

Please log in to comment
0

It might be a better idea to run the input dialogs outside of the actual MSI, and then pass the values to the (public) properties on the commandline when you launch msiexec. I generally find these kinds of 'unavoidable' dialogs inside an MSI to be a bad idea...

 

Another option could be to create a custom dialog screen using the default MSI dialog system

Answered 10/25/2012 by: pjgeutjens
Red Belt

Please log in to comment
0

thaks all. The option using default MSI dialog system work but i need to lauche my msi in silent mode. I can run the input dialogs outside of the actual MSI but i have no idea to code it. Do you have an exmple ?

Answered 10/25/2012 by: tw95
White Belt

  • You can still use VBScript (in an external VBS file), use your 'inputbox' statements and then use shell.run to kick off the MSIEXEC process (passing in your values as public properties on the MSIEXEC command line):
    http://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.84).aspx
Please log in to comment
0

> i need to lauche my msi in silent mode

If you set up the properties behind the various controls as public properties, these can be passed on the command line to MSIExec.EXE.

Answered 10/29/2012 by: VBScab
Red Belt

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