Re: Installing an application on Vista/Win7 with VirtualStore ProgramData
- From: Ali Svensson <nonews@xxxxxxxx>
- Date: Wed, 15 Dec 2010 10:55:32 +0200
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
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>
- Prev by Date: Re: Installing an application on Vista/Win7 with VirtualStore ProgramData
- Next by Date: Re: Installing an application on Vista/Win7 with VirtualStore ProgramData
- Previous by thread: Re: Installing an application on Vista/Win7 with VirtualStore ProgramData
- Next by thread: Re: Installing an application on Vista/Win7 with VirtualStore ProgramData