CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    70

    Create an Uninstall Shortcut in the StartMenu....

    I met the problem few days ago. i searched the internet and found a very good solution for it.

    i found quiet a number of VB users wonder how to do it also, so i would like to share it here, since i got a lot of help in this forum.


    Add the fowllowing commands in the SETUP.LST
    under [IconGroups] -- [App Name]

    """"""""""""""""""""""""""""""""""""""
    Icon5=$(WinPath)\ST6UNST.EXE -n "$(AppPath)ST6UNST.LOG"
    Title5=Uninstall MyApp
    StartIn5=$(WinPath)
    """""""""""""""""""""""""""""""""""""""
    5 is the sequence number in my IconGroupsĀC you can change it base on the sequence of your project icongroups.
    MyApp is your project name.


    Sami.

  2. #2
    Join Date
    Mar 2004
    Posts
    70
    If you use Visual Studio Installer, you just need to create an
    Uninstall.bat file.

    Add the executed command in the Uninstall.bat file

    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    C:\WINNT\system32\MsiExec.exe /I{E49E6717-428A-42BA-BC76-A7D1622238CA}

    '"''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

    "C:\WINNT\system32\" is system32 file in your local PC. (Depending on which OS used in your PC)

    "E49E6717-428A-42BA-BC76-A7D1622238CA" is the product code of ur application. To get the product code:
    Launch the your application's *.wip file, under Project Menu, view App Properties, click Product Information tab, you can find the Product code.

    Add the Uninstall.bat file in the Application Folder, after that you can create the Uninstall ShortCut under the User's Start Menu Folder.




    Sami

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Smile Thanks for sharing

    Thanks!

    Cesare
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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