Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Posts
    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?

  2. #2
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    Try this
    Code:
    File.Run(_SourceFolder.."\\AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);

  3. #3
    Join Date
    May 2006
    Posts
    9
    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.

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Look into using the Shell.Execute(strFileName, "open", "", "", SW_SHOWNORMAL) Action.
    Intrigued

  5. #5
    Join Date
    May 2006
    Posts
    9
    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?

  6. #6
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    Code:
    File.Run(_SystemFolder.."\\CMD.exe","Command");

  7. #7
    Join Date
    May 2006
    Posts
    9
    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 at 11:59 AM.

  8. #8
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    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.

  9. #9
    Join Date
    May 2006
    Posts
    9
    Ok i will try that

    Thank you

Similar Threads

  1. Please Help.......Reboot Problems
    By critter in forum AutoPlay Media Studio 5.0
    Replies: 20
    Last Post: 12-20-2005, 12:57 PM
  2. Application Losing Focus when TrueUpdate is running
    By Elleah in forum TrueUpdate 2.0
    Replies: 1
    Last Post: 07-06-2005, 07:07 AM
  3. How do we shut down a triggered app when it's already running?
    By Protocol in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 01-29-2005, 10:22 PM
  4. Checking If a Particular Program is Running
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 01:31 PM
  5. Determining if the user is running windows 98SE and NOT windows 98?
    By rise4peace in forum AutoPlay Media Studio 4.0
    Replies: 11
    Last Post: 03-17-2003, 02:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts