Re: Strange problem with PDW




"dpb" <none@xxxxxxx> wrote in message news:f88a4a$tko$1@xxxxxxxxxxx
Sally wrote:
Hi. Experimenting with packaging an app. A strange error has arisen. I
wonder if anyone else has experienced it or can point at a solution.

My app has a sequence where if a certain dircetory does not exist it is
created. If it does exist the creation lines are jumped over, like this:

On Error Resume Next ' ignore error if directory already exists
MkDir "C:\BLOGGS" ' else make the directory
On Error GoTo 0 'bring back error trapping

This works in the IDE and it works when compiled. BUT, if deployed in a
package, and the package run as a test (having first deleted BLOGGS if it
existed in tests) then it does not create the directory. Thus, unless I'm
doing something else silly the MkDir does not work after an app has been
deployed. Any ideas?

Have to have write permission on the partition trying to create the new
subdirectory on.

On some platforms may have to have Supervisor status or be installed with,
maybe??? This is an area I don't know anything about as don't
"distribute" code I write, but know there are some "issues" w/ some older
packages I have w/ XP. I'm sure others here can expound far more
learnedly than I... :)

Thanks for trying. I've solved the problem! When deploying, all that is
needed is to have the explicit line ChDrive "C:\" in the code! It seems that
the app works perfectly without it both under the IDE and when compiled, but
once deployed from a CD, although it is deployed onto the C: drive, when
using the program you still need to explicitly ChDrive. Can't think why as
once copied onto C: we are no longer in D: Still, there it is. Now looking
forward to comments from that kind person who offered to check whether any
of the packaged "other" files are harmful (another thread...)
-


.



Relevant Pages

  • Re: Debug code on device not the emulator??
    ... I had this problem too -- I was connected via activesync fine, but the IDE ... just didn't "see" the connection upon deploying. ... app simply wont deploy. ...
    (microsoft.public.pocketpc.developer)
  • Re: Linked packages in advertisement?
    ... To set a dependency chain: Create two programs program a and program b. ... You don't have to update the package to change program dependency. ... > If I later have to distribute a third App wich also depends on Oracle, ... You don't have to re-package Oracle client. ...
    (microsoft.public.sms.swdist)
  • Re: Distributed Access references
    ... understand from trying to package an app and working w/ ... Although it appears that the excel does get packaged by ... So my app relies on the user having their own ... As for the other references I am not sure what to do? ...
    (microsoft.public.access.devtoolkits)
  • Re: Visual Basic executable file
    ... simply use the the Package & Deployment wizard to create a setup ... Have the user run the install package that is on the CD. ... properly install your app on their PC. ... Create an INI file with the database path and have your app ...
    (microsoft.public.vb.general.discussion)
  • Re: How to write application that expires after some days
    ... If it is to cover a commercial app, then you need to put a lot more thought ... 1.use the java security manager to protect this routine. ... this package. ...
    (comp.lang.java.programmer)