CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mandruk1331

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    So when I spawn NSIS process, it then spawns another one?
    How I can bypass this?
  2. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    I'm running a NSIS uninstaller over the ShellExecuteEx and the console app does not wait for it to finish. But when I try to run a notepad by specifing the full path the the WaitForSingleObject...
  3. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    well the process creation is like this:
    process A calls a console process the console calls a gui process(needs UAC), when process A calls a console then WaitForSingleObjects waits, but when the...
  4. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    And what to do that the WaitForSingleObject works with console app and not with the GUI ones?
  5. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    I call GetLastError after the WaitForSingleObject. If the mask par. in shellexecuteinfo is MASK_NOCLOSEAPP don't remember the correct name, then the error is 0 but is it's SYNCHRONIZE then the...
  6. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    Ok, I now have an error after the WaitForSingleObject function, the GetLastError function returns 6 (ERROR_INVALID_HANDLE), but the process is creating, what can be the problem? if the handle was...
  7. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    The project type is Win32Console
  8. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    That's really strange, don't really know what to do:confused:
  9. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    I have just tested the code snippet on W7 and it works good, but on Windows 10 the WaitForSingleObject is ignored
  10. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    I have seen the first link, and I just copy pasted the answer code, and it still does not work
  11. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    The problem is still present
    The setup for ShellExecuteEx, and maybe this could be the issue, but from my main program I create an instance of the auto-updater with CreateProcess, and it does wait....
  12. Replies
    24
    Views
    16,506

    Re: Auto updater WinApi

    Yes I have fount this function but the WaitForSingleObject function does not wait for the process to be finished which is not good.


    ShellExecuteEx(&ShellInfo);...
  13. Replies
    24
    Views
    16,506

    Auto updater WinApi

    Hello!
    I'm trying to write an auto updater for my exe file, but I have face a problem when I trigger the auto update I want to remove the old version of my program by running an uninstaller, and...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured