Re: Installing an application on Vista/Win7 with VirtualStore ProgramData



P E Schoen wrote:

I think I will do this in the application itself, rather than the setup script. ...
When the program is first installed, the sample databases are included,

Usually it really is easier write familiar Delphi code to make complex Win settings than try to make Inno setup to do them.

I use very much the same approach. As the last task the Installation script calls my applicaton with some specified parameter, like
"C:\MyDir\MyApp -UPDATE"

When my app recognizes that it was started with -UPDATE parameter it does not even show it's MainForm. It just silently does the wanted DB upgrade tasks and other needed complicated Win settings etc.

If you have any comments or suggestions, they will be most appreciated.

Microsoft wants to make things complex by first requiring all applications to be installed to \Program Files folder. Then they write tons of complex restrictions to that folder and second they write tons of complex Virtualizationes etc. so that it looks like apps are running fine now.
Yet I have no seen the original MS idea about "Safe Windows use when using centralized \Program Files folder use" to come true. Heavy Win holes are everywhere.

My answer and solution is simple yet unorthodoxic: Do not install your *DB apps* to Program Files folder at all.

I have done this for 10 years now, the DB folder is right below the application folder itself, and everything is so simple. You can even copy the C:\MyApp DB-application to USB-drive, and run the app directly in there.

A couple of customers each year ask why my Installation Script suggests to install the application to C:\MyApp folder. "Why does it not use the standard Progam Files folder?"

I tell them that this is only a suggestion, but you can freely ask the Installation Script to make the install to Progam Files folder also.

Then I give them a 10 item list about all the ACL settings, folder settings, user rights settings etc. they have to do to make that work. After seeing that list they say, well it does not sound so bad idea just to install to C:\MyApp after all. And they live happily thereafter.

Quite unorthodoxic yes, and Christmas coming and everything.<g>
-as
.



Relevant Pages

  • RE: office 2003 SP3 silent install
    ... Office2003SP3-KB923618-FullFile-ENU.exe in that folder. ... You can then use the following command in a startup script to install Sp3 ...
    (microsoft.public.office.setup)
  • Re: Office 2000 will not go away! :-)
    ... 2003 Pro does not include. ... Program Files folder. ... that is the folder name in the Program Files folder. ... the Office 2000 Pro install. ...
    (microsoft.public.office.misc)
  • Re: Office 2000 will not go away! :-)
    ... 2003 Pro does not include. ... Program Files folder. ... that is the folder name in the Program Files folder. ... the Office 2000 Pro install. ...
    (microsoft.public.office.misc)
  • Re: MacSpeech Dictate Amazon reviews - comments?
    ... license is to the hardware and not to the user. ... install software on a desktop and a laptop. ... Redmond cease to support XP in an effort to force me to spend money on ... You will find this folder inside your document folder. ...
    (comp.sys.mac.apps)
  • Re: another distutils question
    ... fine running it in it's own folder, if I install through distutils, using ... that the data file can't be written to (although the script can read it). ... Do I need to run a post install script, or add something to setup.py file ... It might work to use data_files to enumerate files you apply the common perms/owernship. ...
    (comp.lang.python)