My program killed my friends system

I wrote a simple (I thought) program for a friend of mine. The program allows users to enter product information in an Excel spreadsheet. I then extract the data and write it to an XML file for storage. The user may then retrieve the data for each product and display it as HTML in IE. The project references IE,XML and Excel.

I finished a prototype and used the package and deployment wizard to create an installation CD. I removed all the files from my machine (I am running XP Professional) that I had been using during development and installed from the CD. It worked fine.

I took the CD to my friend to show him the prototype and see what we wanted to do from there. He put the CD in his (Windows 98) machine and started the install. A window came up saying that some of his files were out of date and asked if he would like to update them now. He clicked yes, the files were updated and a window came up saying that he needed to restart. When he did, A window came up saying that one of his DLL,s was missing or could not be opened. Now he can't boot from C: or even re-install Windows 98 from his Windows 98 CD.

Fortunately he had recenly installed a new hard drive and still had his old one installed also. After some copying of files from the Windows 98 CD to his old hard drive, he was able to boot from it and access his data and programs that wrere on the new drive. He is still unable to boot from the new drive.

It appears that my program replaced, deleted or corrupted some of the files in the Win32 folder on the new hard drive.

Can anyone tell me what I did wrong and or how to fix it?

Thanks

Jon

Comments

  • Creeeeeeeeeeeeeeeeeeeeeeeeeeeeeepy! Uhhhhhhhhhhhhhh...

    The problem is probably that you've installed some XP (or should I say NT) files on Win32 platform. Who knows?! One advice: Don't use Package & Deployment wizard! I don't understand why the "old" HDD does not want to boot the Windows. You said that your friend has Win 98 CD. Well, run the Setup directly from the CD (The CD is bootable, right?) As far as I know, Windows 98 setup cleans up the master boot record and writes information to boot 98. I have Win 98 SE. I had similar problem, and installing the windows by booting from the CD solved my problem. I this don't (or didn't) help, you may need to use "FDISK /MBR". Be very careful using this command, you must be prepared to make the drive bootable again, by using "sys c:" or whatever. Win 98 installation from bootable disc should do all the work! However, you may need to delete the old windows folder (don't forget to back up data, in this case!)

    Bye

    Best regards,
    Nikolay Semov
  • Dont use the package and deployment wizard! it sucks!

    If your app requires some DLL's (Like the vb6.0 DLL), just put them in the same directory as the app's EXE file! It works always.. Then compress it and give it to your mate. If he extracts the file and runs the exe, it WILL work for sure. Be sure to put ALL the required/used DLL's in the same directory. Ofcourse you should not add Kernel32.dll and things like that.

    - vb 6.0 DLL
    - EXE
    - additional DLL's/OCX

    No problem,:)



    : I wrote a simple (I thought) program for a friend of mine. The program allows users to enter product information in an Excel spreadsheet. I then extract the data and write it to an XML file for storage. The user may then retrieve the data for each product and display it as HTML in IE. The project references IE,XML and Excel.
    :
    : I finished a prototype and used the package and deployment wizard to create an installation CD. I removed all the files from my machine (I am running XP Professional) that I had been using during development and installed from the CD. It worked fine.
    :
    : I took the CD to my friend to show him the prototype and see what we wanted to do from there. He put the CD in his (Windows 98) machine and started the install. A window came up saying that some of his files were out of date and asked if he would like to update them now. He clicked yes, the files were updated and a window came up saying that he needed to restart. When he did, A window came up saying that one of his DLL,s was missing or could not be opened. Now he can't boot from C: or even re-install Windows 98 from his Windows 98 CD.
    :
    : Fortunately he had recenly installed a new hard drive and still had his old one installed also. After some copying of files from the Windows 98 CD to his old hard drive, he was able to boot from it and access his data and programs that wrere on the new drive. He is still unable to boot from the new drive.
    :
    : It appears that my program replaced, deleted or corrupted some of the files in the Win32 folder on the new hard drive.
    :
    : Can anyone tell me what I did wrong and or how to fix it?
    :
    : Thanks
    :
    : Jon
    :
    :

    [HR]
    Gadver, ik wot ha'k hjir no wr?
    [HR]

    [GREEN]Anyone cares to translate?[/GREEN]

  • Haha, Nikolav seems to agree with me about the evil package and deployment wizard.

    : Creeeeeeeeeeeeeeeeeeeeeeeeeeeeeepy! Uhhhhhhhhhhhhhh...
    :
    : The problem is probably that you've installed some XP (or should I say NT) files on Win32 platform. Who knows?! One advice: Don't use Package & Deployment wizard! I don't understand why the "old" HDD does not want to boot the Windows. You said that your friend has Win 98 CD. Well, run the Setup directly from the CD (The CD is bootable, right?) As far as I know, Windows 98 setup cleans up the master boot record and writes information to boot 98. I have Win 98 SE. I had similar problem, and installing the windows by booting from the CD solved my problem. I this don't (or didn't) help, you may need to use "FDISK /MBR". Be very careful using this command, you must be prepared to make the drive bootable again, by using "sys c:" or whatever. Win 98 installation from bootable disc should do all the work! However, you may need to delete the old windows folder (don't forget to back up data, in this case!)
    :
    : Bye
    :
    : Best regards,
    : Nikolay Semov
    :

    [HR]
    Gadver, ik wot ha'k hjir no wr?
    [HR]

    [GREEN]Anyone cares to translate?[/GREEN]

  • Nikolay,

    Thanks for the info. I thought it might be the NT thing. I will have him try booting from the CD again.

    How can I create a distributable installation CD without using the apparenly evil Package & Deployment wizard?

    Thanks again for your help.

    Jon

    : Creeeeeeeeeeeeeeeeeeeeeeeeeeeeeepy! Uhhhhhhhhhhhhhh...
    :
    : The problem is probably that you've installed some XP (or should I say NT) files on Win32 platform. Who knows?! One advice: Don't use Package & Deployment wizard! I don't understand why the "old" HDD does not want to boot the Windows. You said that your friend has Win 98 CD. Well, run the Setup directly from the CD (The CD is bootable, right?) As far as I know, Windows 98 setup cleans up the master boot record and writes information to boot 98. I have Win 98 SE. I had similar problem, and installing the windows by booting from the CD solved my problem. I this don't (or didn't) help, you may need to use "FDISK /MBR". Be very careful using this command, you must be prepared to make the drive bootable again, by using "sys c:" or whatever. Win 98 installation from bootable disc should do all the work! However, you may need to delete the old windows folder (don't forget to back up data, in this case!)
    :
    : Bye
    :
    : Best regards,
    : Nikolay Semov
    :



  • : Nikolay,
    :
    : Thanks for the info. I thought it might be the NT thing. I will have him try booting from the CD again.
    :
    : How can I create a distributable installation CD without using the apparenly evil Package & Deployment wizard?
    :
    You can download InnoSetup package from
    http://www.jrsoftware.org/isinfo.php
    It's free, easy to use. Just read help.
  • Thanks for the reply,

    I now know not to use the package & deployment wizard.

    I will ask you the same question I asked Nikolay.

    How would you reccomend I create a distributable installation CD?

    Thanks for your help.

    Jon

    : Haha, Nikolav seems to agree with me about the evil package and deployment wizard.
    :
    : : Creeeeeeeeeeeeeeeeeeeeeeeeeeeeeepy! Uhhhhhhhhhhhhhh...
    : :
    : : The problem is probably that you've installed some XP (or should I say NT) files on Win32 platform. Who knows?! One advice: Don't use Package & Deployment wizard! I don't understand why the "old" HDD does not want to boot the Windows. You said that your friend has Win 98 CD. Well, run the Setup directly from the CD (The CD is bootable, right?) As far as I know, Windows 98 setup cleans up the master boot record and writes information to boot 98. I have Win 98 SE. I had similar problem, and installing the windows by booting from the CD solved my problem. I this don't (or didn't) help, you may need to use "FDISK /MBR". Be very careful using this command, you must be prepared to make the drive bootable again, by using "sys c:" or whatever. Win 98 installation from bootable disc should do all the work! However, you may need to delete the old windows folder (don't forget to back up data, in this case!)
    : :
    : : Bye
    : :
    : : Best regards,
    : : Nikolay Semov
    : :
    :
    : [HR]
    : Gadver, ik wot ha'k hjir no wr?
    : [HR]
    :
    : [GREEN]Anyone cares to translate?[/GREEN]
    :
    :



  • I'll give it a try.

    Thanks for your help.

    Jon

    : : Nikolay,
    : :
    : : Thanks for the info. I thought it might be the NT thing. I will have him try booting from the CD again.
    : :
    : : How can I create a distributable installation CD without using the apparenly evil Package & Deployment wizard?
    : :
    : You can download InnoSetup package from
    : http://www.jrsoftware.org/isinfo.php
    : It's free, easy to use. Just read help.
    :

  • : I'll give it a try.
    :
    : Thanks for your help.
    :
    : Jon
    :
    You can try but I think it's not Installation package problem. Seems to me it's mostly WinXP - Win98 problem. We faced problem like that trying to install app, which was built in Win2000, in WinXP machine.
  • : : I'll give it a try.
    : :
    : : Thanks for your help.
    : :
    : : Jon
    : :
    : You can try but I think it's not Installation package problem. Seems to me it's mostly WinXP - Win98 problem. We faced problem like that trying to install app, which was built in Win2000, in WinXP machine.
    :
    I was wondering about that. Also the programs I reference in my project.

    If I reference Excel 9.0 (which is what I have on my machine) in my project, and the machine that the program gets installed on has an earlier version of Excel, will it work?

    There must be a way to build the program on an XP machine and have it be compatible with other windows platforms. Or do you have to build the program on the platform that you want to run it on? If this is the case, you would have to have multiple machines, or multiple platforms installed on your development machine, ---- or something????

    I can see maybe having to develop an NT version and a 9x version. But I would think you should be able to do both from a single machine using VB 6.0 (or whatever version you have). The VB code should work on any platform, the references however might be a different story. I do not know how that works.

    Jon


  • : If I reference Excel 9.0 (which is what I have on my machine) in my project, and the machine that the program gets installed on has an earlier version of Excel, will it work?

    [blue]I am not sure but I think it may cause out-of-date problem [/blue]
    :
    : There must be a way to build the program on an XP machine and have it be compatible with other windows platforms.
    :
    [blue]According to uncle Bill - Yes but ... It's Microsoft and you never know. I do not know that way[/blue]

    Or do you have to build the program on the platform that you want to run it on? If this is the case, you would have to have multiple machines, or multiple platforms installed on your development machine, ---- or something????
    :
    [blue] In my company we prefer to do everything (developers and users machine) in WinNT/2000 environment. This way is more stable for us. At least we have less head ache.[/blue]
    :
    : I can see maybe having to develop an NT version and a 9x version. But I would think you should be able to do both from a single machine using VB 6.0 (or whatever version you have). The VB code should work on any platform, the references however might be a different story. I do not know how that works.
    :
    : Jon
    :
    :

  • Yea, we use windows 2000 for everyone here too. Works great.

    But I want to be able to distribute this sofware (eventually) to the general public and will have no control over what platform they are using or what version of Excel they have other than to have requirements on the software like "requires Excel 7.0 or above" but the program should be able to work with earlier version of Excel, XML and IE than what I have on my machine.

    And if I have to write seperate versions for NT and windows 9x the NT version should work with NT 4.0/windows 2000/windows XP etc. and the 9x version should work with windows 98/windows ME etc. ---- shouldn't they?

    Obviously, I'm in way over my head and need to do some research.

    Thank you (and everyone) for your responses, they have helped me a lot. The responses I have recieved have answered a lot of my questions and given me some food for thought. Keep em coming if you know or find out anything that might help me resolve these issues.

    Thanks again,
    Jon
    :
    : : If I reference Excel 9.0 (which is what I have on my machine) in my project, and the machine that the program gets installed on has an earlier version of Excel, will it work?
    :
    : [blue]I am not sure but I think it may cause out-of-date problem [/blue]
    : :
    : : There must be a way to build the program on an XP machine and have it be compatible with other windows platforms.
    : :
    : [blue]According to uncle Bill - Yes but ... It's Microsoft and you never know. I do not know that way[/blue]
    :
    : Or do you have to build the program on the platform that you want to run it on? If this is the case, you would have to have multiple machines, or multiple platforms installed on your development machine, ---- or something????
    : :
    : [blue] In my company we prefer to do everything (developers and users machine) in WinNT/2000 environment. This way is more stable for us. At least we have less head ache.[/blue]
    : :
    : : I can see maybe having to develop an NT version and a 9x version. But I would think you should be able to do both from a single machine using VB 6.0 (or whatever version you have). The VB code should work on any platform, the references however might be a different story. I do not know how that works.
    : :
    : : Jon
    : :
    : :
    :
    :

  • I would recommend NSIS (Nullsoft Install System). The only inconvinience is that you have to WRITE your installations. You can always write a simple application to automate this process. If cannot or do not want to, I've written such application. I may send it to you!

    By the way.
    How do you find time to reply several times a day?!!!!
    Oh, and another thing, is "not only ... " always followed by " ... but also", or it can be used without "also"???
  • Yes, please send me your code so I can see how you do it.

    It has been pretty slow here the past couple days, so I have been able to reply often. I also try to respond as soon as possible since you have taken the time to respond to me and I really appreciate it!

    In answer to your question about "not only" and "but also".

    It can be used without the also, depending on the usage.

    Here are some examples:
    ------------------------------------------------------------------------
    "Not only am I from California, but I'm from Los Angeles."

    "Not only am I from California, but from Los Angeles."

    "Not only am I from California, I'm from Los Angeles."

    "Not only am I from California, I'm from Los Angeles California."

    "I'm not only a programmer, I'm a damn good programmer."

    I am not only a programmer, I am also an artist."

    I am not only a programmer, but also an artist."

    I am not only a programmer, but an artist also."

    I am not only a programmer, I am an artist too."

    I am not only a programmer, but an artist also."

    I am not only a programmer, but an artist."


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

    Hope this helps.

    Don't rely on this to be absolutely grammatically correct.
    I'm not a certified English teacher. :) But it passed the grammer check in MS Word.

    Thanks again for your help.

    Jon


    : I would recommend NSIS (Nullsoft Install System). The only inconvinience is that you have to WRITE your installations. You can always write a simple application to automate this process. If cannot or do not want to, I've written such application. I may send it to you!
    :
    : By the way.
    : How do you find time to reply several times a day?!!!!
    : Oh, and another thing, is "not only ... " always followed by " ... but also", or it can be used without "also"???
    :

  • Thanks for the information.
    Tell me you e-mail so I can send you the source code. I will NOT send any executables (virus precautions!). Only a ZIP with the source and some TXT help (or "doc") files.
  • My email is:
    jmartinson@activequest.com

    Thanks,
    Jon

    : Thanks for the information.
    : Tell me you e-mail so I can send you the source code. I will NOT send any executables (virus precautions!). Only a ZIP with the source and some TXT help (or "doc") files.
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories