Problems running .msi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • simdave
    Forum Member
    • May 2006
    • 9

    Problems running .msi

    Hi im still pretty new to APMS, but ive managed to put together a AIO application suite for work. Im having a problem running a msi file..ive used the following cmd..

    File.Run("G:\\Auto Play Media Studio\\Tool Kit 1.0\\CD_Root\\AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);

    And it wont run, this is the only msi file on the disk that im making but i need it to work as this is one of the main applications we install at work.

    Anyone know if im doing anything wrong?
  • Wonderboy
    Forum Member
    • Apr 2005
    • 246

    #2
    Try this:yes
    Code:
    File.Run(_SourceFolder.."\\AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);

    Comment

    • simdave
      Forum Member
      • May 2006
      • 9

      #3
      Sorry the actual code i used is this:


      File.Run("AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);

      Which is exacly the same code as ive been using to run other application exe's with no problems. the only problem im having is not being able to run this msi file

      The msi does work because ive maualy ran it.

      Comment

      • Intrigued
        Indigo Rose Customer
        • Dec 2003
        • 6138

        #4
        Look into using the Shell.Execute(strFileName, "open", "", "", SW_SHOWNORMAL) Action.
        Intrigued

        Comment

        • simdave
          Forum Member
          • May 2006
          • 9

          #5
          Thank you, that command worked

          The only other problem im having is running a .bat file from a certain directory. 1 of the batch files has been wrote to import certain registry entries for the configuration of the Novell client, it basically points the Novell client to right context within the Netware servers.

          The other one is for the installation of Swift.

          ive tried to run the batch files with the File.Run command, but it doesn’t appear to be working, the cmd box does come up but as far as it importing the registry files it doest work. ive looked through the cmds and all seems to be ok.

          Is the File.Run command the correct line for running batch files?

          Comment

          • Wonderboy
            Forum Member
            • Apr 2005
            • 246

            #6
            Code:
            File.Run(_SystemFolder.."\\CMD.exe","Command");

            Comment

            • simdave
              Forum Member
              • May 2006
              • 9

              #7
              File.Run("AutoPlay\\Software\\Novell clients\\CXLogin\\winnt.bat", "", "", SW_SHOWNORMAL, false);

              Thats the code i used above

              So wait, ive got to use that code to run the cmd prompt and then run the batch file? hmm im lost
              Last edited by simdave; 05-22-2006, 11:59 AM.

              Comment

              • Wonderboy
                Forum Member
                • Apr 2005
                • 246

                #8
                not if you use a batchfile, but please post the command you are trying to execute in your bat, and it will be much easier for use to help you,
                or try renaming you bat file that you are trying to run to winnt.cmd insted of
                winnt.bat. try that out, and if it dont work, please post the batfile, and we may be able to help you allot better.:yes

                Comment

                • simdave
                  Forum Member
                  • May 2006
                  • 9

                  #9
                  Ok i will try that

                  Thank you

                  Comment

                  Working...
                  X