PDA

View Full Version : Read Only when using RunAs


MattHarding
03-11-2005, 12:44 PM
As a relative new user to VB and setup factory, I have managed to create a vb application and make a single setup file using setup factory.

However, the problem I encounter is if I install using RunAs,either through explorer or command prompt. the Application Folder is read only, preventing the application functioning properly.

If I log in as an administrator and install everything works fine.

Help.

:huh

Brett
03-11-2005, 01:36 PM
That is because when you run the install as an admin the install folder is writable by the user running the setup process (the admin). Then when the user without admin privilidges tries to run the software they do not have write permissions.

This is really an issue that you will have to address in the design of your software. Make sure that your program stores data files somewhere that limited users have modification access to like My Documents or Application Data.

MattHarding
03-11-2005, 02:28 PM
Thanks for that.

I have amended the installation so that the files are no installed to a folder on the root of C: instead of the Program Files directory but have left others in the System32 folder.

However the problem still occurs and the folder on the root of C: is again marked as read only.

I don't fancy visting all the machines to log in as an administrator and installing the software.