Announcement

Collapse
No announcement yet.

Silent Install Madness

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Silent Install Madness

    My Silent Install is broken. It only passes one parameter, a user serialnumber. Setup.ini has something like this:

    [SetupValues]
    %UserSerialNumber%=emx100005b1

    In preinstall, I have this

    local INI_Serial_Number = SessionVar.Expand("%UserSerialNumber%");
    ...
    if ( INI_Serial_Number ~= "%UserSerialNumber%" ) then
    SetupData.WriteToLogFile("Info\tINI File entered key: "..INI_Serial_Number..".\r\n",true);
    end

    Running something like C:\Setup.exe /C:\Setup.ini

    I never get the value from the ini file. This used to work...

  • #2
    A few things to check:
    • Is silent/unattended install enabled in the project? (see Project Settings > Advanced)
    • What does the installation log file show?
    • The proper command line syntax would be something like setup.exe /S:C:\setup.ini


    Ulrich

    Comment


    • #3
      Typo, I meant /S:C:\Setup.ini

      Comment


      • #4
        Okay, what about the other two points? In the log file, you should see that the Session Variable was set by the content of the INI file. If you see this entry, then there might be a flaw in the script. Or, if you did not enable the handling of the /S parameter for the project, the INI file is ignored completely.
        Code:
        [03/24/2015 22:33:16] Info	INI File entered key: emx100005b1
        Ulrich

        Comment


        • #5
          Silent install is enabled, everything works otherwise as expected. If I enter an incorrect path, the INI file gets a not-valid error, so the file is recognized.

          I tested the previous version of Setup factory and tested on Windows 7 as well as 8.1 - still get a failure.

          I have created a very simple test project that fails in the same way. It is attached as Test.zip.

          Probably something stupid I am doing, but I am stumped...
          Attached Files

          Comment


          • #6
            In regards to the log - see the test project.

            My INI variable is %UserSerialNumber%

            After I do a SessionVar.Expand("%UserSerialNumber%"), all it returns is %UserSerialNumber%, not what is equated in the INI file.

            Comment


            • #7
              Your INI file is UTF-8 encoded. You cannot process Unicode/UTF encoded files with Setup Factory, use ANSI encoding instead.

              Ulrich

              Comment


              • #8
                Ugh - I just LOVE Windows...

                Thanks. I should have checked that...

                Comment

                Working...
                X