Solved

Alarm Clock Help!

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
deploy workstation 4 101
problem Installing .net framework 4.5.2 8 107
How to install windows?? 2 59
DCOM errors in Server 2016 2 135
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 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