It's supposed to be used as a custom action, not a standalone VBScript.

Phil Wilson

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kai Lee
Sent: Monday, May 05, 2008 8:17 AM
To: [EMAIL PROTECTED]; [email protected]
Subject: [WiX-users] Cannot run "The Definitive Guide to Windows Installer" 
sample and "Variable is undefined: 'Property'

Hi all,

I am wonder whether anyone bought the book named "The Definitive Guide to 
Windows Installer" and try to run GetARPLoc.vbs  sample from Chapter 5 and keep 
getting the "Variable is undefined: 'Property'".  In the Charpter 5, there is a 
vscript sample named GetARPLoc.vbs.

Here are the codes behind the GetARPLoc.vbs file.

option explicit
dim installer, msg
Set installer = CreateObject("WindowsInstaller.Installer")
msg = 
installer.ProductInfo("{B3E1B56E-D853-4780-BF62-47B95195CD6B}","InstallLocation")
Property("TARGETDIR")=msg
set installer=Nothing
msgbox msg

Since this is a VB script, I launch it by double clicking it.  However, I 
receive "Variable is undefined: 'Property'".  Does anyone know how to solve 
this issue?

Thanks in advance.

Kai

________________________________
Make Windows Vista more reliable and secure with Windows Vista Service Pack 1. 
Learn more.<http://www.windowsvista.com/SP1?WT.mc_id=hotmailvistasp1banner>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to