Results 1 to 15 of 15

Thread: Setup Program Finishes

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Setup Program Finishes

    Hi,

    I have simple questions about my own Setup Program.

    How can I make a programtic desktop shortcut for the program .exe file?

    How can I add the program to the Add/Remove Programs option?



    Thanks!

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: Setup Program Finishes

    What are you using for this Setup Program? If you are using a Deployment project, then adding the desktop shortcut is pretty easy, but it rather sounds like that is not what you are doing.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    I just made my own Setup Program (not a wizrad or deployment..) for another program that I made.

    I want to make a shortcut to the .exe file with my Setup Program and to add the .exe file

    to the Add/Remove option.

    Can I do it?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    Ok,

    I solved the shortcut issue by searching for about 3 hours on the web

    But do anyone know how to add the program to the Add/Remove programs option?

    plzzzz

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    someone?>

  6. #6
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Setup Program Finishes

    There is a registry key. I think it is the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    what do you mean? just copyFile my program exe to this path?

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Setup Program Finishes

    Moved To Application Deployment

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    Isn't it possible to add a program with a vb .net code to the Add/Remove Programs option ????



  10. #10
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Setup Program Finishes

    Yes, you need to add a value to that registry key. Look at some of the keys already there for an idea of what yours should look like.

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    I tried this code:

    Code:
    My.Computer.FileSystem.CopyFile(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\Visual Studio 2008\Projects\MyProg\MyProg\bin\Release\MyProg.exe","HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyProg.exe")
    I didn't get an error but nothing happand. I didn't see MyProg in the Add/Remove.

    What does it mean to add a value?

  12. #12
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Setup Program Finishes

    Do you know how the registry works? Based on your code, I am guessing not. Read up on the registry, how to read and write to it. If you are making your own setup package, there are probably a lot of times where you will need to know how to use the registry, so it's best to learn it now.

    http://msdn.microsoft.com/en-us/libr...71(VS.85).aspx

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    Ok thank you very much!

    I'll try to understand that.

    If someone knows a code to add a program to the add/remove option I will be Grateful
    Last edited by assafey; Apr 11th, 2009 at 07:12 PM.

  14. #14
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Setup Program Finishes

    Hey,

    What version of Visual Studio are you using?

    Why are you going to the trouble of creating your own version of a Setup Package when you get all of that functionality within the Setup and Depolyment Projects? I can understand the need for it if you have the Express Editions, but this is where something like InnoSetup
    comes in.

    Gary

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    Re: Setup Program Finishes

    I am using VS2008. I know the Setup tool of this version. I just wanted to make my own Setup tool, and the only thing missing in my program is to add the programs that are installing to the Add/Remove.

    Thank you for the post.

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