Announcement

Collapse
No announcement yet.

Passing command line parameters to setup.exe

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Passing command line parameters to setup.exe

    Is it possible to pass in paramters like %AppDir% from the command line? I need to be able to run setup without the user having to see the install folder screen. But as the install is for the whole of the Northern Territoty government I want the local network administrators to be able to over ride the defailt %AppDir% setting if they dont install applications to c:\Program Files.

  • #2
    Re: Passing command line parameters to setup.exe

    Hi,
    Sorry but it is not possible to pass Setup Factory the values for variables like %AppDir%. What you could do is read the information out of an INI file.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: Passing command line parameters to setup.exe

      How would you go about passing %AppDir% from an .ini file?

      Comment


      • #4
        Re: Passing command line parameters to setup.exe

        Hi,
        You would basically create an INI FILE variable and read the information out of the INI file.
        Here is an example from the Help file:

        Example
        Say that we want to get the user’s name from a private INI file in the user’s Windows directory called info.ini (perhaps it was put there by a previous installation). The data is in the section called UserData in the UserName key. To create the custom variable, create a new INI File Variable with the following values:

        Name: %UserName%
        Default Value: Unknown User
        File Name: %WinDir%\info.ini
        Section: UserData
        Key: UserName

        Except in your case you would read the information into %AppDir%. You will also have to make sure that you do not include an INSTALL FOLDER screen in your installation, as it will override the value of %AppDir% that you read in.

        mark.
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎