Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Posts
    3

    Huh? Silent installation problem reading Session variables from ini file

    My Setup Factory program, I'm running a msi file with command line parameters. Some of the parameters are session variables:
    1. %AppFolder%
    2. %LangId% (custom session variable)
    File.Run("msiexec", "/i \"" .. myMsi .. "\" /passive /norestart ET_LANG_ID=\"" .. SessionVar.Get("%LangId%") .. "\" TARGETDIR=\"" .. SessionVar.Get("%%AppFolder%%") .. "\"", "", "", true);

    When I'm running my Setup Factory program in silent mode with an ini file, it seems like the session variables are not read from this file. When I looked at the msi log created, it says:
    "Could not access network location %ProgramFilesFolder%\Product Name."

    I'm running my program, in silent mode as followed:
    MyProg.exe "/S:SetupVar.ini"

    Ini file:
    [SetupValues]
    %AppFolder%=C:\Program Files\Product Name
    %LangId%=en

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Don't use double %'s.


    (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)

  3. #3
    Join Date
    Jun 2009
    Posts
    3
    I'm not. I wrote it by mistake.
    This is the correct line:
    File.Run("msiexec", "/i \"" .. myMsi .. "\" /passive /norestart ET_LANG_ID=\"" .. SessionVar.Get("%LangIdPki%") .. "\" TARGETDIR=\"" .. SessionVar.Get("%AppFolder%") .. "\"", "", "", true);

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    so you've debugged it enough to know what LangIdPk and AppFolder are, and running that same line from the command line works?


    (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)

  5. #5
    Join Date
    Jun 2009
    Posts
    3
    Yaap. When running this from command line it works.

    When running in silent mode, I saw that these variables get the default value set in Setup factory environment (and not the value from the ini file).

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Post your project & ini file(s) and the exact command line you are using...


    (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)

Posting Permissions

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