|
-
Jul 12th, 2006, 09:13 PM
#1
Thread Starter
Fanatic Member
Creating an .exe for Windows 98
I have made an application and I have made a dependency file that looks like this:
Uses1=MSVBVM60.DLL
Uses2=oleaut32.dll
Uses3=olepro32.dll
Uses4=asycfilt.dll
Uses5=stdole2.tlb
Uses6=COMCAT.DLL
Uses7=EventVB_H.dll
(For the .dll part)
I have been able to make my app work for XP easily, but what .dll's do I need to include other than EventVB_H.dll to make it work properly for windows 98? Thanks.
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 12th, 2006, 09:24 PM
#2
Re: Creating an .exe for Windows 98
-
Jul 12th, 2006, 10:09 PM
#3
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
I'm a little confused what do I do?
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 12th, 2006, 10:13 PM
#4
Re: Creating an .exe for Windows 98
In any case be sure to know that you can not simply include the files from your own system and copy them to another. You need to obtain redistributable versions of the components. Otherwise you most likely WILL permanently damage the system you copy the files to and will probably need to reinstall Windows.
-
Jul 12th, 2006, 10:15 PM
#5
Re: Creating an .exe for Windows 98
Other than the standard VB runtime files, you need to distribute any extra component that you might have used (Windows Common Controls, Inet etc.)
-
Jul 12th, 2006, 11:05 PM
#6
Re: Creating an .exe for Windows 98
-
Jul 12th, 2006, 11:13 PM
#7
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 12th, 2006, 11:20 PM
#8
Re: Creating an .exe for Windows 98
Find out what extra components you used and download redistributable versions and use them in your installer.
-
Jul 13th, 2006, 02:36 AM
#9
Re: Creating an .exe for Windows 98
JBD2,
Read Installation Problems in my signature for a quick start. It should help you sort out a few things.
-
Jul 13th, 2006, 10:14 AM
#10
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Thanks for the info, my other question (hopefully my last) is with Inno Setup when I add a .dll that registers itself to {sys} (system dll folder) will it automatically detect whether its putting it in xp's: drive:\windows\system32 or 98's: drive:\windows\system ? Thanks.
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 13th, 2006, 10:23 AM
#11
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Which one(s) of the .dll's isn't a VB runtime file? Is it only Event_VB_H.dll? The rest are all included in the "Winodows 9x (23 mb) - Last Updated 5/27/05" Automatic OS Updater here: http://www.***********/support.html ? How do I use the os updater? (I'm using Inno Setup, is there a script I type in)
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 13th, 2006, 11:37 AM
#12
Re: Creating an .exe for Windows 98
 Originally Posted by JBD2
Thanks for the info, my other question (hopefully my last) is with Inno Setup when I add a .dll that registers itself to {sys} (system dll folder) will it automatically detect whether its putting it in xp's: drive:\windows\system32 or 98's: drive:\windows\system ?
"Register" means "add the dll file name and its location to the registry", so it doesn't matter where it is when it registers - it registers as being at that location.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jul 13th, 2006, 11:43 AM
#13
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Yeah but I want it to register itself to the windows system folder where windows .dll's are stored, and Inno Setup has a command where you can register it to {sys} which is the sytem folder but Windows 98 and Windows XP have differen't system folders (where the .dll's are stored).
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 13th, 2006, 01:53 PM
#14
Re: Creating an .exe for Windows 98
JBD2,
All the information on how to use the updater in Inno Setup is on the web page you mentioned. There is a app that can put it in your script automatically but I don't know the names of it
Last edited by randem; Jul 13th, 2006 at 02:20 PM.
-
Jul 13th, 2006, 03:04 PM
#15
Re: Creating an .exe for Windows 98
 Originally Posted by JBD2
Yeah but I want it to register itself to the windows system folder where windows .dll's are stored, and Inno Setup has a command where you can register it to {sys} which is the sytem folder but Windows 98 and Windows XP have differen't system folders (where the .dll's are stored).
The point is that, to Windows, it doesn't matter where the file ends up - it gets listed in the registry as being in that directory. {sys} is whatever Windows says is the system directory - in Win98, in Win XP and in whatever future version of Windows MS creates - as long as they don't break that. The installer asks Windows for the system directory and copies files for {sys} to that directory, whatever its name is. (You can install Windows to C:\Foo, so the system directory in Win XP would be C:\Foo\System32.)
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jul 13th, 2006, 04:18 PM
#16
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Ok randem, hopefully that means this right:
[Files]
Source: "..\Support\MDAC\Scripts\Output\VB_DCOM_MDAC_JET_AutoSetup.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
[Run]
Filename: "{tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe"; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; Flags: skipifdoesntexist
Do those things go first before anything else?
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 13th, 2006, 04:27 PM
#17
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
I mean the "Run" part, does it go before the running of the main executable file?
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 13th, 2006, 10:33 PM
#18
Re: Creating an .exe for Windows 98
Yes, it would have to because if you do not have the proper MDAC's etc install your main app probably won't run. So you would want to install the MDAC's first.
-
Jul 13th, 2006, 10:36 PM
#19
Re: Creating an .exe for Windows 98
BTW the Source location of "..\Support\MDAC\Scripts\Output\" would be whereever you place the VB_DCOM_MDAC_JET_AutoSetup.exe file.
-
Jul 13th, 2006, 10:47 PM
#20
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 14th, 2006, 10:05 AM
#21
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
I tried it but when my application went to run it said the .dll:
MSVBVM60.DLL
Was missing. Isn't this a VB runtime? Shouldn't it have worked? My code also is using windows API's, so maybe they won't work with 98?
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 14th, 2006, 01:51 PM
#22
Re: Creating an .exe for Windows 98
You tried what???? be specific... can't read minds yet.
yes, it is a vb runtime file. post script. give some background info.
-
Jul 14th, 2006, 01:57 PM
#23
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
The script looks like this: (of course it has other stuff too, I just edited out the unimportant text)
[Files]
Source: "C:\Documents and Settings\JBD2\Desktop\MyApp.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\JBD2\Desktop\EventVB_H.dll"; DestDir: "{sys}"; Flags: regserver
Source: "C:\Documents and Settings\JBD2\Desktop\VB_DCOM_MDAC_JET_AutoSetup_9x.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Run]
Filename: "{tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe"; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: "{app}\MyApp.exe"; Description: "{cm:LaunchProgram,My Security App}"; Flags: nowait postinstall skipifsilent
My program hides the start bar, desktop icons etc... so nothing is visible but my app, which is a security app which "locks your computer" or keeps it secure while you're gone until you type your password etc...I'm using API's to hide the start bar and desktop icons etc...which I don't know if it works with Windows 98. Tell me if you need more information.
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 14th, 2006, 02:04 PM
#24
Re: Creating an .exe for Windows 98
yes, the complete script would help. if you are doing something else like deleting or overwriting files can't be seen here... is your app only for 98? did you check your system to see if the file was actually missing?
-
Jul 14th, 2006, 04:27 PM
#25
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
Well I use the app on xp only, but I want to try it on a 98 computer. The system (98) doesn't have VB so I don't think it has any of the VB Runtime Files, how do I get them? Does that program add the runtimes or only update them to their proper version? And I used the script wizard then modified it, so I don't think I need to post all of it.
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 15th, 2006, 03:26 AM
#26
Re: Creating an .exe for Windows 98
JBD2,
You are the one that has the problem so if YOU decide what's not important we have another problem. Don't inhibit help, lend to it. Post the whole script. The automatic updater does put the universal vb runtime files on the system.
The Inno Setup Wizard is not good for completing a script just for starting one. It also does not find any dependencies for your project so your script must be incomplete.
-
Jul 15th, 2006, 10:33 AM
#27
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=My Security App
AppVerName=My Security App 1.0
AppPublisher=JBD2
DefaultDirName={pf}\My Security App
DefaultGroupName=My Security App
AllowNoIcons=yes
OutputDir=C:\Documents and Settings\JBD2\Desktop
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "eng"; MessagesFile: "compiler efault.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Documents and Settings\JBD2\Desktop\MySecurityApp.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\JBD2\Desktop\EventVB_H.dll"; DestDir: "{sys}"; Flags: regserver
Source: "C:\Documents and Settings\JBD2\Desktop\VB_DCOM_MDAC_JET_AutoSetup_9x.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\My Security App"; Filename: "{app}\MySecurityApp.exe"
Name: "{group}\{cm:UninstallProgram,My Security App}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\My Security App"; Filename: "{app}\MySecurityApp.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\My Security App"; Filename: "{app}\MySecurityApp.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe"; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: "{app}\MySecurityApp.exe"; Description: "{cm:LaunchProgram,My Security App}"; Flags: nowait postinstall skipifsilent
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 15th, 2006, 06:04 PM
#28
Re: Creating an .exe for Windows 98
Things seem to be missing from that script. You do not have any dependencies as VB must have amongst other things.
-
Jul 15th, 2006, 09:23 PM
#29
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
So I have to add the VB .dll's then run the .exe?
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 16th, 2006, 02:31 AM
#30
Re: Creating an .exe for Windows 98
VB dll's???? If you mean dependencies then yes, If you mean the VB runtime files then No.
-
Jul 16th, 2006, 06:15 PM
#31
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
So what .dll's do I add from my first post? I don't know the difference.
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 16th, 2006, 09:46 PM
#32
Re: Creating an .exe for Windows 98
All of them except MSVBVM60.DLL and there maybe more... You have to do the research to find out.
-
Jul 17th, 2006, 09:57 AM
#33
Thread Starter
Fanatic Member
Re: Creating an .exe for Windows 98
If it's almost all of them except MSVBVM60.DLL, then how would I fix the error message I had earlier?
Did you find a post in this thread useful? Please click Rate This Post.
-
Jul 17th, 2006, 01:20 PM
#34
Re: Creating an .exe for Windows 98
 Originally Posted by JBD2
Does that program add the runtimes or only update them to their proper version?
The way installation programs usually update files is to add them. If the same file, with an earlier date, exists, it's overwritten. If it doesn't exist there's nothing to overwrite. It's only if a file of the same name, but with a later date, exists that a good installation program notices.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jul 17th, 2006, 09:50 PM
#35
Re: Creating an .exe for Windows 98
JBD2,
You need all the other components and referenced dll's that are required for your app to work in 98.
If you want to do it the hard way use Depends.exe to find the dependencies.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|