I'm doing it for the folder with my program. What is wrong with this? I said
I do not give permission to the entire Program Files folder.
What is the difference if I move my program to different location and will
allow to access its folders there?
What about a lawsuit for such companies like Adobe with their Photoshop,
which stores temp files in its folder. I did not test it on Vista yet, but I
think there might be some problems with permission too.
I'm looking for the fastest way to adopt my program to Vista for now. Later
I will think about the need to redisign it.
Now my clients are going to by new machines with Vista. I tested my program
on it and many features do not work. So, what is the best way from your
point of view to give them the ability to use my program on Vista. Ask them
to wait until I redesign everything?
I also woud ask if there is anybody else as stupid as me who did not have
any problem with security before, but with Vista has them. Or it's just me?
Everybody else knew all the time that it's a bad idea to install his (her )
program in Program Files folder. Everybody always knew that it's a bad idea
to store temporary files in its program folder. Everybody always knew that
Microsoft is going to change their security phylosophy. Only I did not know
anything.
Thank you
Vovan
"Kerry Brown" <*a*m> wrote in message
news:...
> Why would you want to risk doing this? What will happen when some user
> finds out you modified their system needlessly and lowered their security.
> It is their computer not yours. Are you so arrogant that you think your
> program can do whatever it wants to someone else's computer or are you
> just too lazy to lean how to do things properly? You will potentially
> alienate your customers at best and possibly set yourself up for a lawsuit
> at worst. Vista is here. Learn to program for it.
>
> --
> Kerry Brown
> Microsoft MVP - Shell/User
> http://www.vistahelp.ca
>
>
> "vovan" <> wrote in message
> news:...
>>I created a function:
>> Public Function SetUsersPermission(strFolder As String) As Integer
>> 'Call this function when a new folder is created in Coordinator Folder
>> 'to give a Full Access to Users
>> Dim objShell As Object
>> Dim intRunError As Integer
>> On Error Resume Next
>> intRunError = 1 'in case of error that value will be returned
>> Set objShell = CreateObject("Wscript.Shell")
>> 'objShell.Run returns 0 if success
>> intRunError = objShell.Run("cmd /c cacls " & strFolder & " /e /g
>> Users:F", 0)
>> SetUsersPermission = intRunError
>> End Function
>>
>> I call it every time I'm creating a new folder which is going to be
>> accessed by my program to save there some file.
>>
>> Vovan
>>
>> "mayayana" <> wrote in message
>> news:Zzmzh.22883$ hlink.net...
>>>
>>>> I found some way (using Windows script) to give Users full control on
>>>> "C:\Program Files\My Program", not on entire "C:\Program Files\". Just
>>>> on
>>> my
>>>> folder.
>>>> It looks like adjustment will take much less time than full redesign.
>>>> What is wrong with this approach?
>>>
>>> That sounds like a good idea to me.
>>> How do you achieve that?
>>>
>>> (My best idea for a solution so far is a note saying
>>> something like: "If you have the misfortune to be using
>>> Windows Vista, and you want to use this software,
>>> then you will need to give yourself permission to
>>> fully use your PC." 
>>>
>>>
>>
>>
>