Solved

VB3 - App Setup Wizard and ini files

Posted on 1998-09-16
2
230 Views
Last Modified: 2010-04-30
When using the VB3 app setup wizard I cannot seem to get it to install my app.ini file in the \windows directory.
It either goes in the \app directory - or if I include the
":1" switch then it goes in the \windows\system directory.
Neither of which is found when the program runs - obviously.
All this contains is the installable isam stuff for dbase.
0
Comment
Question by:Upland
2 Comments
 

Accepted Solution

by:
creisinger earned 100 total points
ID: 1435196
Hello Upland,

try this. It's not great but it will work.

After you have completed your installation disk(s) using the setup wizard go to subdirectory \SETUPKIT\SETUP1 from your vb 3.0 installation and open the SETUP1A.MAK. This project was created by setup wizard according to your project you want to distribute.

Make a backup of the fiel setup1a.frm

Then open the setup1a.frm, goto the form_load event and search for:
    '--------------------------------------------------
    ' File Copying is over, so unload the status dialog
    '--------------------------------------------------
    Unload StatusDlg

Before this code are the statements for copying the files to be distributed. According to this statements you can add something like the following code
If Not CopyFile(SourcePath$, windir$, "APP.IN_", "APP.INI") Then GoTo ErrorSetup

Now create a new setup1.exe.
Goto to the directory  \setupkit\kitfiles in your vb 3.0 directory) and compress your modified setup1.exe with the following dos-command
compress -r ..\setup1\setup1.exe
Use the previous command to compress also your app.ini file

Then replace the file setup1.ex_ on your distribution disk.
Next copy the app.in_ file on your last distribution disk.

Finally restore the setup1a.frm with your backup.

Hope that will help you

Greetings
0
 

Author Comment

by:Upland
ID: 1435197
Creisinger,
Thanks a lot... I have actually discovered another solution - in a roundabout way. I wrote a very short loader programme in vb which basically checks the windir$ for app.ini and if it doesn't exist then I create it (it's only a print# of 3 lines) and then call my original app (in the same directory) with a shell command. The loader app of course doesn't need an ini of its own.

The only thing to be careful of is that when you build the loader app with setup wizard that you include all the files required by the main app (vbx, dll, exe, dbf etc). The way to do this is to start by using setup wizard for your own app and then making a note of all the files it lists as required... then abort. Start new build for the loader app and then manually add all the other files.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now