/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


I need to set propeties using vbscript in cutom action

10/24/2012 2309 views

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


All 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.
0

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

Answered 10/25/2012 by: tw95
White 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

Answered 10/25/2012 by: pjgeutjens
Red 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 ?

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
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

 
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