473,395 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Installer question: Read-only files

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
2 1412
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Glawster | last post by:
I am not sure whether this is the right place to post questions for Installer but here you are. I have inherited a python application, I work on UNIX and then have to use Installed to produce a...
0
by: zyqnews | last post by:
hello: I am using Install to create a standalone program for linux. What I has done is : $cd source/linux $python Make.py $make $cd ../../ $python Configure.py $python Makespec.py hello.py
5
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService :...
7
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added...
1
by: HyperX | last post by:
Hey guys, How can I see the code of the installer class? I know that I have to right click on my object class, -> Add Item -> Code -> installer class... The actual question is, I cannot see...
1
by: Patrick De Ridder | last post by:
When I apply the installer to create a setup.exe for clients, I get "default company name" in the suggested file location. How do I change "default company name" into a more appropriate setting? ...
0
by: Marcin Hoppe | last post by:
Hi! I have a Windows service and installer for it in the same assembly. When the Windows service executes it can access its configuration file in a normal manner. When the service is...
1
by: Richard | last post by:
Hi, I'd like to add a custom action to my installer project and I would like that custom action to be an entry point into a C# DLL. I have read and understand how to add a custom action to an...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
1
by: douglass_davis | last post by:
I am making a VB 2005 app, and I have another installation question. :-) Have you ever had to use the windows installer instead of clickonce installation? I read an article that says you have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.