|
-
Apr 9th, 2009, 02:24 PM
#1
Thread Starter
Addicted Member
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!
-
Apr 9th, 2009, 02:33 PM
#2
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
 
-
Apr 9th, 2009, 03:05 PM
#3
Thread Starter
Addicted Member
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?
-
Apr 9th, 2009, 07:51 PM
#4
Thread Starter
Addicted Member
-
Apr 10th, 2009, 03:41 PM
#5
Thread Starter
Addicted Member
Re: Setup Program Finishes
someone?>
-
Apr 10th, 2009, 04:15 PM
#6
Re: Setup Program Finishes
There is a registry key. I think it is the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key.
-
Apr 10th, 2009, 09:06 PM
#7
Thread Starter
Addicted Member
Re: Setup Program Finishes
what do you mean? just copyFile my program exe to this path?
-
Apr 11th, 2009, 07:24 AM
#8
Re: Setup Program Finishes
Moved To Application Deployment
-
Apr 11th, 2009, 10:50 AM
#9
Thread Starter
Addicted Member
-
Apr 11th, 2009, 06:27 PM
#10
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.
-
Apr 11th, 2009, 06:42 PM
#11
Thread Starter
Addicted Member
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?
-
Apr 11th, 2009, 06:49 PM
#12
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
-
Apr 11th, 2009, 06:58 PM
#13
Thread Starter
Addicted Member
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.
-
Apr 16th, 2009, 02:50 AM
#14
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
-
Apr 16th, 2009, 05:01 AM
#15
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|