Ok all,
I am in a bit of a bind. I have designed a program and I need an installer for it. I have a program to actually install the program to the computer. What I am after is a selector program to allow the user to install the required programs in any order desired.
The code that I have come across is this:
' MyProgram.exe
' the following prints the contents of this source file
file=OpenFile("D:\MyProgram.exe")
If Not file RuntimeError "could not open file MyProgram.exe"
While Not Eof(file)
Print ReadLine(file)
Wend
CloseStream file
When I use this program, all it does is prints the contents of this file encrypted. This is not what I am after. I need to have it where it actually launches to program to install.
Let me give you an illustration. Using the LogicGUI Program, I created a UI. This is the code:
'Source Code created on 22 Sep 2007 21:46:06 with Logic Gui Version 2.2 Build 262
'John Doe
'Start of external Header File
SuperStrict
'End Of external Header File
Local Logic_Gui:TGadget = CreateWindow:TGadget("Logic_Gui",240,51,665,513,Null,WINDOW_TITLEBAR|WINDOW_RESIZABLE |WINDOW_MENU |WINDOW_STATUS |WINDOW_CLIENTCOORDS )
Local Button1:TGadget = CreateButton:TGadget("Button1",71,85,75,23,Logic_Gui:TGadget,BUTTON_PUSH)
Repeat
WaitEvent()
Select EventID()
Case EVENT_WINDOWCLOSE
Select EventSource()
Case Logic_Gui Logic_Gui_WC( Logic_Gui:TGadget )
End Select
Case EVENT_GADGETACTION
Select EventSource()
Case Button1 Button1_GA( Button1:TGadget )
End Select
End Select
Forever
Function Logic_Gui_WC( Window:TGadget )
DebugLog "Window Logic_Gui wants to be closed"
' HideGadget( Window:TGadget )
End
End Function
Function Button1_GA( Button:TGadget )
DebugLog "Button Button1 was pressed"
End Function
'Start of external Append File
'Your additional code should be here!
'End Of external Append File
When you launch this code, it brings up only 1 button labeled BUTTON1. When you press this button, it gives you the text message
DebugLog "Button Button1 was pressed"
What I need is when you press the button (will be labeled INSTALL PROGRAM, it needs to actually launch the .exe installer file.
Can anyone assist me? Thanks in advance.
James
I am in a bit of a bind. I have designed a program and I need an installer for it. I have a program to actually install the program to the computer. What I am after is a selector program to allow the user to install the required programs in any order desired.
The code that I have come across is this:
' MyProgram.exe
' the following prints the contents of this source file
file=OpenFile("D:\MyProgram.exe")
If Not file RuntimeError "could not open file MyProgram.exe"
While Not Eof(file)
Print ReadLine(file)
Wend
CloseStream file
When I use this program, all it does is prints the contents of this file encrypted. This is not what I am after. I need to have it where it actually launches to program to install.
Let me give you an illustration. Using the LogicGUI Program, I created a UI. This is the code:
'Source Code created on 22 Sep 2007 21:46:06 with Logic Gui Version 2.2 Build 262
'John Doe
'Start of external Header File
SuperStrict
'End Of external Header File
Local Logic_Gui:TGadget = CreateWindow:TGadget("Logic_Gui",240,51,665,513,Null,WINDOW_TITLEBAR|WINDOW_RESIZABLE |WINDOW_MENU |WINDOW_STATUS |WINDOW_CLIENTCOORDS )
Local Button1:TGadget = CreateButton:TGadget("Button1",71,85,75,23,Logic_Gui:TGadget,BUTTON_PUSH)
Repeat
WaitEvent()
Select EventID()
Case EVENT_WINDOWCLOSE
Select EventSource()
Case Logic_Gui Logic_Gui_WC( Logic_Gui:TGadget )
End Select
Case EVENT_GADGETACTION
Select EventSource()
Case Button1 Button1_GA( Button1:TGadget )
End Select
End Select
Forever
Function Logic_Gui_WC( Window:TGadget )
DebugLog "Window Logic_Gui wants to be closed"
' HideGadget( Window:TGadget )
End
End Function
Function Button1_GA( Button:TGadget )
DebugLog "Button Button1 was pressed"
End Function
'Start of external Append File
'Your additional code should be here!
'End Of external Append File
When you launch this code, it brings up only 1 button labeled BUTTON1. When you press this button, it gives you the text message
DebugLog "Button Button1 was pressed"
What I need is when you press the button (will be labeled INSTALL PROGRAM, it needs to actually launch the .exe installer file.
Can anyone assist me? Thanks in advance.
James