REQUIRED: Who can make this SETUP?

Status
Not open for further replies.

Vishal Gupta

Microsoft MVP
Hi guys!

I hv completed my University Web Portal project :) and now I want to create a Setup file, which should do following things:

1.) It should install my web server "Blazix" at the machine.
2.) Then it should start it.
3.) After that it should upload my database on the machine (which was created using SQL Server 7.0).
4.) It should also create the ODBC Data Source.
5.) Then it should copy my folder (in which all web pages r stored) to Web Server installed folder.
6.) The it should create a shortcut to the main page of the website at desktop.

So guys! Pls suggest me how can I create such a setup? :confused:
My project was created in JAVA.
__________
Kahan gaye sab bhai log? :(
pls guys! tell me the solution. :)

Meri duayen Milengi :D
 
Last edited:

DukeNukem

Come get Some
Though sound and look funny

you can make your setup using winrar/winzip and a Batch file

first arrange your data (project) in a single folder
i mean your webserver setup, sql scripts, copy of dsn, and web files
make a batch file as follow
------------------------------------
webserversetup.exe
echo "Press enter after webserver setup completes to start server"
pause;
file to start webserver
echo "press key after server starts to prepare backend"
pause;
osql /u<id?/p<id> @script
echo "press key after backend prep to copy dsn"
pause;
copy dsn.dsn "where sys dsn files are locted"
echo "press key afte dsn copied to copy files to webserver's root"
pause;
copy *.* to "webserver root"
echo " Setup complete"
pause;
---------------------------------------------------------------

use winrar to create sfx and run this bat file afte extraction (winrar do it auto.)

thats it

use this idea to create setup more userfriendly and without using other setup makers

bye bye
 

iMav

The Devil's Advocate
or try something like what phpbb and vb do to install their forums on a server ..... dont ask me how it is done
 
OP
Vishal Gupta

Vishal Gupta

Microsoft MVP
thnx guys for ur replies :)

Suppose I hv copied my all JSP files in following folder:

D:\Vishal\anou\

And I hv created a backup of the database and now I hv also copied the backup file in:

D:\Vishal\

And also copied Web server setup file in:

D:\Vishal\

Now what to do? I'm very new for this :D
How to create SQL scripts?
From where to copy the ODBC data source?

Pls post a step-by-step procedure. :)
 

DukeNukem

Come get Some
Vishal Gupta said:
thnx guys for ur replies :)

Suppose I hv copied my all JSP files in following folder:

D:\Vishal\anou\

And I hv created a backup of the database and now I hv also copied the backup file in:

D:\Vishal\

And also copied Web server setup file in:

D:\Vishal\

Now what to do? I'm very new for this :D
How to create SQL scripts?
From where to copy the ODBC data source?

Pls post a step-by-step procedure. :)


How to create SQL scripts? (and then u say u've made this project (LOL))
sql scripts are the text which you fire in sql server Query Analyser

1. -----------How to create SQL scripts?---------------
First make the script of the database (you need to install the sql server at the testing pc initially) then for the tables involved and then the data insertion one
their skeleton are like
Your whole Script should lool like

CREATE DATABASE database_name
[ON {[PRIMARY]
(NAME = logical_name,
FILENAME ='physical_name'
[,SIZE = size]
[,MAXSIZE = max_size | UNLIMITED]
[,FILEGROWTH = growth_increment])
}[,...n]]
[LOG ON
{(NAME = logical_name,
FILENAME = 'physical_name'
[,SIZE=size | UNLIMITED]
[,MAXSIZE = max_size | UNLIMITED]
[,FILEGROWTH = growth_increment])}

use <database name>

for tables
Create table sonu
(ser numeric,
name varchar2(35));

for data insertion
Insert into sonu values (001,'Sonu yadav')

--------------------------------------------------------------------------------------------------------------
or simply export the database of your in access format and then import it at the testing computer. (this you have to do manually)


2. From where to copy the ODBC data source?

dsn files are with extension .dsn and are placed in
"c:\program files\common files\odbc\data sources"
first make a "file dsn" then copy it from here.




lets say your folder look like

d:
vishal
setup 'for web server setup'
jsp 'for all jsp files'
odbc 'for the odbc file'
scripts 'for sql script'


Place a bat file in your folder "Vishal"
now edit it to read somewhat like this
@cd \
@cd d:\vishal
@cd d:
@cd vishal
@cd setup
@echo "Installing Web Server Please wail for its completion"
@<webserversetup.exe>
@echo "After Web Server Installation is complete Press any Key for next Step"
@pause
@echo "Starting your Webserver"
@Start <your web Server startup link (its default)>
@cd ..
@echo "Press any Key after web server is started"
@cd jsp
@echo "copying Files to the server root directory"
@copy *.* <default root of your web server>
@Press any key after the files are copied to the root"
@pause;
@cd ..
@cd odbc
@echo "copying the DSN"
@copy <dsnname>.dsn "c:\program files\common files\odbc\data sources"
@echo "press any key to continue after the DSN file is copied"
@pause;
@cd .. 'Optional Better to do it manually
@cd scripts 'Optional Better to do it manually
@osql /Usa/Psa @script.sql 'Optional Better to do it manually
@echo "Setup complete"

for manually preparing the backend import the access file (which you made earlier by exporting the database at your place)
at the testing site

now you can either use this folder as setup or make a sfx of it
 

aadipa

Padawan
WinRAR SFX is works, but if you need nice installer interface, with some advanced features you should use "Ghost Installer Free Edition" or NSIS. Or in paid use InstallShield.
 
OP
Vishal Gupta

Vishal Gupta

Microsoft MVP
@DukeNukem
thnx for the detailed reply :)
By "How to create SQL scripts?" I meant, that how can I make a script to automatically upload the database into other computer!

@aadipa
thnx buddy for the links. :)
 

DukeNukem

Come get Some
Vishal Gupta said:
@DukeNukem
thnx for the detailed reply :)
By "How to create SQL scripts?" I meant, that how can I make a script to automatically upload the database into other computer!

bro while closing the query analyser it asks u whether to save the scripts fired by u these are the SQL Scripts saved with .sql extension.

these are the thingh which you have to save at the very first moment from the query analyser. after that you need ta use some thrd prty tools to do the job. google it around.
 
OP
Vishal Gupta

Vishal Gupta

Microsoft MVP
But the problem is, I created all the tables and inserted data using Enterprise Manager and not thru Query Analyzer!

So I just want to know any command, which can upload the existing backup file of my database on other computer using enterprise manager. :)

If there is no command, then I'll hv to do it manually :(
 
Status
Not open for further replies.
Top Bottom