By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 2,933 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

Installer question: Read-only files

P: n/a
I want to deploy a project in which the user is provided with a set of
READ-ONLY files to use as templates. They will be in a directory to which
the user can add files of his own.

It's important to keep the user from deleting any of the pre-supplied files,
because if this is done, the Windows Installer apparently wants to "repair"
the application. I didn't realize it kept track of such things, but it's
doing so.

How can I make the files install as read-only files?

Making them read-only in the source directory isn't enough.

If this is a Custom Action, how can I determine the directory (under Program
Files) in which they are installed? For example, suppose the Custom Action
were just a .BAT file. Could it use environment variables to find out where
the user has installed the application?
Thanks!
--
Michael Covington, Ph.D.
Consultant
www.covingtoninnovations.com
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Just use CACLS to deny him the right to delete the files.

"Michael A. Covington" <lo**@www.covingtoninnovations.com.for.address> wrote
in message news:u9**************@TK2MSFTNGP10.phx.gbl...
I want to deploy a project in which the user is provided with a set of
READ-ONLY files to use as templates. They will be in a directory to which
the user can add files of his own.

It's important to keep the user from deleting any of the pre-supplied files, because if this is done, the Windows Installer apparently wants to "repair" the application. I didn't realize it kept track of such things, but it's
doing so.

How can I make the files install as read-only files?

Making them read-only in the source directory isn't enough.

If this is a Custom Action, how can I determine the directory (under Program Files) in which they are installed? For example, suppose the Custom Action were just a .BAT file. Could it use environment variables to find out where the user has installed the application?
Thanks!
--
Michael Covington, Ph.D.
Consultant
www.covingtoninnovations.com

Nov 15 '05 #2

P: n/a

"Ayende Rahien" <Ay****@no.spam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Just use CACLS to deny him the right to delete the files.


How? When? How do I build this into a deployment project? How would CACLS
know where the user chose to install the application?

In any case, I found that all I have to do is View File System (in the
deployment project) and mark the files read-only there.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.