Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inno Setup best install directory
Message
From
25/09/2012 04:49:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/09/2012 15:02:41
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01553551
Message ID:
01553573
Views:
86
>Hi All,
>
>I am using Inno Setup to build my installs and it is working great. One issue I have is which constant to use for the install directory. My app uses a sql database and I only need to write to an ini file and a couple of logging dbfs. I started using the {commonappdata} constant but on Windows 7 it uses the programData directory which is hidden and I am getting some push back from my customer. I was curious what others use?

I'd recommend that you let the user install wherever they want, and save that location for the upgrades.

Two reasons for this:

1. many machines are made with a C: partition of insufficient size. Lots of apps, specially various demos, evaluation versions etc don't give the user a choice of location, so the C: drive gets cluttered. I prefer to install my apps on any other partition, even though nowadays I have almost a terabyte free space (and 80 out of 130G on C:), just because the Windowses themselves tend to eat space over time, and I really hate to deal with support calls when the machine is stuck with no temp space left.

Also, because the Windowses will probably crash and have to be reinstalled about once every few years. Probably because we're programmers, not regular users. It may be due to anything - a faulty driver, a brownout which causes a fault in the filesystem, a rootkit, an app which hits a rare Windows bug, whatever. I just don't want to lose everything when that happens - and, believe it or not, about 80% of apps I use don't give a damn about proper installation and registry. Reinstall Windows and just run them apps from where they are, and they'll be just fine. Most of them know how to reestablish file associations etc even without registry, so it's basically only Microsoft stuff that MUST be reinstalled, the rest generally works.

2. When the update comes, it should just plain KNOW where the previous version was, and offer that as the location. It should not lose any of user's settings.

In InnoSetup, the UsePreviousAppDir is true by default, so it covers the 2nd requirement. As for the first,
DefaultDirName={pf}\My Program
would put you below the "Program files", but that's only the starting point for the user, and I actually like to let them install wherever they want.

With the changes in the Vista and later, I tend to keep user's local settings somewhere in their application data, and everything else on the SQL. No common folder where every user would write, and again no scattering of folders. I've seen apps which install in one folder, keep their settings in another, and users profiles in subfolders of that or in user's appdata. Which then makes it near impossible to find things - it doesn't explicitly tell you what's gone where during the install.

(obviously, I'm re-reading Alan Cooper these days :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform