|
|
#1 | |
|
Registered User
|
I've been writing web apps with VB.net for almost 2 years but now I am writing an installer for our app. What I need it to do is load 1 form and get all settings it needs for choosing the next form before using the one specified. It will have to automatically go to next form without a prompt or anything. I read in the XML and it sets a mode (install or update). Based on that I need to either load the install form or the update form. I can't figure out how to do this. I know the xml part but this is my first time working with forms. Is there an easier way to do this?
Thanks
__________________
![]() ![]() Comp Specs: Intel Q9650 @ 3.95Ghz Asus Rampage Extreme 2x2GB Mushkin DDR3-1600 @ 6-6-6-17 eVGA GTX 280 SSC BFG ES-800 PSU |
|
|
|
|
|
|
#2 | |
|
Join Date: Jul 2004
Location: MKE
Posts: 13,629
|
So wait...are they inputting data that needs to go from one form to another (i.e. username, password, etc) or are they two separate forms using the same XML data or both?
You can either use the querystring or use the POST function of an HTML form in order to pass variables such as usernames between two pages. Querystring isn't recommended for sending sensitive data because you can see them in the address bar. Is that what you were talking about, or did I completely misunderstand? |
|
|
|
|
|
|
#3 |
|
Registered User
|
This is for a program, not a web app. I need it to go to either the form for updating or the form for installing. Basically I need to get the mode from the xml before going to the correct form. I was thinking that I need a form to load and get the info before going to where it needs to go. I am not sure if this is the correct way to do it though. The form it will first load should automatically go to the next form. The first form should have no prompt of any kind, I was just going to use it for deciding which form to go to next.
__________________
![]() ![]() Comp Specs: Intel Q9650 @ 3.95Ghz Asus Rampage Extreme 2x2GB Mushkin DDR3-1600 @ 6-6-6-17 eVGA GTX 280 SSC BFG ES-800 PSU |
|
|
|
|
|
#4 | |
|
Join Date: Jul 2004
Location: MKE
Posts: 13,629
|
Oh...I don't know much about non-web programming. Sorry dude.
![]() |
|
|
|
|
|
|
#5 |
|
1337 Noob
Join Date: Aug 2004
Location: Charlotte, NC
Posts: 372
|
Why not just use the built in installer by creating a depolyement package?
|
|
|
|
|
|
#6 | |
|
Meow Mix Kills
Join Date: Aug 2002
Location: END OF DAYS
Posts: 1,228
|
Quote:
__________________
Gaming 5.0 Asus R4 Extreme | Core i7 3930K @ 4.8Ghz Corsair H100 | 16GB G.Skill@1866Mhz | 2xEVGA GTX 580 | Sammy 40" LCD Asus Essence One | OCZ Revo 3 120GB, Revo 3 X2 240GB | HSPC Tech Station | Corsair HX1200 | Windows 7 x64 Storage 2.0 Gigabyte Z68XP-UD3-iSSD | Core i7 2600K @ 4.5Ghz NH-D14 | 16GB G.Skill@1600Mhz | Areca 1880ix-16 RAID HBA Temp Storage - 1.8TB (4x450GB Hitachi 15k RPM SAS) | 18TB (12x3TB Hitachi RAID10) | HSPC Tech Station | Corsair HX620 | Windows 7 x64 |
|
|
|
|
|
|
#7 |
|
DEP Hater :)
|
Yo,
Deployment packages are only really for deploying code you have wrote in VS, they are limited when deploying other stuff, not sure what he is doing. To open new Forms do this. Create a new form object (right click project -> Add -> WindowsForm) Give it a name (i will call it TestForm). Then to open that dialog simply: //Create a new instance of the form TestForm myForm = new TestForm(); //Call the ShowDialog method myForm.ShowDialog(); You can pass variables etc. to the new form by creating a custom constructor. Hope this helps! EDIT: I just re-read your post, do you want to process the xml file before showing the user the Form. If this is the case simply put the code for reading in the xml in the constructor for the main form, do your processing and customise the form as appropriate.
__________________
AMD Athlon 64 3500+ 1gb Corsair XMS3200C2PT Leadtek 6800GT Audigy 2 ASUS A8V Windows XP Prof./SuSe 8.2 |
|
|
|
|
|
#8 |
|
Registered User
|
The program does alot more than just install or patch. I don't know much about the deployment but this is .net 1.1
The patcher executes alot of sql scripts to update the databases. Here is the code I used to make it work: Code:
Dim NextForm As Form
If LCase(SetupMode) = "patch" Then
NextForm = New MainPatchForm
ElseIf LCase(SetupMode) = "install" Then
NextForm = New MainInstallForm
End If
NextForm.Show()
__________________
![]() ![]() Comp Specs: Intel Q9650 @ 3.95Ghz Asus Rampage Extreme 2x2GB Mushkin DDR3-1600 @ 6-6-6-17 eVGA GTX 280 SSC BFG ES-800 PSU |
|
|
|
![]() |
| Thread Tools | |
|
|