Hi Angelo,
at first you should state what version of WinDev you're using. If you're using a version prior to WinDev 11, you have to take care of Vista installs yourself. Which is not as dreadful as it sounds, you just have to include a manifest. Look into Google to get at that info.
Windows Vista 'offers' UAC (User Account Control) and basically gives you a choice of three types of users:
1 - a superuser called '<b>Administrator</b>' by standard. You cannot change the name, but the Administrator's privileges are very similar to those of a former XP user with admin privileges. No UAC window will ask at any time for anything. You can activate the normally deactivated Administrator on Console level (cmd.exe) using the command
<b>net user Administrator /active</b>
btw, you can deactivate the Administrator's account by
</b>net user Administrator /active:no</b>
2 - a user with administration rights. This is a 'user' who can - after being asked by that nagging UAC-window - elevate her/his rights temporarily to admin rights. This is not an administrator for all the time but can e.g. install programs on a Vista PC.
3 - ordinary users with no way to elevate rights to being an administrator.
<b>Windows Vista compatible software should run for these users!</b> Remember: Users cannot elevate their rights to being an administrator. Microsoft recommends to being a 'user' when using a Vista computer for your everyday work. Users definitely cannot write into the '\Programs' folder, which means for WinDev programs that any data files have to sit in the \Users folder OR in the Hyperfile C/S folder \HF Server. Users of this type will never see that UAC-window (do you want to ..) - they simply aren't allowed to elevate their rights!
All of this means that the installation process and your software itself will work on two different levels. The install has to be done by a user with admin rights, the software has to be run by ordinary users. Consequence: Your software has to consist of two parts! One without any admin rights and a small one that requires admin rights. The latter has to be used to tell your program where your data is located and usually will write that information into an INI-file in the \Programs\YourCompanyName\YourProgramName folder. Your program can use this information to access the data files.
Kind regards,
Guenter
Edited 1 time(s). Last edit at 09/11/2008 07:20AM by Jimbo.