Community Forums
Results 1 to 2 of 2

Thread: When does the INI file changes trigger?What is the sequence?

  1. #1
    Join Date
    May 2011
    Posts
    73

    When does the INI file changes trigger?What is the sequence?

    Hello friends,
    In my installer, i am creating a Web url shortcut using the INI file changes technique. [http://www.installationdeveloper.com/316/how-to-create-an-internet-shortcut/]

    the problem here is:
    The url has the text https:\\[IISHOSTNAME]
    IISHOSTNAME is a property whose default value is "localhost" which later gets updated in due course of installation to "WIN161"

    But when the installation finishes, i can see that the url shortcut gets created with url : https://localhost

    This shows that the URL shortcut creation via INI file changes takes place before the [IISHOSTNAME] property gets updated to "WIN161"

    So i want to know, is there any way i can create the url shortcut with the updated value of [IISHOSTNAME]? Can i sequence the INI file changes to the end of the installation so that the shortcut creation takes place in the end with the updated value.

    Please suggest.
    Thanks

  2. #2
    Join Date
    May 2011
    Posts
    73
    Quote Originally Posted by dinesh_redhawk View Post
    Hello friends,
    In my installer, i am creating a Web url shortcut using the INI file changes technique. [http://www.installationdeveloper.com/316/how-to-create-an-internet-shortcut/]

    the problem here is:
    The url has the text https:\\[IISHOSTNAME]
    IISHOSTNAME is a property whose default value is "localhost" which later gets updated in due course of installation to "WIN161"

    But when the installation finishes, i can see that the url shortcut gets created with url : https://localhost

    This shows that the URL shortcut creation via INI file changes takes place before the [IISHOSTNAME] property gets updated to "WIN161"

    So i want to know, is there any way i can create the url shortcut with the updated value of [IISHOSTNAME]? Can i sequence the INI file changes to the end of the installation so that the shortcut creation takes place in the end with the updated value.

    Please suggest.
    Thanks
    SOLUTION:
    The INI file change sequence is when WriteIniFile custom action gets executed. You can find it in execute sequence . Dont change the sequence of default events as it will break somewhere else then.
    Instead, try to move your own custom action according to the sequence. I moved mine to after InstallWelcome sequence and achieved my requirement.

Tags for this Thread

Posting Permissions

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