Announcement

Collapse
No announcement yet.

Silent Install - AppFolder problem

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

  • Silent Install - AppFolder problem

    Folks, please help me solve this problem. My standard install works correctly. My silent install is checking the existence of setupvars.ini file, but not acting on %AppFolder%. The Setup Log does not mention it.

    For this example, all my files are in the C:\ folder

    install.bat:
    myproginstall.exe /S:"setupvars.ini"

    setupvars.ini: (ASCII file, not UTF-8 etc.)
    [SetupValues]
    %AppFolder% = C:\zzz (a new folder)

    Set up log:
    [06/23/2015 06:56:56] Success Setup started: C:\myproginstall.exe
    [06/23/2015 06:56:56] Notice Setup engine version: 9.3.1.0
    [06/23/2015 06:56:56] Notice Product: myprog, version 3.90.2
    [06/23/2015 06:56:56] Success Language set: Primary = 9, Secondary = 1
    [06/23/2015 06:56:56] Success Verify archive integrity
    [06/23/2015 06:56:56] Skipped Date expiration check
    [06/23/2015 06:56:56] Skipped Uses expiration check
    [06/23/2015 06:56:56] Success System requirements check
    [06/23/2015 06:56:56] Success Include script: _SUF70_Global_Functions.lua
    [06/23/2015 06:56:56] Notice Start project event: Global Functions
    [06/23/2015 06:56:56] Success Run project event: Global Functions
    [06/23/2015 06:56:56] Notice Start project event: On Startup
    [06/23/2015 06:56:56] Success Run project event: On Startup
    [06/23/2015 06:56:56] Notice Start project event: On Pre Install
    [06/23/2015 06:56:56] Success Run project event: On Pre Install
    [06/23/2015 06:56:56] Success Free space check on drive: C:\
    [06/23/2015 06:56:56] Success Set uninstall data folder: C:\wrong\myprog-uninstall
    ....

    the uninstall is specified to be in %AppFolder% and so the uninstall data folder should be: C:\zzz\myprog-uninstall

    C:\zzz is not created during the setup.

    Any suggestions?

  • #2
    There are two things you need to check:
    1. Support for silent / unattended installations is not available by default in setups built with Setup Factory. If you don't enable this explicitly in the advanced project settings, the "/S" command line parameter will be ignored. As you say that your setup runs silently as expected, this shouldn't be your problem, but it should be mentioned as a reference for other users who may read this thread later;

    2. You need to provide the full path to the INI file at runtime, not just the file name. For example, this will work:
      Code:
      "C:\output\setup.exe" "/S:C:\setupvars.ini"

    Ulrich

    Comment


    • #3
      Thanks, Ulrich. Solved! It was your 2. that was wrong for me.

      Setup Log.txt now shows:
      [06/23/2015 13:20:07] Success Set uninstall data folder: C:\zzz\myprog-uninstall

      Ulrich, how about adding to the log something like:
      [06/23/2015 13:20:07] Success install file: C:\setupvars.ini

      Comment


      • #4
        Yes, not a bad idea at all, thank you! I'll submit this suggestion to be looked into during the next update/upgrade.

        Ulrich

        Comment

        Working...
        X