Solved

Alarm Clock Help!

Posted on 2002-07-08
5
206 Views
Last Modified: 2013-11-14
With the help of EE I was able to build a working alarm clock which I was pleased with.  However I would like to build on this now and ask further questions.

The Question

I want to include certain music files (MP3s) in a setup package through the wizard, How can I save these files and automatically install them in a folder on the hard disk (hopefully the same folder as the clock.exe program).

Additionally how can I write the code to go to these files for example - What if when installation of the program if the user does not use the default folder for installation?

Any help greatly appreciated.

Regards

Mark
0
Comment
Question by:m_durnell
5 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 100 total points
ID: 7139187
In most install programs, such as InstallShield, Wise, and the VB setup app, you can specify that the included files should be directed to the installation folder or a folder relative to that.

Which installation app are you using?  For the VB6 Package & Deployment tool, choose [Package], click through until you get to the "Included Files" window and make sure to add the desired images.  Then continue to the "Install Locations" window and if you scroll to the far right, you can select the destination as "$(AppPath)" or can customize it by, for example, appending "\Images" (resulting in "$(AppPath)\Images"
0
 
LVL 3

Expert Comment

by:sanjaykattimani
ID: 7145926
Further in you vb application to access a music file say stored in user selected directory\MP3 you can access the files  with following command

sMusicFile=App.Path & "\Ding.Mp3"

app.path returns the directory where the software is installed [assuming application is not installed in root in which case you need to conditionally add '\'].

Good luck.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7146787
Good point, sanjaykattimani.

However, you forgot the MP3 reference in your assignment:

sMusicFile=App.Path & "\MP3\Ding.Mp3"
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7991253
Hi m_durnell,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rspahitz's comment(s) as an answer.

m_durnell, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8053222
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now