CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    19

    Question Disable Read only

    hi hi,

    i have little question. I made an installation procedure in Visual basic which copies everything from my CD-ROM to the hard disk but the problem is that everything on a CD-ROM is read only. Hoz can I change it that this function is enabled in order to read and change my copied files on the harddisk. Thx
    The man who want to run and program at the same time

  2. #2
    Hi,
    This is an Install program or is this a program that you made to copy files off a cd?
    Beta Testers Needed. Free Access www.drussellsoft.com to sign-up

  3. #3
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    19

    Smile HI Read only

    Ok I already found it how I could do it. It's with a shell to my bat file where I wirte ATTRIB -r C:\folder\*.* /D /S

    But the problem is now something else. In my bat file I have a regsvr32 name.dll. Here he gives a runtime error altough when I run the bat file from my harddisk it works fine or even from the CD it works fine. but not from my vb install program.
    The man who want to run and program at the same time

  4. #4
    Hi,
    This has got me stumted.. I know someone that may help... I will forward this to him..

    Darrell
    Beta Testers Needed. Free Access www.drussellsoft.com to sign-up

  5. #5
    Join Date
    Dec 2001
    Posts
    6,332
    What is the error?

    Could it be that the path to the file is incorrect?
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  6. #6
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    19

    Disable Read only

    hi,

    Well I don't think so because when I double click on the file from my CD-ROM everything works fine. It is only during the installation from my visual Basic dat het does is wrong.

    My Bat file is the following:

    @echo off
    ATTRIB -r c:\CDTEEK\*.* /D /S
    cd c:\CDTEEK\Administratie\Release\
    regsvr32 webxing.dll
    @echo on

    not more and he gives me at the end of my visual basic installation the error about the Loadlibrary error or something like that I asume. But why is he not doing it manually when I run this file from the CD-ROM
    The man who want to run and program at the same time

  7. #7
    Join Date
    Dec 2001
    Posts
    6,332
    Not having done this exactly, I will take a guess that the installer is using an incorrect path. Try specifying the path to the windows system directory for regsvr32. If that doesn't work, perhaps you might try a different installer, like the one here: http://www.panta-ray.com/
    It seems good, but I have not tried it yet. There are others too of course.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  8. #8
    Join Date
    Jun 2003
    Location
    India
    Posts
    22

    Setup Problem

    Hi,

    Please make changes into PDWizard Setup1.exe project.

    Open that project,

    1) One Way

    1. Find Section where setup copies files
    2. Add one section there who will remove attribute or read only properties of copied file.
    Note : in this u have to remove read only attribute of every file after that file get copied to pc.

    2) Second Way

    1. After coping all files fires command that will remove attribute of all files.

    Please give me feedback.
    Satish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured