Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Installation / Documentation > any one will help me, its regarding app. setup


Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2002, 09:14 AM
nilesh
Guest
 
Posts: n/a
Thumbs up any one will help me, its regarding app. setup


I need one help that my application setup must run one time only and second time it should get terminated automatically when setup started. so what will be the logic behind it.
Reply With Quote
  #2  
Old 06-15-2002, 09:22 AM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

The logic behind it would be -

When it is run, check for the existance of a flag somewhere on the system
This flag maybe a registry key, a file, or anything else that you choose.
If the flag is "true", then the setup has aready been run, so shut down.
If the flag is "false", then this is the first time, so carry on
If the flag is "false", set it to "true"
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #3  
Old 06-15-2002, 09:23 AM
Agent Agent is offline
Senior Contributor
 
Join Date: Oct 2001
Location: North Carolina of the U.S.A.
Posts: 1,008
Default

Why do you want to do this? So files don't get overwritten or
something?

You could use SaveSetting and GetSetting for this.
__________________
Search the forums if time permits and use the [vb][/vb] tags to put VB code in your post.
Reply With Quote
  #4  
Old 06-15-2002, 10:15 AM
anhmytran anhmytran is offline
Senior Contributor

Retired Moderator
* Guru *
 
Join Date: Aug 1999
Location: Hartford, Connecticut, 06
Posts: 1,487
Default You should create the Setup exe yourself

The application setup package is created by Microsoft VB.
We do not know the code of the Setup.exe file,
but we know that it should run any time until completed.

If you are not satisfied with it, you may create it yourself.
However, it is not worth doing that: extremly high cost.
Reply With Quote
  #5  
Old 06-15-2002, 10:58 AM
anhmytran anhmytran is offline
Senior Contributor

Retired Moderator
* Guru *
 
Join Date: Aug 1999
Location: Hartford, Connecticut, 06
Posts: 1,487
Wink Check the registry

You can check the Registry manually by
Window Start Bar -- Run -- and enter Regedit
However, the setup.exe does not have option
for your request.
Whatever you do with the registry does not help
you to work on the setup.exe.
As I said, it is created by MS, and it runs until the end
without interuption by user. It can run many times.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->