Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    Southern California
    Posts
    6

    Getting MSI Properties In LUA script

    I am trying to get the ProductName property in a LUA script Custom Action.
    I am using the following code:

    Product_Name = MSI.GetProperty("_hinstall","ProductName");

    I keep getting an error:

    4529: An inactive or invalid handle was supplied.

    I have tried it with and without quotes around the parameters, I still get the same error.

    What am I Missing

  2. #2
    Join Date
    Jan 2003
    Location
    Southern California
    Posts
    6
    Just in case anybody else is does the same thing. The problem I was having was that i was supposed to be a capital I

    Product_Name = MSI.GetProperty("_hinstall","ProductName");

  3. #3
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by richmcc View Post
    Just in case anybody else is does the same thing. The problem I was having was that i was supposed to be a capital I

    Product_Name = MSI.GetProperty("_hinstall","ProductName");
    myvar is not the same as myVar or MyVar

    Just so you are aware -- lua is case sensitive -- so anywhere you have a variable -- case is important...
    as you discovered, there is a capital 'I' _hInstall. The help file is very accurate on these things.

    Glad you found the answer.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. Access Violation in LUA Script in Windows 2000
    By jzild in forum MSI Factory 2.0 Discussion
    Replies: 1
    Last Post: 08-19-2008, 10:59 AM
  2. Fill dynamically combobox within LUA script
    By psulek in forum MSI Factory 2.0 Discussion
    Replies: 1
    Last Post: 05-15-2008, 08:15 AM
  3. Lua script action is not executed via DoAction on button click
    By psulek in forum MSI Factory 2.0 Discussion
    Replies: 8
    Last Post: 05-14-2008, 09:35 AM
  4. Assign value to global property within lua script
    By psulek in forum MSI Factory 2.0 Discussion
    Replies: 1
    Last Post: 05-13-2008, 02:36 AM
  5. Fading effect with Labels
    By autoplmst6 in forum AutoPlay Media Studio 7.5 Examples
    Replies: 3
    Last Post: 04-09-2008, 03:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts