Results 1 to 5 of 5

Thread: [RESOLVED] Problem creating an Update Package with Inno Setup - "DefaultDirName" Required

  1. #1

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Resolved [RESOLVED] Problem creating an Update Package with Inno Setup - "DefaultDirName" Required

    I know i have to set...
    Code:
      [Setup]
      UpdateUninstallLogAppName=no
      UsePreviousAppDir=yes
      CreateUninstallRegKey=no
      ;...
    And, As I didn't set an AppId in my Application install package, now I set AppId=MyAppName, this way this update package should find the Application folder.
    I know that because of this: Update Install , but..
    The problem:
    When I try to compile this update package, Inno setup says "DefaultDirName" REQUIRED. I can't add a defaultdirname, because the user shouldn't select an install location, this update should be automatically installed where the application had been installed.

    Any ideas?

    Thanks.

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Problem creating an Update Package with Inno Setup - "DefaultDirName" Required

    You still have to have one. That's why it has DEFAULT in the name. If the user chooses not to alter the location, that is where it will be installed. You can lock this by using another directive in the Setup Section. I let you know what it is...

    Have you looked at Inno Setup Third Party Tools?

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Problem creating an Update Package with Inno Setup - "DefaultDirName" Required

    Here it is

    [Setup]: DisableDirPage

    Valid values: yes or no
    Default value: no

    Description:
    If this is set to yes, Setup will not show the Select Destination Location wizard page. In this case, it will always use the default directory name.

    Inno Setup will automatically choose the last installation location if the app has been installed prior.

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Problem creating an Update Package with Inno Setup - "DefaultDirName" Required

    The help section is an execellent source of information...

    [Setup]: DefaultDirName

    Description:
    The value of this required directive is used for the default directory name, which is used in the Select Destination Location page of the wizard. Normally it is prefixed by a directory constant.

    If UsePreviousAppDir is yes (the default) and Setup finds a previous version of the same application is already installed, it will substitute the default directory name with the directory selected previously.

    Example:
    If you used:
    DefaultDirName={sd}\MYPROG
    In Setup, this would typically display:
    C:\MYPROG
    If you used:
    DefaultDirName={pf}\My Program
    In Setup, this would typically display:
    C:\Program Files\My Program

  5. #5

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Problem creating an Update Package with Inno Setup - "DefaultDirName" Required

    Thanks Randem

Posting Permissions

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



Click Here to Expand Forum to Full Width