Post by altair on Dec 11, 2014 6:14:57 GMT 10
Hi guys,
I am creating an installer for my app in VB, so how do add my installed app in the programs and features list.
Altair - The flying one
|
|
Post by Prezence on Dec 11, 2014 7:21:10 GMT 10
|
|
Post by altair on Dec 11, 2014 23:26:07 GMT 10
Well, I am ready to take the hard way, The reason is my app needs to get some install time data. Even TWBP uses its own installer.
Hope you understand, Altair - The flying one
Last Edit: Dec 12, 2014 0:24:03 GMT 10 by altair
|
|
Post by Prezence on Dec 12, 2014 7:01:17 GMT 10
Maybe look into TWBP's installer source code. It is somewhere on their website.
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by altair on Dec 12, 2014 8:29:08 GMT 10
Hi Chris, Thanks for your interest. I had scoured through the TWBP code and got really suspicious about some lines.
Sorry, since I am browsing on the phone. I cannot post the code or a photo but Chris if you can enter the code what I need will be at Main.vb's Private Sub InstallFiles() Sorry about that.....
Altair - The flying one
|
|
Post by Prezence on Dec 12, 2014 10:06:45 GMT 10
Actually in the Installer code, the app is not registered in the apps/programs list. It does create a Uninstall registry key though so that you can hit Uninstall from the uninstall programs list . This is the registry code. My.Computer.Registry.LocalMachine.CreateSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "DisplayName", "The Web Browser Project") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "DisplayIcon", instdir + "\twbp.exe,0") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "DisplayVersion", "") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "HelpLink", "mailto:WebMaster.Simek@hotmail.com") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "Publisher", "Colin Verhey") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "UninstallString", instdir + "\uninstall.exe") My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\The Web Browser Project", "URLInfoAbout", "http://twbp.x10host.com")
By the way, this code is not suspicious. This registry key is very common as almost every big app uses it. But BEWARE that messing with the wrong parts of the registry can jack up your computer.
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
Last Edit: Dec 12, 2014 10:14:09 GMT 10 by Prezence
|
|
Post by Prezence on Dec 12, 2014 10:15:18 GMT 10
Well, I am ready to take the hard way, The reason is my app needs to get some install time data. Even TWBP uses its own installer. Hope you understand, Altair - The flying one And what do you mean by install time data? Do you want a time of installation?
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by altair on Dec 12, 2014 17:37:49 GMT 10
Thanks for the info, Chris. I meant suspicious not with that meaning. I meant that code looked it had to do something with registry functions. Sorry for my poor grammar.
I did not mean the time in which the app was installed. I meant some collective information like the currently set default browser, it's settings and some user inputs.
Thanks for your interest, Altair - The flying one
|
|
Post by Prezence on Dec 13, 2014 11:11:55 GMT 10
Oh ok . I think I found a solution: Environment.getfolderpath(environment.specialfolder.programs)
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by altair on Dec 14, 2014 1:48:32 GMT 10
Still not getting your point
|
|