CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2009
    Location
    Kuwait
    Posts
    170

    Command window prompt in uninstallable batch file for c# application

    Hi,
    i have created a batch file for uninstall a c# application.
    Code:
    @echo off
    
    @msiexec  /qr /x  {********}
    But when the user click the uninstall option, a command window is poping up.
    I searched in net for a solution, but didnt get any solution.

    Please help
    If i helped you, Please rate me

    Visit http://www.octopusplus.com

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: Command window prompt in uninstallable batch file for c# application

    Interesting question. I confess I dont' have the answer right now. I'm a curious as to why you need to do it this way...

  3. #3
    Join Date
    Jul 2009
    Location
    Kuwait
    Posts
    170

    Re: Command window prompt in uninstallable batch file for c# application

    I am creating the install shield for the application. This batch file will be added to the user program list, so that he can uninstall the application with out going to the addd/Remove option.
    If i helped you, Please rate me

    Visit http://www.octopusplus.com

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Command window prompt in uninstallable batch file for c# application

    Putting an uninstall icon in the start menu seems to be the 'old' way of doing things. Modern apps don't seem to do this any longer.

    At any rate, you don't need to create a batch file, just put the msiexec command line directly in the shortcut (and point it to the appropriate app install guid).

    For example...

    Code:
    C:\WINDOWS\system32\msiexec.exe /i {216AB108-2AE1-4130-B3D5-20B2C4C80F8F} /qf

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured