Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna



Reply
 
LinkBack Thread Tools
  #1  
Old 07-09-2009, 03:50 PM
vbDavidC
Newsgroup Contributor
 
Posts: n/a
can't write to text file after installing app

Hello,

I am a XP user who is testing out Vista. I am trying to determine how
Vista limits user's rights/permissions to files and folders.

I develop apps with Microsoft Visual Studio 2005. I created a
Setup.exe with Visual Studio 2005. It works well in XP although I am
an administrator.

I tested the same setup.exe on a Vista computer and everything seems
to work. The apps by default get written to a subdirectory underneath
C:\ not Program Files\ not that that it matters where the install
folder is. When I run my app, it starts up but one thing that the app
does is it writes data to an ini file. App appears to work but it
does not actually update the file. If I try to edit the ini file with
notepad I cannot save the file. Apparently the file's permission is
not writeable.

I tried this both as a standard user and as an administrator.

Being a new user to Vista I am not sure what Vista prohibits user's
from writing. If I open Windows Explorer I can create a subdirectory
and text files as a standard user. I am trying to understand where
Vista prohibits standard users from writing.

Someone mentioned to me that maybe my Visual Studio 2005 setup creator
may not be providing additional info for permissions for the files I
am installing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-09-2009, 03:50 PM
  #2  
Old 07-09-2009, 06:40 PM
Gene E. Bloch
Newsgroup Contributor
 
Posts: n/a
Re: can't write to text file after installing app

On Thu, 9 Jul 2009 15:36:22 -0700 (PDT), vbDavidC wrote:
[color=blue]
> Hello,
>
> I am a XP user who is testing out Vista. I am trying to determine how
> Vista limits user's rights/permissions to files and folders.
>
> I develop apps with Microsoft Visual Studio 2005. I created a
> Setup.exe with Visual Studio 2005. It works well in XP although I am
> an administrator.
>
> I tested the same setup.exe on a Vista computer and everything seems
> to work. The apps by default get written to a subdirectory underneath
> C:\ not Program Files\ not that that it matters where the install
> folder is. When I run my app, it starts up but one thing that the app
> does is it writes data to an ini file. App appears to work but it
> does not actually update the file. If I try to edit the ini file with
> notepad I cannot save the file. Apparently the file's permission is
> not writeable.
>
> I tried this both as a standard user and as an administrator.
>
> Being a new user to Vista I am not sure what Vista prohibits user's
> from writing. If I open Windows Explorer I can create a subdirectory
> and text files as a standard user. I am trying to understand where
> Vista prohibits standard users from writing.
>
> Someone mentioned to me that maybe my Visual Studio 2005 setup creator
> may not be providing additional info for permissions for the files I
> am installing.[/color]

You should probably go to a developers' forum on this question.

That said, I understand that Vista restricts programs from writing in the
two program file directory trees "Program Files" and "Program Files (x86)".

Try putting .ini files in a place such as:
C:\Users\UserName\AppData\Roaming\YourProgram

Replace UserName and YourProgram by appropriate values, natch.

--
Gene E. Bloch letters0x40blochg0x2Ecom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3  
Old 07-09-2009, 08:20 PM
+Bob+
Newsgroup Contributor
 
Posts: n/a
Re: can't write to text file after installing app

On Thu, 9 Jul 2009 18:32:20 -0700, "Gene E. Bloch"
<not-me@other.invalid> wrote:
[color=blue]
>That said, I understand that Vista restricts programs from writing in the
>two program file directory trees "Program Files" and "Program Files (x86)".
>
>Try putting .ini files in a place such as:
> C:\Users\UserName\AppData\Roaming\YourProgram
>
>Replace UserName and YourProgram by appropriate values, natch.[/color]

My thoughts too. I'd actually look at Vista another way: assume you
can't write anywhere except in the current user's directory and you
will be mostly on target.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4  
Old 07-10-2009, 04:50 PM
Gene E. Bloch
Newsgroup Contributor
 
Posts: n/a
Re: can't write to text file after installing app

On Thu, 09 Jul 2009 23:10:10 -0400, +Bob+ wrote:
[color=blue]
> On Thu, 9 Jul 2009 18:32:20 -0700, "Gene E. Bloch"
> <not-me@other.invalid> wrote:
>[color=green]
>>That said, I understand that Vista restricts programs from writing in the
>>two program file directory trees "Program Files" and "Program Files (x86)".
>>
>>Try putting .ini files in a place such as:
>> C:\Users\UserName\AppData\Roaming\YourProgram
>>
>>Replace UserName and YourProgram by appropriate values, natch.[/color]
>
> My thoughts too. I'd actually look at Vista another way: assume you
> can't write anywhere except in the current user's directory and you
> will be mostly on target.[/color]

That can't be true - it's too easy! Even I can remember that one...

--
Gene E. Bloch letters0x40blochg0x2Ecom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot write to network drive after installing SP3 Enrique Windows XP 3 10-17-2008 04:47 AM
Over write highlighted text Leela Microsoft Office 1 06-17-2008 05:40 AM
How can I write numbers in persian (arabic) text in worD2007? SERPOUSH Microsoft Office 1 06-06-2008 06:50 AM
installing office 2007 fails cannot write to config.msi edkgb Microsoft Office 0 09-29-2007 04:30 AM
How do i use text i have downloaded to write on microsoft word Carkey4boro Microsoft Office 3 04-04-2007 09:30 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 01:17 PM.


2003 - 2010 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0