Hello Guys,

I'm a new user..just started using wise for the past 3 weeks. I'm making a web server package.
I have a list of folders and asp files under it.

My issue is how can I set domain wide permission to those folders under D:\inetpu\mywebsite

I mean..i need to give custom permission to my web site folder and folders underneith it.
I know we can give permissions to individual files.

can some one help????
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Guys,

I'm using wise for windows installer ver 4.2
Answered 12/16/2004 by: deepucherian
Senior Yellow Belt

Please log in to comment
0
hi

just read my topic that I made yesterday.
I use a customaction that runs a tool like cacls.exe
Answered 12/17/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
Oliver,

Thanks for your help. I went and lookd at the KB article

http://www.wise.com/KBArticle.aspx?articleno=1340...
can you tell me one more thing....if i apply permission to a folder...will it propagte to child folders after , if I copy few in to that from installation expert???


I mean, i will create a folder from setup editor and will set prmission. now if I go back to files in Installation expert and drag 2 other folders in to what i made before...will it have the permissions flow from parent????

I'm gona try this.....but if u have a suggestions..it will be heelpfull


thanks

Deepu
Answered 12/17/2004 by: deepucherian
Senior Yellow Belt

Please log in to comment
0
hi

1) no, it will not inheritate: "Because Windows Installer cannot ensure that a parent folder installs first, you cannot count on a child folder inheriting the security permissions of the parent."


2) that's why I had to use a script which sets the permisions AFTER the file where copied.

cheers

Olivier
Answered 12/17/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
i use secedit, is another tool of microsoft which you can set permission.
Answered 12/17/2004 by: xink22822
Senior Yellow Belt

Please log in to comment
0
but you have to use a template, is that right?
Answered 12/17/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
Oliver, Thanks for your fast response.
As you know, I just started using this.....long way to go.

Can you tell me how you used the script?? how can u mix that with the package??
or u use the cacls through a shortcut???

if ur mixing with the package..where and how we can do it?


Hope I'm not bothering you....

any way..thanks for ur help

Deepu
Answered 12/17/2004 by: deepucherian
Senior Yellow Belt

Please log in to comment
0
yes..i use a template to create custom made web package...
this is a template made by another employee..he is not here...but uit has pretty much
to do packageing for web site...but this is a special case where i have to use...
special permissions for some asp files....and folders..


any way..let me try...
Answered 12/17/2004 by: deepucherian
Senior Yellow Belt

Please log in to comment
0
ok

here is an example, one way to do that.
Everyway leads to Rom ;-)

Create a CustomAction
Action: SetRegPerm
Type: 34
Source: WindowsFolder
Target: "cmd /c c:\setregperm.vbs"

In InstallExecuteSequence:
Action SetRegPerm
Condition Not Installed
Sequence 6650 --> After InstallFinalize

script cool look like that

file1 = "c:\myfilethatneedpermissions.txt"

Set WShell = Wscript.CreateObject("Wscript.Shell")
Return = WShell.Run("%SYSTEMROOT%\system32\cacls.exe " & File1 & " /t /e /g " & chr(34) & "mydomain\domain users" & chr(34) & ":C" )


hope that help
Answered 12/17/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
Thanks a lot Oliver....
you are spending lot of time for me.....

one quik question...

file1.txt can have only file names??right??
or can I put the folders names also also??will it porpagate?

do i need to mention the complete path as well???

You are great!!!
people like you are of great help for beginners..
thanks a lot for your help.
I'm good with exchange server and AD...I too will try helping people with what I know.

All the best !!
Answered 12/17/2004 by: deepucherian
Senior Yellow Belt

Please log in to comment
0
hi

you can also mention complete directories: for example

file1 = "c:\my files\"

and yes, it should propagates so you don't have to mention every file :-)

glad I could help.

Best thing would to that you try that right now.

cheers

Olivier
Answered 12/17/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
THANKS OLIVER...


I'm sure it will wrk...let me try.....

Once again thanks for this gr8 help.

Deepu
Answered 12/17/2004 by: deepucherian
Senior Yellow Belt

Please log in to comment
0
no problem.
let me know if it works or not.


cheers

Olivier
Answered 12/17/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
Nice to see another happy user.

Nice job olivier :)
Answered 12/17/2004 by: MSIMaker
Second Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity