|
-
Jun 29th, 2006, 04:52 PM
#1
[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.
-
Jun 29th, 2006, 09:54 PM
#2
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?
-
Jun 29th, 2006, 10:01 PM
#3
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.
-
Jun 29th, 2006, 10:05 PM
#4
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
-
Jun 29th, 2006, 10:25 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|