Results 1 to 5 of 5

Thread: Display or shell second exe from exe running as a service

  1. #1
    Hyperactive Member
    Join Date
    Jun 03
    Posts
    259

    Display or shell second exe from exe running as a service

    i have a exe running fine as a service. its a vb6 app and runs under windows 7. i cant shell out another exe because from the service exe i get this window that says something like a program is trying to display an message. slick here to read. the exe i want to shell is just a regular form window. what is the best way to run another exe? i cant find anything on this forum

  2. #2
    PowerPoster
    Join Date
    Feb 12
    Location
    West Virginia
    Posts
    4,954

    Re: Display or shell second exe from exe running as a service

    Well one major issue is the fact that a service can run even when there is no user logged on but a windows form can not do this. A service also generally runs ina different account than what the user would be logged into and the windows form app would not be able to run because another account is active at the time.

  3. #3
    Hyperactive Member
    Join Date
    Jun 03
    Posts
    259

    Re: Display or shell second exe from exe running as a service

    yes it runs under the system account. windows xp my app can shell out but in windows 7 they made it so you cant with out that weird windows message, so how do other apps do this?

  4. #4
    Frenzied Member
    Join Date
    Jan 09
    Location
    Watch Window(Shift+f9)
    Posts
    1,431

    Re: Display or shell second exe from exe running as a service

    please post what you have written ? .and where did you stuck . so that we will give more suggestion .

  5. #5
    Hyperactive Member
    Join Date
    Jun 03
    Posts
    259

    Re: Display or shell second exe from exe running as a service

    im running the app as a service with the ntsvc.ocx control and im tying to shell out with the standard shell command

    Shell """" & App.Path & "\Splash.exe"" " & strEjectedMessage, vbHide

    and when the splash.exe trys to open in vista and windows 7 i get the message from windows saying that an application is trying to show a message would you like to view? this is my issue. so what is another way a app running as a service under these windows versions can display any kind of message to the user? XP it runs fine. i have tried interactive service mode on and off with the same results

Posting Permissions

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