Thanks Rob for the reminder on the different ways to add data to stacks, I am beginning to master these!

Thanks Jacque for the info on zipping files. I did think that I would need to look into an installing program, but if zipping works then I will do this. Are there any solid reasons for using install programs, - other than guiding those who are not sure of where they should place programs that they install? Does anyone use a preferred installer?

Thanks Chip for the info on unlocking a file from within Rev. I will be trying the simplest method first (zipping) and work towards clever stuff as I get better at scripting etc.

Thank you all for your speedy responses.

cheers

Greg


Message: 13 Date: Fri, 27 Feb 2004 16:33:06 -0700 From: Rob Cozens <[EMAIL PROTECTED]> Subject: Re: Read only To: How to use Revolution <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" ; format="flowed"

So I have developed a Rev application and I burnt it onto a CD. When
I go to another machine and copy it from the CD to the computer, the
file that is now on the computer is "read only".

Hi Greg,


Since you write "file", not "files", I assume the file is a
standalone Revolution application created by the Distribution
Builder.  That standalone will always be read only: neither Windows
nor Unix allow applications to modify themselves, so Revolution
standalones are not modifiable.

If your application makes changes that must persist beyond runtime,
those changes must be stored in a text file, external database, or
external stack.  The general approach is to create a "splash screen"
standalone that opens the "real" stack, which is seen as an external
file to the user.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



Message: 5
Date: Fri, 27 Feb 2004 20:57:04 -0600
From: "J. Landman Gay" <[EMAIL PROTECTED]>
Subject: Re: Read only
To: How to use Revolution <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii; format=flowed

On 2/27/04 5:28 PM, Greg Wills wrote:

So I have developed a Rev application and I burnt it onto a CD. When I
go to another machine and copy it from the CD to the computer, the file
that is now on the computer is "read only". Therefore if the program
updates data files etc it cannot be done.


What is the best way to remove the "read only" property on the new file
other than doing it manually after it has been copied. (Putting it onto
a windows machine)

As far as I can tell, that's one of the main reasons that Windows apps
use installers, because files from CDs are always copied as read-only. I
usually solve the problem by avoiding it, and .zip the files before
burning to CD. If you want to change it from within your Rev app,
there's probably a shell command.


--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com

------------------------------



Message: 6
Date: Fri, 27 Feb 2004 21:19:53 -0600
From: "Chipp Walters" <[EMAIL PROTECTED]>
Subject: RE: Read only
To: <[EMAIL PROTECTED]>,  "How to use Revolution"
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="US-ASCII"

WinXP shell script to unlock a file:

if the platform is "Win32" then
   put the filename of the topstack into tfile
   replace "/" with "\" in tfile
   put "attrib"&& quote & tfile & quote && "-R" into DosCommand
   set the hideConsoleWindows to true
   put shell (DosCommand) into theError
end if

Also, if you use the altArchive plugin and a stack is set as read-only, you
can unlock it by pressing the alt-key and clicking the altArchive button.
(hidden trick)


--Chipp

If you want to change it from within your Rev app,
there's probably a shell command.

--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]



_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to