By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,827 Members | 2,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,827 IT Pros & Developers. It's quick & easy.

Deploying a WinForms app on Vista

P: n/a
Hello,

I'm looking for some best practice advice on deploying a 32-bit WinForms app
on 32-bit Vista as regards file locations.

The app will be written in Visual Studio.NET 2005 and will be compiled into
a single executable with some values stored in the app.config file - the
user needs to be able to update these values.

The app also will use a Jet database.

On XP, I would simply have deployed the whole thing to C:\Program
Files\<app>

Is that still the recommended deployment location under Vista?

Although the app will be installed by an administrator, the users of the app
will be ordinary users.

Will there be any problems here with ordinary users having write access to
the C:\Program Files\<appfolder so that the app can update the config file
and write to the Jet database?

Thanks,

DJ
Jun 11 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* David Jackson wrote, On 11-6-2007 13:41:
Hello,

I'm looking for some best practice advice on deploying a 32-bit WinForms app
on 32-bit Vista as regards file locations.

The app will be written in Visual Studio.NET 2005 and will be compiled into
a single executable with some values stored in the app.config file - the
user needs to be able to update these values.

The app also will use a Jet database.

On XP, I would simply have deployed the whole thing to C:\Program
Files\<app>

Is that still the recommended deployment location under Vista?

Although the app will be installed by an administrator, the users of the app
will be ordinary users.

Will there be any problems here with ordinary users having write access to
the C:\Program Files\<appfolder so that the app can update the config file
and write to the Jet database?

Thanks,

DJ

DJ,

if you want your users to be able to update the config settings
themselves, then have a look at the way user settings are stored in .NET 2.0

It basically involves adding a .settings file to your project (view the
project properties, it has a settings tab). Add the settings you want to
be customizable and set them either to Application (stored in the
program's installation folder and hard to change) or User (stored in the
Users\%username%\AppData\Roaming folder).

I'd advise very strongly against giving the user write access to the
program files directory. This was true under Windows XP, but now with
UAC and stricter default settings a real pain under Windows Vista.

Jesse Houwing
Jun 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.