Home All Groups Group Topic Archive Search About

Full Control to Users programmatically

Author
10 Feb 2007 2:28 AM
vovan
My VB6 program is installed by setup created in InstallShield 12.
Before Vista everything was working fine.
On Vista one of the operations (replace file located in c:\program files\my
program with another file) fails - my research showed me than there is an
error 70, 'Access denied'
After I set manually Full Control to Users of that machine everything works
fine.
Any advice how to set Full Control to Users programmatically from VB6 or
from InstallShield project.

Thank you
Vovan

Author
10 Feb 2007 4:15 PM
vovan
I need a full control for Users on "C:\Program Files\My Program" folder.
I had it for more than 10 years with no problem (before Vista). What's wrong
with my wish now?
It looks like you lived your live with 2 legs, you drove many cars. Now
somebody created a new kind of car requirening you to have 3 legs. And they
say that it's much better for you not allowing you to have any choice. They
are going to  replace all existing models with new ones.
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?

Thank you
Vovan

Show quoteHide quote
"vovan" <some***@vovan.com> wrote in message
news:eIggYsLTHHA.5060@TK2MSFTNGP06.phx.gbl...
> My VB6 program is installed by setup created in InstallShield 12.
> Before Vista everything was working fine.
> On Vista one of the operations (replace file located in c:\program
> files\my program with another file) fails - my research showed me than
> there is an error 70, 'Access denied'
> After I set manually Full Control to Users of that machine everything
> works fine.
> Any advice how to set Full Control to Users programmatically from VB6 or
> from InstallShield project.
>
> Thank you
> Vovan
>
Author
10 Feb 2007 4:15 PM
vovan
I need a full control for Users on "C:\Program Files\My Program" folder.
I had it for more than 10 years with no problem (before Vista). What's wrong
with my wish now?
It looks like you lived your live with 2 legs, you drove many cars. Now
somebody created a new kind of car requirening you to have 3 legs. And they
say that it's much better for you not allowing you to have any choice. They
are going to  replace all existing models with new ones.
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?

Thank you
Vovan

Show quoteHide quote
"vovan" <some***@vovan.com> wrote in message
news:eIggYsLTHHA.5060@TK2MSFTNGP06.phx.gbl...
> My VB6 program is installed by setup created in InstallShield 12.
> Before Vista everything was working fine.
> On Vista one of the operations (replace file located in c:\program
> files\my program with another file) fails - my research showed me than
> there is an error 70, 'Access denied'
> After I set manually Full Control to Users of that machine everything
> works fine.
> Any advice how to set Full Control to Users programmatically from VB6 or
> from InstallShield project.
>
> Thank you
> Vovan
>
Author
10 Feb 2007 4:40 PM
mayayana
> 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."  :)
Author
10 Feb 2007 4:40 PM
mayayana
> 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."  :)
Author
24 Feb 2007 3:36 PM
bp
Show quote Hide quote
"mayayana" wrote:

>
> > 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."  :)
>
Or you could say this:
I'm to lazy to code this correctly so I am trying to hack it and in the
process I will destroy your windows security. Sorry.
Show quoteHide quote
>
>
Author
24 Feb 2007 3:36 PM
bp
Show quote Hide quote
"mayayana" wrote:

>
> > 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."  :)
>
Or you could say this:
I'm to lazy to code this correctly so I am trying to hack it and in the
process I will destroy your windows security. Sorry.
Show quoteHide quote
>
>