Results 1 to 17 of 17

Thread: [RESOLVED] Inno Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    Resolved [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

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    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

  4. #4
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    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.

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Inno Question

    Quote 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?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    Re: Inno Question

    Example;
    In Form_Load
    vb Code:
    1. 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

  7. #7
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    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
    Rob C

  8. #8

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    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:
    1. 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

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    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

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inno Question

    I haven't seen randem pop in on this question so I'm moving it to his bailwick.

  12. #12
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    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

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    Re: Inno Question

    haloo ... anybody there?
    Sometimes you feel that you can not live without people

  16. #16
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Question

    I already gave you the answer in post #13

  17. #17

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    118

    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
  •  



Click Here to Expand Forum to Full Width