hi guys,
I need to query the Transform Database during installation of my application. It is a basic MSI developed using Installshield Developer 8.x. Can you suggest a way to do this using VBScript?

Thanks in advance for your valuable suggestions.........

karthik sankaran
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


hey guys
even i need to know the same even i came across this problem and i am waiting for the solution
i appreciate if somebody could help me out in this
Answered 01/14/2004 by: sukil_s
Senior Yellow Belt

Please log in to comment
You should be able to address properties as variables within the MSI. With Wise products you simply reference the property in brackets:

If [MyProperty] <> "TRUE"
// take action
End Condition

There is no "else" which can be a bit limiting, but it is pretty straight-forward. I'm not sure if doing similar would require you to use InstallShield Script- when working to deploy silently I know use of InstallShield Script can be something to avoid.

InstallShield offers this on their site:

Const IDOK = 1

Function ReadProductName( )

' open and execute the view
Set oView = Database.OpenView("SELECT `Value` FROM `Property` WHERE `Property`='ProductName'")

' fetch the one and only ProductName record
Set oRecord = oView.Fetch

' display the string data from the fetched record
MsgBox "ProductName = " & oRecord.StringData(1)

' clean up

' return success to MSI
ReadProductName = IDOK
End Function

Click here for the full paper on the subject, "Accessing the MSI Database at Run Time"
Answered 01/14/2004 by: bkelly
Red Belt

Please log in to comment
Thanks Bob. We are able to access or get the values from the MSI database. All that we need is to read/access the Transform database(MST). so if you could give me suggestion as to where to look in regarding this query. We have searched the installshield site, Wise solutions site, and all other similar sites. Do let me know where we can do this. We require this for an urgent application that is pending in our queue.

Thanks in advance for your valuable suggestions.

karthik sankaran.
Answered 01/14/2004 by: KarthikS
Senior Yellow Belt

Please log in to comment
Because the MST is merged with the MSI at install-time, you should be able to access any of its properties in the same way you would when querying the MSI alone.

...or am I misunderstanding what it is you are trying to do?
Answered 01/14/2004 by: bkelly
Red Belt

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