Moving VB program to new PC (have ST6UNST)
Hello,
I work for a computer hardware distributor and have hardware tech knowledge, but no programming knowledge... :(
My friend has an optical store, and uses a custom written program.
Her HDD is starting to fail (Win98 PC), so she bought a new PC (Vista but I have downgrade disks to XP). She uses ONE program for her business, and it is a custom written VB program. She asked me to move the program to her new computer, but I know I can't just copy/paste the files over to the new PC.
There is no installer, but there IS an uninstall file. :)
How can I move the program over so it runs? I've ready the FAQs, I've done google searches, I've even found this link on this very forum, but the poster was a programmer and and definitely knows way more than I do.
WILL GREATLY APPRECIATE ANY HELP - MY FRIEND IS DESPERATE!
Re: Moving VB program to new PC (have ST6UNST)
Here is the contents of the ST6UNST file:
%% PLEASE DO NOT MODIFY OR DELETE THIS FILE! %%
%% This file contains information about the installation of an application. %%
%% It will be used to automatically remove all application components from your computer if you choose to do so. %%
NOTE: Beginning of the bootstrapper section
CONFIG: Title: "InfoEye"
ACTION: RegKey: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "SharedDLLs"
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\VB6STKIT.DLL"
(File currently on disk was already up to date)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\COMCAT.DLL"
(File currently on disk was already up to date)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT40.DLL"
(File currently on disk was already up to date)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\STDOLE2.TLB"
(File currently on disk was already up to date)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\ASYCFILT.DLL"
(File currently on disk was already up to date)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\OLEPRO32.DLL"
(File currently on disk was already up to date)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\OLEAUT32.DLL"
(File currently on disk was already up to date)
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\COMCAT.DLL"
ACTION: TLBRegister: "C:\WINDOWS\SYSTEM\STDOLE2.TLB"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\OLEPRO32.DLL"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\OLEAUT32.DLL"
NOTE: End of the bootstrapper section
NOTE: Now spawning the main Setup program 'Setup1.exe'....
ACTION: CreateDir: "C:\WINDOWS\Start Menu\Programs\InfoEye"
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\MSMASK32.OCX"
(File was not found or was an older version -- new file copied)
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\RICHED32.DLL"
(File currently on disk was already up to date)
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\RICHTX32.OCX"
(File was not found or was an older version -- new file copied)
*** ERROR: C:\WINDOWS\SYSTEM\MSVCRT.DLL
*** ERROR: An access violation occurred while copying the file.
*** ERROR: (User Responded with 'Retry')
*** DURING THIS ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT.DLL"
*** ERROR: C:\WINDOWS\SYSTEM\MSVCRT.DLL
*** ERROR: An access violation occurred while copying the file.
*** ERROR: (User Responded with 'Retry')
*** DURING THIS ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT.DLL"
*** ERROR: C:\WINDOWS\SYSTEM\MSVCRT.DLL
*** ERROR: An access violation occurred while copying the file.
*** ERROR: (User Responded with 'Retry')
*** DURING THIS ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT.DLL"
*** ERROR: C:\WINDOWS\SYSTEM\MSVCRT.DLL
*** ERROR: An access violation occurred while copying the file.
*** ERROR: (User Responded with 'Retry')
*** DURING THIS ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT.DLL"
*** ERROR: C:\WINDOWS\SYSTEM\MSVCRT.DLL
*** ERROR: An access violation occurred while copying the file.
*** ERROR: (User Responded with 'Ignore')
*** DURING THIS ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT.DLL"
*** ERROR: C:\WINDOWS\SYSTEM\MSVCRT.DLL
*** ERROR: An access violation occurred while copying the file.
*** ERROR: If you ignore a copy error, the file will not be copied. The application may not function properly as a result. Do you want to ignore the error?
*** ERROR: (User Responded with 'Yes')
*** DURING THIS ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MSVCRT.DLL"
ACTION: SystemFile: "C:\WINDOWS\SYSTEM\MFC42.DLL"
(File was not found or was an older version -- new file copied)
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\fpSpr30.ocx"
(File was not found or was an older version -- new file copied)
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\MSCOMCT2.OCX"
(File was not found or was an older version -- new file copied)
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\TABCTL32.OCX"
(File was not found or was an older version -- new file copied)
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\MSCOMCTL.OCX"
(File was not found or was an older version -- new file copied)
ACTION: SharedFile: "C:\WINDOWS\SYSTEM\COMDLG32.OCX"
(File was not found or was an older version -- new file copied)
ACTION: CreateDir: "C:\Program Files\Common Files\designer"
ACTION: SharedFile: "C:\Program Files\Common Files\designer\MSDERUN.DLL"
(File was not found or was an older version -- new file copied)
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\MSMASK32.OCX"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\RICHTX32.OCX"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\MFC42.DLL"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\fpSpr30.ocx"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\MSCOMCT2.OCX"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\TABCTL32.OCX"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\MSCOMCTL.OCX"
ACTION: DllSelfRegister: "C:\WINDOWS\SYSTEM\COMDLG32.OCX"
ACTION: DllSelfRegister: "C:\Program Files\Common Files\designer\MSDERUN.DLL"
ACTION: ShellLink: "InfoEye", "InfoEye"
ACTION: RegKey: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "App Paths\InfoEye1.1.exe"
ACTION: RegValue: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\InfoEye1.1.exe", ""
Re: Moving VB program to new PC (have ST6UNST)
http://www.vbforums.com/attachment.p...id=47243&stc=1
I moved your thread to here because this is an installation problem. (the thread you referred to should also be here).
Does your friend have the installation disks/CD or code for the program? Can she contact the vendor for the same? If both answers are "no" then I don't hold out much hope of you solving this.
Re: Moving VB program to new PC (have ST6UNST)
Marty's suggestions are definitely the easiest ways to go, but you might be able to get it working if neither of those options are valid.
Note that this is not guaranteed to work (it may even mess up other programs), and will probably take over an hour.
The easy part is install the VB6 runtimes, which you can get here: http://support.microsoft.com/kb/290887
The next step (which will take much longer) is to set up all of the dependencies for the program. To do that, ignore the text up to "NOTE: Now spawning the main Setup program 'Setup1.exe'....", and for each of the files after that (apart from MSVCRT.DLL which you should ignore), do the following:
- Copy the file to a temporary folder on the new computer.
- Check if the file already exists on the new computer - check the path shown in the log first, and if it isn't there do a search.
- If the file does exist already, right-click on it and select Properties. Make a note of the Version number and compare it to the file you copied.
- If the one you have copied has got a lower (or equal) version number, simply delete the copy - and stop here (the file is already fully set up).
- If the one you copied has a higher version number, use RegSvr32 to unregister the existing one, and then delete the existing file
- Move the copy to where the existing one was (or if it didn't exist, to the folder shown in the log).
- Use RegSvr32 to register it.
Note that this was just written into my web browser, and has not been tested - so I may have missed/forgotten something.
Re: Moving VB program to new PC (have ST6UNST)
Quote:
Originally Posted by MartinLiss
I moved your thread to here because this is an installation problem. (the thread you referred to should also be here).
Sorry for posting in the wrong forum. When I saw the other thread posted in that forum, I assumed HE posted in the right forum hence why I posted there. (You know what they say about "never assume"...);)
Quote:
Originally Posted by MartinLiss
Does your friend have the installation disks/CD or code for the program? Can she contact the vendor for the same? If both answers are "no" then I don't hold out much hope of you solving this.
My friend's brother wrote the program when he was in University. Now almost 10 yrs later, he's working in Hong Kong in a different field doesnt remember much about the program he wrote. So no install disks/CD or code except for what is on the machine...
Re: Moving VB program to new PC (have ST6UNST)
Quote:
Originally Posted by si_the_geek
Note that this is not guaranteed to work (it may even mess up other programs), and will probably take over an hour.
*snip*
Note that this was just written into my web browser, and has not been tested - so I may have missed/forgotten something.
Thanks alot for your suggestion, I will try this out tomorrow on a PC that I can reformat if it doesnt work (so if it does mess up some programs then it will be no harm). I wasn't sure how to register the DLL/OCX files so your instructions and mention of RegSvr32 are very helpful.
I'll give this a try out and post back, thank you!!!!