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!
Printable View
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!
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.
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?
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 :( :(
someone?> :(
There is a registry key. I think it is the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key.
what do you mean? just copyFile my program exe to this path?
Moved To Application Deployment
Isn't it possible to add a program with a vb .net code to the Add/Remove Programs option ????
:(:(:(
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.
I tried this code:
I didn't get an error but nothing happand. I didn't see MyProg in the Add/Remove.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")
What does it mean to add a value?
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
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
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
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.