Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Location
    Slovakia, Bratislava
    Posts
    16

    Assign value to global property within lua script

    I have global static property named CurrentOS defined in Project->Settings->Properties.

    Now i have custom action->run lua script and the script body is:
    Code:
    CurrentOS = System.GetOSName();
    Dialog.Message("Lua script", CurrentOS);
    When i run builded setup, it shows me dialog correct os name, thats good, but.
    When i try to use global static property CurrentOS in dialog text label as
    Code:
    Current OS: [CurrentOS]
    , this property does not contains any value.

    Timing setting of run lua script is:
    - InstallUISequence
    - Before WelcomeDlg

    Simple question, how do update global property within lua script?

  2. #2
    Join Date
    May 2008
    Location
    Slovakia, Bratislava
    Posts
    16
    I found solution myself

    Here is:
    Code:
    CurrentOS = System.GetOSName();
    result1 = MSI.SetProperty(_hInstall, "CurrentOS", CurrentOS);
    calling MSI.SetProperty will set value to global property, which can be used in controls in dialogs.

Similar Threads

  1. how to test de LUA script without build a setup
    By manolete111 in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-03-2008, 04:42 PM
  2. Building pages from script
    By Roboblue in forum AutoPlay Media Studio 7.5
    Replies: 23
    Last Post: 02-28-2008, 10:31 AM
  3. How can I know the FS Command name of a movie???
    By yoske in forum AutoPlay Media Studio 5.0
    Replies: 27
    Last Post: 01-01-2005, 10:39 PM

Posting Permissions

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