7zip sfx problems running install command

Help
2005-03-03
2012-12-07
  • Nobody/Anonymous

    when creating an sfx by using copy /b config.txt + archive.7z + 7zs.sfx sfx_name.exe I experience that the install info in config.txt doesn't work (yes, it is saved in UTF-8 format).
    ;!@Install@!UTF-8!
    RunProgram="run.cmd"
    ;!@InstallEnd@!
    When I run the sfx it will extract the contents but despite what the run.cmd says, 7zip tries to run setup.exe presenting me with an errer that it can not find setup.exe. My run.cmd executes an msi file using the start /wait command and imports registry entries and this is not where the error is because it works when execuring the .cmd directly in the directory, and it even works in WinRAR. The strange thing is that I have been able to produce some 7zip sfx which work as they should using this method. Is there a bug somewhere or am I doing something wrong?

     
    • Igor Pavlov

      Igor Pavlov - 2005-03-03

      Try to rename run.cmd to run1.exe

       
      • Nobody/Anonymous

        Hi
        Thx, it did help. After extraction 7zip launches the run1.exe but the .cmd is ruined and does not execute the commands. I guess I'll have to use StartX. Why the name run1.exe? Is it a must to rename the executables setup.exe or run1.exe??

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks