/build/static/layout/Breadcrumb_cap_w.png

I need to set propeties using vbscript in cutom action

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

Answers (5)

Posted by: sumitsingh1984 12 years ago
Second Degree Green Belt
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?


Comments:
  • Hi, no i want to Add Value in properties in immédiate mode. - tw95 12 years ago
Posted by: tw95 12 years ago
White Belt
0

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

Posted by: pjgeutjens 12 years ago
Red Belt
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

Posted by: tw95 12 years ago
White Belt
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 ?


Comments:
  • 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 - captain_planet 12 years ago
Posted by: anonymous_9363 12 years ago
Red Belt
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.

 
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