Solved

Alarm Clock Help!

Posted on 2002-07-08
5
207 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 43
Convert MSI to MSM 1 49
Can we place a tooltip on the actual vb6 form 5 35
fso.FolderExists("\\server\HiddenFolder$") 4 52
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you don't know how to downgrade, my instructions below should be helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

867 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

20 Experts available now in Live!

Get 1:1 Help Now