|
-
May 13th, 2007, 05:28 PM
#1
Thread Starter
Lively Member
[RESOLVED] Inno Question
Hi People;
I am using VB6... And have tried Inno Setup 5 for customizing my setup form.
my project contains some *.Wav files.
The Problem is:-
After i finish setup my program... and run for first time, the program and its wav files work very fine.
But; after closing it, and open it again... only its wav files do not work properly. No sound.
Any Help Please;
Marina
Kisses: rolleyes:
Sometimes you feel that you can not live without people
-
May 13th, 2007, 06:16 PM
#2
Re: Inno Question
 Originally Posted by Marina-Jo
...After i finish setup my program... and run for first time, the program and its wav files work very fine...
So, it's not the INNO - you must be doing something in your own program then...
-
May 14th, 2007, 06:03 AM
#3
Thread Starter
Lively Member
Re: Inno Question
Noooo
the program is working very well ....
but to play the sound file, i have to open Folder of the program in the Program files .... then open the exe file from there.
i think there is something error in the Path of the wav files.
Got Me?
Sometimes you feel that you can not live without people
-
May 14th, 2007, 07:17 AM
#4
Fanatic Member
Re: Inno Question
let me summarize your problem:
- If your exe is run from program files, music is played.
- If exe is run from desktop/program-menu, music is not played.
Some questions:
- Are the wave-files in the same directory (or subdirectory) as your exe?
- Are you using app.path & "\wavfile1.wav" (or something like it) when you play your wave files?
- is it possible you are running a copy of your exe from desktop/program menu, instead of a link to the exe?
If the answer to my three questions = Yes, then add a link to your exe in stead of copying the file to the desktop.
If not, please post your code.
It doesn't seem to be an Inno problem.
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
-
May 14th, 2007, 07:33 AM
#5
Re: Inno Question
 Originally Posted by Marina-Jo
Noooo
the program is working very well ....
but to play the sound file, i have to open Folder of the program in the Program files .... then open the exe file from there.
i think there is something error in the Path of the wav files.
Got Me?
I don't think so... But I'll say it again: it's not the INNO - it's your program.
Care to show us some code?
-
May 14th, 2007, 07:57 PM
#6
Thread Starter
Lively Member
Re: Inno Question
Example;
In Form_Load
vb Code:
mciSendStringA "play " & "cellular.wav", 0, 0, 0
and of course the Cellular.wav exists in the same directory of the main project and the compiled exe as well.
After finish installing with Inno, and choose "Launch My Program" the Wav file works in the Form_Load even.
But after closing the program, and re-open again, the wav files no longer work properly, i dont know why...
also, if i did not choose "Lauch my program" and played the program from Start-Menu, the program does not work as well.
I really need some help.
Marina
Sometimes you feel that you can not live without people
-
May 14th, 2007, 08:11 PM
#7
Fanatic Member
Re: Inno Question
When you run the exe on your own pc, does it have the same problem ?
Also have you tried using a simpler method of playing wav file -
http://www.vbforums.com/showthread.p...96#post2879196
-
May 14th, 2007, 08:23 PM
#8
Re: Inno Question
"cellular.wav" is not a valid file path - you need to provide full path+file name.
So, that is your actual problem.
-
May 15th, 2007, 08:32 AM
#9
Thread Starter
Lively Member
Re: Inno Question
Why is it not a valid path?
When i run the project normally everything work properly... As well as if i install the program using VB Package Wizard, every thing pass very well.
Whatever!! i tried to put the full path of the wav files..But no sound remaining also in the project itself as well.
I am using this API to play my sounds;
vb Code:
Private Declare Function mciSendStringA Lib "winmm" (ByVal Command As String, ByVal RString As String, ByVal RLength As Long, ByVal hwndCallback As Long) As Long
Sometimes you feel that you can not live without people
-
May 15th, 2007, 04:41 PM
#10
Thread Starter
Lively Member
Re: Inno Question
I could figure out where the problem locate !But could not solve it.
After Finish Installing the program and create Desktop icon.. I found in the properties of the Icon (Start In is empty.
But when i add this line to it (Start In: "C:\Program Files\My Program") the program works very well and all its wav files wherever it was.
But of course, after reinstalling again, the Start In return empty again.
How can i solve this problem?
Sometimes you feel that you can not live without people
-
May 15th, 2007, 06:16 PM
#11
Re: Inno Question
I haven't seen randem pop in on this question so I'm moving it to his bailwick.
-
May 15th, 2007, 11:41 PM
#12
Re: Inno Question
Programs sometimes are not always run in their application folder. It depends on where the shortcut parameter "Start in" is pointing to. If that is the case you did not fully qualify this parameter in the creation of your shortcut and that is where the problem lies.
What did you use to create your Inno Setup Script with?
I know it wasn't **********...
Last edited by randem; May 15th, 2007 at 11:54 PM.
-
May 15th, 2007, 11:45 PM
#13
Re: Inno Question
Since you provided no script code I would imagine that you are missing the parameter WorkingDir: {app} in your Icon creation lines.
Show what you have in the [Icons] section
Last edited by randem; May 15th, 2007 at 11:53 PM.
-
May 16th, 2007, 05:50 AM
#14
Thread Starter
Lively Member
Re: Inno Question
[Icons]
Name: "{group}\Manssour Agenda"; Filename: "{app}\ManssourAgenda.exe"
Name: "{group}\{cm:UninstallProgram,Manssour Agenda}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\Manssour Agenda"; Filename: "{app}\ManssourAgenda.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Manssour Agenda"; Filename: "{app}\ManssourAgenda.exe"; Tasks: quicklaunchicon
Sometimes you feel that you can not live without people
-
May 16th, 2007, 06:35 PM
#15
Thread Starter
Lively Member
Sometimes you feel that you can not live without people
-
May 16th, 2007, 06:49 PM
#16
Re: Inno Question
I already gave you the answer in post #13
-
May 17th, 2007, 05:01 AM
#17
Thread Starter
Lively Member
Re: Inno Question
hmmmmmmmmmm
ok got it. Resolved.
Thanks
Sometimes you feel that you can not live without people
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|