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 to get Property in the VB script?


2 replies to this topic

MIB426

MIB426
  • Members
  • 12 posts

Posted 20 November 2003 - 04:08

Hi
I am using
Verson: Developer 8.0
Project type: Basic

I made custom dialog wich contains two edit text boxes:

Name: Edit1
Property: USERID

and

Name:Edit2
Peoperty:PASSWORD

Now I need to write VB script that will install MTS package for me. But I need to set package user by using USERID and PASSWORD properties.

What I should do to pass property into my VB script?

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 20 November 2003 - 04:32

You are using Developer 8, any particular reason why you don't want to use Installscript? I never use VBScript in custom actions. Here is how to get a property from Installscript:

CODE
function DoSomething( hMSI )
   NUMBER nBuffer, nvType, nvSize;
   STRING svResult;
begin
 
 nBuffer = 256;
 MsiGetProperty ( hMSI, "PASSWORD", szResult, nBuffer );

end;


The string szResult will then hold the value of the PASSWORD property.
Regards
-Stein Åsmul

MIB426

MIB426
  • Members
  • 12 posts

Posted 20 November 2003 - 05:13

I started with installscript project but some how I stuck...as problem in
http://forum.install...?showtopic=8850


But I dont have problem by using standard dialog in Basic project. Can installscript support VB script? like I have to install MTS package by VB script