Results 1 to 15 of 15

Thread: Inno setup cannot launch exe

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Inno setup cannot launch exe

    hi everybody,

    I have created windows vb application running on 32bit machine and packaged through Inno Setup Compiler 5.4.2. Once i install the application in the machine successfully it doesn't launch the application , the log file shows all dependencies are installed successfully.

    Can anyone help me to sort out this issue?

    regards

    Rozario

  2. #2
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Inno setup cannot launch exe

    Have you got a run section in your inno script, if not add it and see if it works. The help files, even the online help files, are quite good, otherwise look at the example below:

    Code:
    [Run]
    ; Run Post Install, use the no postinstall flag if you always want the application to run as postinstall creates a check box allowing the user to cancel this step.
    Filename: "{app}\YourApplication.exe"; Description: "{cm:LaunchProgram,your application}"; Flags: postinstall
    ; append "; Flags: nowait" to the end if you don't need to wait for this app to execute before continuing the install
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  3. #3
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Rozario View Post
    hi everybody,

    I have created windows vb application running on 32bit machine and packaged through Inno Setup Compiler 5.4.2. Once i install the application in the machine successfully it doesn't launch the application , the log file shows all dependencies are installed successfully.

    Can anyone help me to sort out this issue?

    regards,
    Rozario
    Try the Tarma Installer instead. It works. QuickInstall should do it for you. Very inexpensive. Good Luck.
    Doctor Ed

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Witis View Post
    Have you got a run section in your inno script, if not add it and see if it works. The help files, even the online help files, are quite good, otherwise look at the example below:

    Code:
    [Run]
    ; Run Post Install, use the no postinstall flag if you always want the application to run as postinstall creates a check box allowing the user to cancel this step.
    Filename: "{app}\YourApplication.exe"; Description: "{cm:LaunchProgram,your application}"; Flags: postinstall
    ; append "; Flags: nowait" to the end if you don't need to wait for this app to execute before continuing the install
    i have already included this flag but doesn't seems to be working , infact whenever i replace the build (MyAppp.exe) from the IDE with packaged exe(MyApp.exe from the installed directory) the application run smoothly.This is the thing that i stucked on .. please advice me
    Thanks in advance

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Code Doc View Post
    Try the Tarma Installer instead. It works. QuickInstall should do it for you. Very inexpensive. Good Luck.
    The compiler works fine i tested it, the matter i stucked on is the myApp.exe doesnt run after packaging , but when i replace the exe with build from the IDE the application works fine

    Thanks in advance

  6. #6
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Rozario View Post
    i have already included this flag but doesn't seems to be working , infact whenever i replace the build (MyAppp.exe) from the IDE with packaged exe(MyApp.exe from the installed directory) the application run smoothly.This is the thing that i stucked on .. please advise me
    Thanks in advance
    It might be a corruption of inno (eg due to a virus or malware), so next why not try re downloading the inno setup package from here: http://www.jrsoftware.org/isdl.php and make sure you scan for viruses. This feature is tried and tested and should work.
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Witis View Post
    It might be a corruption of inno (eg due to a virus or malware), so next why not try re downloading the inno setup package from here: http://www.jrsoftware.org/isdl.php and make sure you scan for viruses. This feature is tried and tested and should work.
    I downloaded the same ,but getting the same issue.


    Thanks
    Last edited by Rozario; Mar 30th, 2012 at 04:02 AM.

  8. #8
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Rozario View Post
    I downloaded the same ,but getting the same issue.


    Thanks
    Can you post the run section of your inno setup script here?
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  9. #9

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Witis View Post
    Can you post the run section of your inno setup script here?
    Please go through the run section

    [Run]
    Filename: "{app}\MyApp.0.exe"; Description: "{cm:LaunchProgram,My Application}"; Flags: nowait postinstall skipifsilent

    Correct me if i am wrong
    Thanks

  10. #10
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Rozario View Post
    Please go through the run section

    [Run]
    Filename: "{app}\MyApp.0.exe"; Description: "{cm:LaunchProgram,My Application}"; Flags: nowait postinstall skipifsilent

    Correct me if i am wrong
    Thanks
    That looks non standard to me, try and rename your application .exe instead of .0.exe.
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  11. #11

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Witis View Post
    That looks non standard to me, try and rename your application .exe instead of .0.exe.

    sorry it was mistake
    the run portion of the code is below please go through it

    [Run]
    Filename: "{app}\MyApp.exe"; Description: "{cm:LaunchProgram,My Application}"; Flags: nowait postinstall skipifsilent


    thanks in advance

  12. #12
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Rozario View Post
    sorry it was mistake
    the run portion of the code is below please go through it

    [Run]
    Filename: "{app}\MyApp.exe"; Description: "{cm:LaunchProgram,My Application}"; Flags: nowait postinstall skipifsilent


    thanks in advance
    It might be due to the skipifsilent flag:
    skipifsilent
    Valid only in a [Run] section. Instructs Setup to skip this entry if Setup is running (very) silent.

    You can also try this alternative to see if it works:
    Code:
    [Run]
    Filename: "{app}\MYPROG.EXE"; Description: "Launch application"; Flags: postinstall
    Also here is the online help regarding the run section:
    http://www.jrsoftware.org/ishelp/ind...pic=runsection
    Last edited by Witis; Mar 30th, 2012 at 07:01 AM.
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  13. #13

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    10

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Witis View Post
    It might be due to the skipifsilent flag:
    skipifsilent
    Valid only in a [Run] section. Instructs Setup to skip this entry if Setup is running (very) silent.

    You can also try this alternative to see if it works:
    Code:
    [Run]
    Filename: "{app}\MYPROG.EXE"; Description: "Launch application"; Flags: postinstall
    Also here is the online help regarding the run section:
    http://www.jrsoftware.org/ishelp/ind...pic=runsection
    i just edited the [Run] code as you mentioned , but it persist the same issue
    im so confused , stucked please advice me

    thanks
    Last edited by Rozario; Mar 30th, 2012 at 08:11 AM.

  14. #14
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    Re: Inno setup cannot launch exe

    Quote Originally Posted by Rozario View Post
    i just edited the [Run] code as you mentioned , but it persist the same issue
    im so confused , stucked please advise me

    thanks
    Seems like a weird problem to me, that example is directly from the inno help file so it should work. Perhaps there is something wrong with your pc. Can you try building it on another pc? Or it might even be an internationalization issue.

    If you try building on another pc and it still fails, then I suggest you post in the inno setup newsgroup: http://www.jrsoftware.org/newsgroups.php
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

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

    Re: Inno setup cannot launch exe

    Moved To Application Deployment

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