Announcement

Collapse
No announcement yet.

run.file and driver

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • run.file and driver

    Hello, I need help and hope someone can help me with my problem!

    I would like to create a setup by several applications which are to be installed after the run, which unfortunately does not happen!

    Test = File.Run (SessionVar.Expand ( "%AppFolder%\\system32\\my-program.exe"), "", "", SW_SHOWNORMAL, true);
    If I execute the my.programm.exe manually as an Administartor then the application is installed!

    Oh, there is possibly a possibility a driver with a command to start and if so with which? I have the following files in the driver folder to install this which works manually synonymous!

    Driver name: inf, sys and cat
    Application: devcon.exe, install.cmd, remote.cmd, and restart.cmd

    I would be glad about a reply

  • #2
    Code:
    Test = File.Run (SessionVar.Expand ( "%AppFolder%\\system32\\my-program.exe"), "", "", SW_SHOWNORMAL, true);
    Are you sure that your application can be found in a subfolder named "system32" inside your application folder? This certainly looks weird. You may want to inspect the installation log file, and see the error code returned by File.Run(), as it will explain the reason while the program could not be started.

    As for the driver installation, you can find this matter discussed in multiple posts in this forum. On the Microsoft Developer web site, you can find this page and this page with all the explanation you need. Additionally, you could check any of the existing posts in this forum, for example this one...

    Ulrich

    Comment


    • #3
      Originally posted by Ulrich View Post
      Are you sure that your application can be found in a subfolder named "system32" inside your application folder? This certainly looks weird. You may want to inspect the installation log file, and see the error code returned by File.Run(), as it will explain the reason while the program could not be started.
      No, the program is in the folder windows \ system32 and can not be executed with file.run! Even if the program is elsewhere, it is not executed with the command file.run! Comic is when I the exe manually (double-click) execution is installed?






      Comment


      • #4
        Problem file run and driver solved!
        Driver with devcon and file run is executed the corresponding file is executed in the corresponding folder! Many thanks for your help

        Comment

        Working...
        X