Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Intranet Applications & Ini Files

Posted on 1998-07-06
6
Medium Priority
?
183 Views
Last Modified: 2010-05-03
I am trying to create an active document application that can be downloaded from an intranet server and run in a browser. I have created a CAB file and placed it on the server and everything seems to be OK.......However, the application requires an ini file and I can't seem to be able to get the ini file to be downloaded from the CAB into a specified directory. (i.e. I need a file e.g 'app.ini' to be downloaded fom the CAB file and stored in e.g 'C:\Apps\MyApp', whilst being upgraded when necessary.)

(I'm using Visual Basic 5.0 and I'm creating the CAB file using the Application Setup Wizard having selected internet setup.)

Any ideas? (I've tried amending the .INF file and rebuilding the CAB but it doesn't seem to do any good.)
0
Comment
Question by:martin_ford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:peterwest
ID: 1465020
Hmmm,

Rather than using an INI file why don't you modify the app so that it write's it's keys to the registry the first time it is run.

Pete

P.S. When you created the setup did you specify the .INI file as an additional component; if not, try recreating the CAB file using the Setup Wizard and specify the .INI as an extra component.
0
 
LVL 2

Expert Comment

by:peterwest
ID: 1465021
Hi again,

You can actually force the setup wizard to detect your ini file as a component by creation a dummy API declaration; simply put the following in your programme (in general declarations in a module):

Declare Function DummyFunc() Lib "[Location & Filename of INI File]"

This function won't be used but the setup wizard will look at the library specified and include it anyway!!!

Pete

0
 

Author Comment

by:martin_ford
ID: 1465022
Hi Pete,

I added the INI file as an extra component and (according to the INF file) it was added to the CAB but for some reason it doesn't get downloaded? I have also tried saving the properties to the documents property bag but this requires you to save a copy of the user document locally. Since I need an app that users can run straight from the server rather than  pointing them to a local instance I gave up with it. I'm not sure how to read and write from the registry so I haven't tried it.

Martin
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 6

Accepted Solution

by:
anthonyc earned 300 total points
ID: 1465023
Reading and writing from the registry is easy.  Well, reading/writing to where VB wants to let you is easy.  Writing to where you want is a little more difficult, but for what you want, the VB method will be sufficient.  

Take a look at GetSetting, SaveSetting, and DeleteSetting in help.  They are JUST like INI file operations.
0
 
LVL 2

Expert Comment

by:peterwest
ID: 1465024
Hi,

I was gonna post details on using the registry but it looks like someone beat me to it!!!

Pete
0
 

Author Comment

by:martin_ford
ID: 1465025
Thanks guys! You're right, it is just as easy as using an INI file.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

610 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