Re: checking removable drives

2005-11-04 Thread Richard Gaskin
Martin Baxter wrote: Like Hypercard's "magic" password, that nobody thought to tell Phil Schiller about. Is that the one that builds rolodex stack automatically? ;) Or the one that spreads rumors about HyperCard's demise that the CEO says are wrong? -- Richard Gaskin Managing Editor, revJ

Re: checking removable drives

2005-11-04 Thread Martin Baxter
Richard Gaskin wrote: Martin Baxter wrote: Perhaps it might be workable to make it a user preference whether your app makes registry entries for its file extensions or not. User-mindset would be an issue to be considered, but this is by no means unheard-of, and I think this is what I would pe

Re: checking removable drives

2005-11-04 Thread Richard Gaskin
Martin Baxter wrote: Perhaps it might be workable to make it a user preference whether your app makes registry entries for its file extensions or not. User-mindset would be an issue to be considered, but this is by no means unheard-of, and I think this is what I would personally prefer from an

Re: checking removable drives

2005-11-04 Thread Martin Baxter
Richard Gaskin wrote: Chipp Walters wrote: Richard Gaskin wrote: And if we do ignore that for portable apps, assuming we'd like to ship a single app for both portable and installed use, how can we know we're running installed so that we could write the file association entry to the regist

Re: checking removable drives

2005-11-04 Thread Mark Wieder
Chipp- Thursday, November 3, 2005, 10:33:33 PM, you wrote: > Well then Mark, are you going to share it? ;-) The source is in the sdk. Do you need the compiled dll? I can't post it to the list or to revonline... -- -Mark Wieder [EMAIL PROTECTED] ___

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Well then Mark, are you going to share it? ;-) Richard Gaskin wrote: Small matter at this point: Mark Weider slugged it out with the externals SDK and sent me the compiled DLL he's been talking about. Works a treat. ___ use-revolution mailing li

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Chipp Walters wrote: Alternatively, I could safely provide that for 95% of my customers by writing the reg entry only when the boot volume is the same as the volume the app is running on. Richard, For some darn reason I buy a lot of Windows computers. You'd be surprised how many have a sma

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Richard Gaskin wrote: Alternatively, I could safely provide that for 95% of my customers by writing the reg entry only when the boot volume is the same as the volume the app is running on. Richard, For some darn reason I buy a lot of Windows computers. You'd be surprised how many have a s

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Mark Wieder wrote: Again, there's an external call in the sdk to do this. There's a Win32 API call named GetDriveType() that returns DRIVE_REMOVABLE for removable drives. Including USB flash drives. I doubt this can be done without an external call, short of seeing if a write works. Looks like

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Chipp Walters wrote: Richard Gaskin wrote: And if we do ignore that for portable apps, assuming we'd like to ship a single app for both portable and installed use, how can we know we're running installed so that we could write the file association entry to the registry as customers would ex

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Andre Garzia wrote: does anyone know if autorun.inf will work on usb drives? Not normally, but a consortium of USB vendors at U3.org has developed a way to partition a USB drive to trick the OS into thinking one of its partitions is a CD-ROM, so now that security hole can be exploited by USB

Re: checking removable drives

2005-11-03 Thread Mark Wieder
Chipp- Thursday, November 3, 2005, 12:50:36 PM, you wrote: > PS I've asked Chris about how to figure out the removable drive thing on > XP w/out vbs...He's processing...(unfortunately, I'm using Chris 1.0, > the 2.0 version *still* hasn't been released). Again, there's an external call in the sd

Re: checking removable drives

2005-11-03 Thread Garrett R. Hylltun
On Thu, 3 Nov 2005 14:27:29 -0800 Trevor DeVore <[EMAIL PROTECTED]> wrote: > On Nov 3, 2005, at 2:15 PM, Richard Gaskin wrote: > > We could, but it obviates the biggest benefit of the file-type > > association: being able to launch the app by double-clicking a > > document. > > True, you wou

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Richard Gaskin wrote: And if we do ignore that for portable apps, assuming we'd like to ship a single app for both portable and installed use, how can we know we're running installed so that we could write the file association entry to the registry as customers would expect for a hard-drive-

Re: checking removable drives

2005-11-03 Thread Garrett R. Hylltun
On Thu, 03 Nov 2005 14:19:36 -0800 Richard Gaskin <[EMAIL PROTECTED]> wrote: > Garrett R. Hylltun wrote: > > Actually, running apps from removable devices is far more common > > and growing in popularity. > > How do other portable apps handle the customary behavior of being able > to launch an

Re: checking removable drives

2005-11-03 Thread Andre Garzia
Err.. Folks... it is possible, but it is horrible™ From Microsoft USB FAQ: http://www.microsoft.com/whdc/device/storage/ usbfaq.mspx --- blurb --- The Autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the

Re: checking removable drives

2005-11-03 Thread Garrett R. Hylltun
On Thu, 3 Nov 2005 20:24:43 -0200 Andre Garzia <[EMAIL PROTECTED]> wrote: > does anyone know if autorun.inf will work on usb drives? It will not work with all removable devices. When I did my work related to this, my very own iPod Mini would not work with the autorun.inf, even though I had wi

Re: checking removable drives

2005-11-03 Thread Trevor DeVore
On Nov 3, 2005, at 2:15 PM, Richard Gaskin wrote: We could, but it obviates the biggest benefit of the file-type association: being able to launch the app by double-clicking a document. True, you would only get double-click, icon associations, etc. while the app was running. -- Trevor D

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Andre Garzia wrote: does anyone know if autorun.inf will work on usb drives? Last I checked, it didn't. -Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscri

Re: checking removable drives

2005-11-03 Thread Andre Garzia
On Nov 3, 2005, at 8:19 PM, Richard Gaskin wrote: Garrett R. Hylltun wrote: > Actually, running apps from removable devices is far more common > and growing in popularity. How do other portable apps handle the customary behavior of being able to launch an app by double-clicking one of its do

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Garrett R. Hylltun wrote: > Actually, running apps from removable devices is far more common > and growing in popularity. How do other portable apps handle the customary behavior of being able to launch an app by double-clicking one of its documents? Or it is considered acceptable to blow that

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Trevor DeVore wrote: On Nov 3, 2005, at 2:05 PM, Richard Gaskin wrote: With Rev's ability to read and write the Windows directory, it would be simple enough to make the registry entries for the file type association. But for true portability this should not happen when running from a re

Re: checking removable drives

2005-11-03 Thread Trevor DeVore
On Nov 3, 2005, at 2:05 PM, Richard Gaskin wrote: With Rev's ability to read and write the Windows directory, it would be simple enough to make the registry entries for the file type association. But for true portability this should not happen when running from a removable drive, the goal

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Chipp Walters wrote: Richard Gaskin wrote: The only downside to self-contained apps is that there's no file-type association present in the host system's registry, so documents must be opened from within the app rather than double-clicked. But this factor is independent of any method used

Re: checking removable drives

2005-11-03 Thread Garrett R. Hylltun
Actually, running apps from removable devices is far more common and growing in popularity. I myself had written a few apps in my Windows days to run off of my iPod Mini. As well, I also had Firefox, Thunderbird, Nvu and several other programs setup on my iPod Mini. I can't speak for OSX, bu

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Richard Gaskin wrote: The only downside to self-contained apps is that there's no file-type association present in the host system's registry, so documents must be opened from within the app rather than double-clicked. But this factor is independent of any method used to determine what type

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Chipp Walters wrote: Hmm, I'm probably just coming late to the party. But, you say: "If an app can't write to its own directory, it must be installed on the hard drive and not running from a removable device." <-- TRUE (unless it's on a CD-ROM or the removable device is LOCKED) of course the

Re: checking removable drives

2005-11-03 Thread Chipp Walters
OK, I'm caught up now and get what you're doing. Sorry for wasting bandwidth on the list. You're right, using an environment variable can help manage the user prefs. Overall, I like the idea of just putting stuff in the same folder as the app, for portability reasons. But, it does present a

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Hmm, I'm probably just coming late to the party. But, you say: "If an app can't write to its own directory, it must be installed on the hard drive and not running from a removable device." <-- TRUE (unless it's on a CD-ROM or the removable device is LOCKED) of course the inverse isn't true:

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Chipp Walters wrote: Yep, how would you account for different users having different prefs if you store the prefs only in the Program Files folder? Of course, if that's not a concern, then _fire away_ ! How many different users would be running the app from the same removable device? If ins

Re: checking removable drives

2005-11-03 Thread Richard Gaskin
Chipp Walters wrote: Richard, In many situations with managed clients using active directory domains, writing to the 'Programs Folder' is *not permitted*. This is particularly a problem in Enterprise and can also be a problem for 'Guest' users. That is the reason why I use the AppPath or th

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Yep, how would you account for different users having different prefs if you store the prefs only in the Program Files folder? Of course, if that's not a concern, then _fire away_ ! Richard Gaskin wrote: Could there be a downside to writing prefs or other such app-managed data to a folder eit

Re: checking removable drives

2005-11-03 Thread Chipp Walters
Richard, In many situations with managed clients using active directory domains, writing to the 'Programs Folder' is *not permitted*. This is particularly a problem in Enterprise and can also be a problem for 'Guest' users. That is the reason why I use the AppPath or the UserPath method. be

Re: checking removable drives

2005-11-03 Thread Stephen Barncard
X, We Mac OSX users don't need to run ANY antivirus software, if we're on a router-buffered LAN. It's just not an issue. I don't know what they would protect us from... And yes all 4 of my G4's are on an internet-connected lan. I gave up on Symantic/Norton for disk repair about 4 years ago. Ju

Re: checking removable drives

2005-11-03 Thread Charles Hartman
(an OT, musing response:) Interesting. A year or so ago, on a Python list, because I was trying to write a my0wnData file (for the program, not the user), I asked how to find out what "the program's own folder" *was*. On OS X it's weird; the "own folder" turns out to be inside the applica

Re: checking removable drives

2005-11-03 Thread xavier . bury
Ken, At work we use etrust, CAVA (for emc systems) and sophos and never get these issues!!! I've thrown away Norton long ago because it's such an intrusive over-simplistic application without much choice of what i could or wanted to be done. Not to mention the email slowdowns with dialog int

Re: checking removable drives

2005-11-02 Thread Ken Ray
On 11/3/05 1:29 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Ken, Richard, > > it's true it's open for discussion but in general, programs that write > prefs to the same app folder have > the advantage that they can be moved anywhere later by the user. > > The registry is practical in ca

Re: checking removable drives

2005-11-02 Thread xavier . bury
Ken, Richard, it's true it's open for discussion but in general, programs that write prefs to the same app folder have the advantage that they can be moved anywhere later by the user. The registry is practical in case you want to update with an installer so it's easy to see where the app was i

Re: checking removable drives

2005-11-02 Thread Ken Ray
On 11/2/05 11:42 PM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote: > Could there be a downside to writing prefs or other such app-managed > data to a folder either within or at the same level as our program's > folder if we have permissions to do so? Not that I can see - especially in Windows where

Re: checking removable drives

2005-11-02 Thread simplsol
How to use Revolution Sent: Wed, 02 Nov 2005 21:42:36 -0800 Subject: Re: checking removable drives Ken et al -    I appreciate the thought that y'all put into trying to solve this, but in brainstorming with Paul Looney and Bill Vlahos, each of them independently hit on a similar possible so

Re: checking removable drives

2005-11-02 Thread Richard Gaskin
Ken et al - I appreciate the thought that y'all put into trying to solve this, but in brainstorming with Paul Looney and Bill Vlahos, each of them independently hit on a similar possible solution. The only problem is that it's so simple it feels like cheating. :) Keeping our focus on the go

Re: checking removable drives

2005-11-02 Thread Ken Ray
On 11/2/05 7:43 PM, "Buster" <[EMAIL PROTECTED]> wrote: > Hi, > > As you didn't mention which info you exactly need, > this call can help you get the info of all devices for starter: > > put shell("diskutil list") Yes, and after checking, you can do this: on mouseUp put isRemovable("USB DIS

Re: checking removable drives

2005-11-02 Thread Buster
Hi, As you didn't mention which info you exactly need, this call can help you get the info of all devices for starter: put shell("diskutil list") Greetings, Wouter On 01 Nov 2005, at 22:22, Richard Gaskin wrote: I'd like to be able to determine if an app is running from a removable driv

Re: checking removable drives

2005-11-02 Thread Mark Wieder
Richard- Tuesday, November 1, 2005, 1:22:08 PM, you wrote: > I'd like to be able to determine if an app is running from a removable > drive. > I've found that on OS X I can call system_profiler from shell, but it > takes between 2 and 4 seconds on my 1GHz PB. > And I've found no solution at all

checking removable drives

2005-11-01 Thread Richard Gaskin
I'd like to be able to determine if an app is running from a removable drive. I've found that on OS X I can call system_profiler from shell, but it takes between 2 and 4 seconds on my 1GHz PB. And I've found no solution at all for Windows. While we're waiting for implementation of BZ#101 fro