Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2011, 02:26 PM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Default I need help to create folder and set permission.

Hi,



my idea:

in vista/seven:
I use the "common_app_data" to get
the path c:\programdata\
and using "admin account" I will create
c:\programdata\MYSOFT
and I need to set permission to "full read/write/etc" to all users

how I do this ?
My idea is to execute a batch cmd , etc, with a installation created with innosetup+istool , only "admin" account could use the "installer" because it's necessary to be admin to "create" the folder (c:\programdata\MYSOFT) and set the correct permission to all users access and write the MYSOFT folder.
Reply With Quote
  #2  
Old 01-28-2011, 05:03 PM
nester261 nester261 is offline
Moderator
 
Join Date: Jan 2004
Location: UK
Posts: 618
Default

Hello - not sure about this but you could take a look at the JWSCL Classes by JEDI - here
__________________
"Where there's a will, there's always a way."

-- The Hon Robert Nester Marley O.M. - aka Bob Marley!
Reply With Quote
  #3  
Old 02-01-2011, 02:04 PM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Default

Hi Nester,

In Inno setup ,I discovered the parameter,
"Permissions" and set it to the value "everyone-modify" and will do the job correctly, and I setup the install to only run with admin rights.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


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


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.